style some anchor links and filter buttons

This commit is contained in:
elisejakob
2024-05-23 00:27:40 +02:00
parent 3178fcbdc4
commit a1dddb64b1
5 changed files with 80 additions and 13 deletions

View File

@ -13,7 +13,7 @@ export const EventFilter = ({
}) => {
return (
<div className={styles.eventFilter}>
<span>Filter</span>
<span className="suphead">Filter</span>
<ul>
{eventCategories
.filter((x) => x.showInFilters)
@ -22,7 +22,13 @@ export const EventFilter = ({
key={category.slug}
className={activeCategory === category.slug ? styles.active : ""}
>
<button onClick={() => setCategory(activeCategory === category.slug ? null : category.slug)}>
<button
onClick={() =>
setCategory(
activeCategory === category.slug ? null : category.slug
)
}
>
{category.name}
</button>
</li>

View File

@ -9,13 +9,20 @@
ul {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: .5rem;
}
button {
margin-bottom: 0;
background: var(--color-goldenBeige);
color: var(--color-deepBrick);
}
.active {
button {
background: var(--color-deepBrick);
color: var(--color-white)
color: var(--color-goldenBeige);
}
}
}