From 189e3e438ff2b51f219dee5c40135a8037a5c5b6 Mon Sep 17 00:00:00 2001 From: cuptain Date: Fri, 1 Nov 2024 01:00:46 +1100 Subject: [PATCH] implemented navbar --- fclauncher/frontend/src/Navbar.svelte | 94 +++++++++++++++++++++++++-- 1 file changed, 90 insertions(+), 4 deletions(-) diff --git a/fclauncher/frontend/src/Navbar.svelte b/fclauncher/frontend/src/Navbar.svelte index 0a73f27..57686c0 100644 --- a/fclauncher/frontend/src/Navbar.svelte +++ b/fclauncher/frontend/src/Navbar.svelte @@ -1,17 +1,41 @@ - +
@@ -31,5 +55,67 @@ height: 100vh; position: fixed; background-color: var(--bg-primary); + transition: width 200ms ease; + } + .navbar-nav{ + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + align-items: center; + height: 100%; + } + .nav-item{ + width: 100%; + } + .navbar:hover{ + width: 17rem; + } + .link-text{ + display: none; + margin-left: 1rem; + transition: 300ms; + } + .navbar:hover .link-text { + display: block; + } + .nav-link{ + display: flex; + align-items: center; + height: 5rem; + color: var(--text-primary); + fill: var(--text-primary); + transition: 300ms; + text-decoration: none; + } + .nav-icon{ + min-width: 3rem; + margin: 0 1rem; + } + .nav-link:hover{ + fill: purple; + background-color: var(--bg-secondary); + + } + .logo{ + font-weight: bold; + text-transform: uppercase; + margin-bottom: 1rem; + text-align: center; + color: var(--text-secondary); + background: var(--bg-secondary); + font-size: 1.5rem; + letter-spacing: 0.2ch; + width: 100%; + } + .logo svg { + transform: rotate(0deg); + transition: transform 300ms; + fill: var(--text-primary); + + } + .navbar:hover .logo svg { + transform: rotate(-180deg); } \ No newline at end of file