|
41 | 41 | }); |
42 | 42 | }); |
43 | 43 |
|
| 44 | + function handleSearch() { |
44 | 45 |
|
| 46 | + } |
45 | 47 | |
46 | 48 | const cards = [ |
47 | 49 | { |
|
97 | 99 | <div class="relative text-center z-10"> |
98 | 100 | <h1 class="text-4xl md:text-5xl font-bold mb-2">คำพูดเซียบชวนมากดูปุ่ม</h1> |
99 | 101 | <h2 class="text-4xl md:text-5xl font-bold mb-8">คำพูดเซียบชวนมากดูปุ่ม</h2> |
100 | | - <button class="bg-blue-600 hover:bg-blue-700 px-6 py-3 rounded-lg font-medium transition-colors"> |
| 102 | + <button class="bg-teamblue hover:bg-teamblue/80 px-6 py-3 rounded-lg font-medium transition-colors"> |
101 | 103 | ปุ่มไปพิงค์ขันแนบ |
102 | 104 | </button> |
103 | 105 | </div> |
|
106 | 108 | <!-- Search Section --> |
107 | 109 | <section class="px-6 py-8"> |
108 | 110 | <div class="max-w-md mx-auto relative"> |
109 | | - <!-- <form onsubmit={handleSearch}> |
| 111 | + <form onsubmit={handleSearch}> |
110 | 112 | <div class="relative"> |
111 | | - <Search class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-5 h-5" /> |
| 113 | + <div class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-5 h-5" /> |
112 | 114 | <input |
113 | 115 | type="text" |
114 | 116 | placeholder="ค้นหา" |
115 | 117 | bind:value={searchQuery} |
116 | 118 | class="w-full pl-10 pr-4 py-3 bg-white text-gray-900 rounded-full border-0 focus:ring-2 focus:ring-blue-500 focus:outline-none" |
117 | 119 | /> |
118 | 120 | </div> |
119 | | - </form> --> |
| 121 | + </form> |
120 | 122 | </div> |
121 | 123 |
|
122 | | - <div class="flex justify-center space-x-8 mt-6"> |
| 124 | + <div class="mt-56 flex justify-center space-x-8 mt-6"> |
123 | 125 | <a href="/top-rated" class="text-blue-400 hover:text-blue-300 text-sm">สถานที่ดูดาวที่ดีที่สุด</a> |
124 | 126 | <a href="/family-friendly" class="text-blue-400 hover:text-blue-300 text-sm">สถานที่ดูดาวและน่าสำหรับครอบครัว</a> |
125 | 127 | </div> |
|
129 | 131 | <section class="px-6 pb-12"> |
130 | 132 | <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto"> |
131 | 133 | {#each cards as card} |
132 | | - <div class="bg-gray-800 rounded-lg overflow-hidden"> |
133 | | - <div class="relative h-48 bg-gray-600"> |
134 | | - <img |
135 | | - src="/placeholder.svg?height=200&width=300" |
136 | | - alt="สถานที่ดูดาว" |
137 | | - class="w-full h-full object-cover" |
138 | | - /> |
139 | | - </div> |
140 | | - <div class="p-4"> |
141 | | - <h3 class="text-lg font-semibold mb-2">{card.title}</h3> |
142 | | - <p class="text-gray-400 text-sm mb-4">{card.description}</p> |
143 | | - <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg text-sm font-medium transition-colors"> |
144 | | - อ่านเพิ่มเติม |
145 | | - </button> |
| 134 | + <div class="space-y-4"> |
| 135 | + <Card img="image.png" class="bg-[#000]"> |
| 136 | + <div class="m-6"> |
| 137 | + <h5 class="mb-2 text-2xl font-bold tracking-tight text-white">Noteworthy technology acquisitions 2021</h5> |
| 138 | + <p class="mb-3 leading-tight font-normal text-white">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p> |
| 139 | + <Button class="w-40"> |
| 140 | + Read more <ArrowRightOutline class="ms-2 h-6 w-6 text-white" /> |
| 141 | + </Button> |
146 | 142 | </div> |
147 | | - </div> |
| 143 | + </Card> |
| 144 | + </div> |
| 145 | + |
148 | 146 | {/each} |
149 | 147 | </div> |
150 | 148 | </section> |
|
0 commit comments