From cb60f431c6e1119d105b2c2bff468698cefbc4d9 Mon Sep 17 00:00:00 2001 From: Zekerocks11 Date: Thu, 11 Apr 2024 03:26:17 +0200 Subject: [PATCH] added notice and got rid of discord link, added placeholder for matrix --- src/routes/+layout.svelte | 48 +++++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 5bee5a2..1855acc 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -23,6 +23,8 @@ interface NavItem { name: string; href: string; + title: string; + target: string; } const token = writable(data.tokenCookie || ""); @@ -135,22 +137,38 @@ { name: "Blog", href: "/coming-soon", + title: "Coming Soon", + target: "_self", }, { name: "Docs", href: "/coming-soon", + title: "Coming Soon", + target: "_self", }, { name: "FAQ", href: "/faq", + title: "Coming Soon", + target: "_self", }, { - name: "Discord", - href: "https://discord.gg/suyu", + name: "Compatibility", + href: "/compatibility", + title: "Compatibility", + target: "_self", }, + // { + // name: "Matrix", + // href: "", + // title: "Suyu Matrix Server", + // target: "_blank", + // }, { name: "Git", href: "https://git.suyu.dev/suyu/suyu", + title: "Suyu Git Repo", + target: "_blank", }, // { // name: $token || data.tokenCookie ? "Account" : "Sign up", @@ -278,38 +296,42 @@
{ - if (dropdownOpen && window.innerWidth < 625) toggleDropdown(); + if (dropdownOpen && window.innerWidth < 800) toggleDropdown(); }} >
- Blog - Docs - FAQ + Blog + Docs + FAQ + Compatibility
-
+
- - + --> {#if $token}