diff --git a/public/gargamel.png b/public/gargamel.png new file mode 100644 index 0000000..b8551ac Binary files /dev/null and b/public/gargamel.png differ diff --git a/src/components/NavBar.astro b/src/components/NavBar.astro index 3250653..964e5e7 100644 --- a/src/components/NavBar.astro +++ b/src/components/NavBar.astro @@ -134,6 +134,7 @@ const username = Astro.cookies.get('username')?.value ?? ""; )} + {loggedIn === "true" ? : ""}
@@ -190,10 +191,20 @@ nav ul { .nav-keep-right { position: absolute; - right: 20px; + right: 80px; } .active { color: lime; } + +.avatar-icon { + /* object-fit: contain; */ + /* width: 100%; */ + height: 50px; + border-radius: 50%; + border: 1px solid white; + position: absolute; + right: 13px; +} \ No newline at end of file diff --git a/src/pages/logout.astro b/src/pages/logout.astro index fc95f78..7557ec1 100644 --- a/src/pages/logout.astro +++ b/src/pages/logout.astro @@ -4,7 +4,7 @@ if(Astro.cookies.has('sessionToken')) { } if(Astro.cookies.has('username')) { - Astro.cookies.delete('uesrname'); + Astro.cookies.delete('username'); } if(Astro.cookies.has('userid')) {