From d835a50a019d9f9cc8aee7a06869c1c75598e0db Mon Sep 17 00:00:00 2001 From: JovannMC Date: Wed, 5 Feb 2025 19:54:15 +0300 Subject: [PATCH] new home page makes vert logo clickable on both desktop and mobile --- src/app.scss | 36 +++++---------------- src/lib/assets/vert-bg.svg | 27 ++++------------ src/lib/components/functional/Navbar.svelte | 11 ++++--- src/lib/sections/settings/Appearance.svelte | 8 ++--- src/lib/store/index.svelte.ts | 1 - src/routes/+layout.svelte | 8 ++--- 6 files changed, 28 insertions(+), 63 deletions(-) diff --git a/src/app.scss b/src/app.scss index 17b7cea..f08ce3d 100644 --- a/src/app.scss +++ b/src/app.scss @@ -45,20 +45,10 @@ // backgrounds --bg: hsl(0, 0%, 95%); --bg-gradient: linear-gradient( - to bottom left, - hsla(235, 100%, 50%, 0.3), - hsla(235, 100%, 50%, 0) 75% - ), - linear-gradient( - to bottom right, - hsla(353, 100%, 50%, 0.4), - hsla(353, 100%, 50%, 0) 50% - ), - linear-gradient( - to bottom, - hsla(287, 100%, 50%, 0.2), - hsla(287, 100%, 50%, 0) - ); + to bottom, + var(--accent-pink), + hsla(303, 100%, 50%, 0) 100% + ); --bg-gradient-pink: linear-gradient( to bottom, var(--accent-pink), @@ -106,20 +96,10 @@ // backgrounds --bg: hsl(220, 5%, 12%); --bg-gradient: linear-gradient( - to bottom, - hsla(287, 100%, 50%, 0.1), - hsla(287, 100%, 50%, 0) - ), - linear-gradient( - to bottom left, - hsla(235, 100%, 50%, 0.07), - hsla(235, 100%, 50%, 0) 50% - ), - linear-gradient( - to bottom right, - hsla(353, 100%, 50%, 0.07), - hsla(353, 100%, 50%, 0) 50% - ); + to bottom, + hsla(303, 100%, 50%, 0.1), + hsla(303, 100%, 50%, 0) 100% + ); --bg-gradient-pink: linear-gradient( to bottom, hsla(303, 100%, 50%, 0.1), diff --git a/src/lib/assets/vert-bg.svg b/src/lib/assets/vert-bg.svg index 732e556..b34729d 100644 --- a/src/lib/assets/vert-bg.svg +++ b/src/lib/assets/vert-bg.svg @@ -1,22 +1,7 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + diff --git a/src/lib/components/functional/Navbar.svelte b/src/lib/components/functional/Navbar.svelte index 54ca645..585ff27 100644 --- a/src/lib/components/functional/Navbar.svelte +++ b/src/lib/components/functional/Navbar.svelte @@ -1,6 +1,6 @@ @@ -45,7 +45,7 @@ "w-16 md:w-32 h-full relative z-10 rounded-xl flex items-center justify-center gap-3 overflow-hidden", { "bg-panel-accented": - item.activeMatch($page.url.pathname) && !browser, + item.activeMatch(page.url.pathname) && !browser, }, )} draggable={false} @@ -116,13 +116,14 @@ 0)}px; transition: left var(--transition) {duration}ms, top var(--transition) {duration}ms;" > {/if} - + {#each items as item, i (item.url)} {@render link(item, i)} {/each} diff --git a/src/lib/sections/settings/Appearance.svelte b/src/lib/sections/settings/Appearance.svelte index 5398522..d6ba20e 100644 --- a/src/lib/sections/settings/Appearance.svelte +++ b/src/lib/sections/settings/Appearance.svelte @@ -29,8 +29,8 @@ } } - function setAnimation(motion: boolean) { - if (motion) { + function setEffects(effects: boolean) { + if (effects) { enableMotionElement.classList.add("selected"); disableMotionElement.classList.remove("selected"); setMotion(true); @@ -127,7 +127,7 @@