@@ -53,10 +53,9 @@ import Card from "./ui/Card.astro";
53
53
<div >
54
54
<section class =" filterMenu" >
55
55
<h3 >Filter</h3 >
56
+
56
57
<div class =" filterButtonList" >
57
58
<button class =" active" id =" filterAll" >All<span id =" totalAmount" ></span ></button >
58
- </div >
59
- <div class =" filterButtonList" >
60
59
<button class =' filterButton' aria-label =' Inspiration contentt' ><a >Inspiration</a ><span id =" inspirationAmount" ></span ></button >
61
60
<button class =' filterButton' aria-label =' Personal websites, portfolios, blogs' ><a >Personal</a ><span id =" personalAmount" ></span ></button >
62
61
<button class =' filterButton' aria-label =' Commerce tools' ><a >Commerce</a ><span id =" commerceAmount" ></span ></button >
@@ -169,35 +168,44 @@ import Card from "./ui/Card.astro";
169
168
top: 0;
170
169
position: sticky;
171
170
margin: auto;
172
- max- width: 1200px ;
171
+ width: 100% ;
173
172
display: flex;
174
173
flex-direction: column;
175
174
gap: 1rem;
176
175
justify-content: center;
177
176
align-items: center;
178
177
}
178
+ #filterList div {
179
+ width: 100%;
180
+ display: flex;
181
+ justify-content: center;
182
+
183
+ }
179
184
180
185
.filterButtonList {
181
186
align-items: center;
182
187
display: flex;
183
188
flex-direction: row;
184
- gap: 0.5rem ;
189
+ gap: 1rem ;
185
190
flex-wrap: wrap;
191
+ /*
186
192
background-color: #d1def6;
187
193
border: #3574F0 1px solid;
188
- @apply rounded-lg;
189
- padding: 0.5rem 1rem;
194
+ */
195
+ padding: 1rem;
196
+ max-width: 1200px;
190
197
}
191
198
192
199
193
200
.filterMenu {
201
+ background-color: #F0F1F2;
202
+ border-bottom: #d1def6 1px solid;
194
203
min-height: 50px;
195
204
width: 100%;
196
205
align-items: center;
197
206
display: flex;
198
- position: sticky;
199
207
flex-direction: row;
200
- justify-content: space-between ;
208
+ justify-content: center ;
201
209
gap: 0.5rem;
202
210
overflow-x: clip;
203
211
}
@@ -240,7 +248,7 @@ import Card from "./ui/Card.astro";
240
248
}
241
249
242
250
.filterButton:hover, #filterAll:hover {
243
- border: 1px #3574F0 solid;
251
+ border: 1px rgba(53, 115, 240, 0.5) solid;
244
252
}
245
253
246
254
.filterButton:active, #filterAll:active {
@@ -256,6 +264,9 @@ import Card from "./ui/Card.astro";
256
264
background-color: #3574F0;
257
265
border: 1px transparent solid;
258
266
}
267
+ #filterAll.active {
268
+ background-color: color-mix(in srgb, #1E1F22 50% , #3574F0 50%);
269
+ }
259
270
.implied {
260
271
background-color: rgba(53, 115, 240, 0.25);
261
272
}
0 commit comments