Andrewbluebird commited on
Commit
606bde4
·
verified ·
1 Parent(s): 77bc02b

Make the Sancia block and Nolan block in the same length as the input field above them

Browse files
Files changed (2) hide show
  1. SearchPage.html +6 -7
  2. style.css +2 -1
SearchPage.html CHANGED
@@ -178,25 +178,24 @@
178
  <h2 class="text-2xl font-bold mb-6 text-gray-800">Find Your Perfect Furry Companion</h2>
179
 
180
  <div class="mb-6">
181
- <div class="relative">
182
  <input type="text" placeholder="Search by name, species or personality..."
183
  class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
184
  <button class="absolute right-3 top-3 text-gray-400 hover:text-blue-600">
185
  <i data-feather="search" class="w-5 h-5"></i>
186
  </button>
187
  </div>
188
- </div>
189
-
190
- <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
191
  <!-- Character cards will be dynamically inserted here -->
192
- <div class="character-card">
193
  <img src="http://static.photos/animals/200x200/1" alt="Character" class="character-image">
194
  <div class="character-info">
195
  <h3 class="font-bold text-lg">Sancia</h3>
196
  <p class="text-gray-600 text-sm mb-2">Female Cat humanoid chatbot</p>
197
  </div>
198
  </div>
199
- <div class="character-card">
200
  <img src="http://static.photos/animals/200x200/1" alt="Character" class="character-image">
201
  <div class="character-info">
202
  <h3 class="font-bold text-lg">Nolan</h3>
@@ -204,7 +203,7 @@
204
  </div>
205
  </div>
206
  </div>
207
- </div>
208
  </div>
209
  </section>
210
 
 
178
  <h2 class="text-2xl font-bold mb-6 text-gray-800">Find Your Perfect Furry Companion</h2>
179
 
180
  <div class="mb-6">
181
+ <div class="relative w-full">
182
  <input type="text" placeholder="Search by name, species or personality..."
183
  class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
184
  <button class="absolute right-3 top-3 text-gray-400 hover:text-blue-600">
185
  <i data-feather="search" class="w-5 h-5"></i>
186
  </button>
187
  </div>
188
+ </div>
189
+ <div class="flex flex-col gap-4">
 
190
  <!-- Character cards will be dynamically inserted here -->
191
+ <div class="character-card w-full">
192
  <img src="http://static.photos/animals/200x200/1" alt="Character" class="character-image">
193
  <div class="character-info">
194
  <h3 class="font-bold text-lg">Sancia</h3>
195
  <p class="text-gray-600 text-sm mb-2">Female Cat humanoid chatbot</p>
196
  </div>
197
  </div>
198
+ <div class="character-card w-full">
199
  <img src="http://static.photos/animals/200x200/1" alt="Character" class="character-image">
200
  <div class="character-info">
201
  <h3 class="font-bold text-lg">Nolan</h3>
 
203
  </div>
204
  </div>
205
  </div>
206
+ </div>
207
  </div>
208
  </section>
209
 
style.css CHANGED
@@ -27,9 +27,10 @@
27
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
28
  background-color: white;
29
  padding: 1rem;
30
- margin-bottom: 1rem;
31
  display: flex;
32
  align-items: center;
 
33
  }
34
  .character-info {
35
  flex: 1;
 
27
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
28
  background-color: white;
29
  padding: 1rem;
30
+ margin-bottom: 0;
31
  display: flex;
32
  align-items: center;
33
+ width: 100%;
34
  }
35
  .character-info {
36
  flex: 1;