Skip to content

Commit

Permalink
Improve navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
dolanske committed Jul 29, 2024
1 parent 5489bad commit 1398b10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Sidebar = div().setup((ctx, props: Props) => {
h2('Hivecom \n countdown'),
p(`${props.formattedEvents.value.length} upcoming`),
hr(),
button('Upcoming Events')
button('Upcoming')
.class({ active: ['#upcoming', ''].includes(window.location.hash) })
.id('upcoming')
.click(setActiveHash),
Expand Down
7 changes: 7 additions & 0 deletions src/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,17 @@ html {
justify-content: flex-start;
align-items: flex-start;

&:has(button[id='previous'].active) {
img {
transform: rotate(180deg);
}
}

img {
display: block;
width: 24px;
margin-bottom: 8px;
transition: 0.1s all ease-in-out;
}

h2 {
Expand Down

0 comments on commit 1398b10

Please sign in to comment.