Skip to content

Commit 01ef704

Browse files
committed
filter list style changes (not final!)
1 parent 6f8b291 commit 01ef704

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

src/components/Content.astro

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ import Card from "./ui/Card.astro";
5353
<div>
5454
<section class="filterMenu">
5555
<h3>Filter</h3>
56+
5657
<div class="filterButtonList">
5758
<button class="active" id="filterAll">All<span id="totalAmount"></span></button>
58-
</div>
59-
<div class="filterButtonList">
6059
<button class='filterButton' aria-label='Inspiration contentt'><a>Inspiration</a><span id="inspirationAmount"></span></button>
6160
<button class='filterButton' aria-label='Personal websites, portfolios, blogs'><a>Personal</a><span id="personalAmount"></span></button>
6261
<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";
169168
top: 0;
170169
position: sticky;
171170
margin: auto;
172-
max-width: 1200px;
171+
width: 100%;
173172
display: flex;
174173
flex-direction: column;
175174
gap: 1rem;
176175
justify-content: center;
177176
align-items: center;
178177
}
178+
#filterList div {
179+
width: 100%;
180+
display: flex;
181+
justify-content: center;
182+
183+
}
179184

180185
.filterButtonList {
181186
align-items: center;
182187
display: flex;
183188
flex-direction: row;
184-
gap: 0.5rem;
189+
gap: 1rem;
185190
flex-wrap: wrap;
191+
/*
186192
background-color: #d1def6;
187193
border: #3574F0 1px solid;
188-
@apply rounded-lg;
189-
padding: 0.5rem 1rem;
194+
*/
195+
padding: 1rem;
196+
max-width: 1200px;
190197
}
191198

192199

193200
.filterMenu {
201+
background-color: #F0F1F2;
202+
border-bottom: #d1def6 1px solid;
194203
min-height: 50px;
195204
width: 100%;
196205
align-items: center;
197206
display: flex;
198-
position: sticky;
199207
flex-direction: row;
200-
justify-content: space-between;
208+
justify-content: center;
201209
gap: 0.5rem;
202210
overflow-x: clip;
203211
}
@@ -240,7 +248,7 @@ import Card from "./ui/Card.astro";
240248
}
241249

242250
.filterButton:hover, #filterAll:hover {
243-
border: 1px #3574F0 solid;
251+
border: 1px rgba(53, 115, 240, 0.5) solid;
244252
}
245253

246254
.filterButton:active, #filterAll:active {
@@ -256,6 +264,9 @@ import Card from "./ui/Card.astro";
256264
background-color: #3574F0;
257265
border: 1px transparent solid;
258266
}
267+
#filterAll.active {
268+
background-color: color-mix(in srgb, #1E1F22 50% , #3574F0 50%);
269+
}
259270
.implied {
260271
background-color: rgba(53, 115, 240, 0.25);
261272
}

src/components/MainHeader.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import HeaderAlert from "./HeaderAlert.astro";
2424
/>
2525

2626
<ActionButton
27-
buttonText='Menu'
27+
buttonText='Check guides'
2828
href="/"
2929
target="_blank"
3030
label='Aria Label2'

0 commit comments

Comments
 (0)