From 9221d8c70bdf705dbcd6d322ef43d95f0aa93081 Mon Sep 17 00:00:00 2001 From: Ushie Date: Tue, 24 Jun 2025 01:18:18 +0300 Subject: [PATCH] feat: Announcements as an IconButton in the NavBar --- src/layout/Navbar/NavButton.svelte | 11 +++++---- src/layout/Navbar/NavHost.svelte | 37 +++++++++++++++++++++++------- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/src/layout/Navbar/NavButton.svelte b/src/layout/Navbar/NavButton.svelte index d64945f..42d8935 100644 --- a/src/layout/Navbar/NavButton.svelte +++ b/src/layout/Navbar/NavButton.svelte @@ -52,17 +52,17 @@ color: var(--primary); } } - + &.unclickable { pointer-events: none; } - + :hover { color: var(--text-one); background-color: var(--surface-three); } } - + a { text-decoration: none; user-select: none; @@ -72,8 +72,11 @@ justify-content: center; padding: 10px 16px; } - + span { + display: flex; + justify-content: center; + font-weight: 400; font-size: 0.9rem; letter-spacing: 0.02rem; diff --git a/src/layout/Navbar/NavHost.svelte b/src/layout/Navbar/NavHost.svelte index 3eaf6cd..f1da88e 100644 --- a/src/layout/Navbar/NavHost.svelte +++ b/src/layout/Navbar/NavHost.svelte @@ -75,13 +75,15 @@ Home Download Patches - - Announcements - + + + Announcements + + Contributors @@ -91,6 +93,25 @@
+ + + + + + +