Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 44b6d73

Browse files
authored
Header changes (#200)
1 parent 1eaafef commit 44b6d73

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

src/lib/components/layout/Header.svelte

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
import { fade, fly } from "svelte/transition";
66
import { Spring } from "svelte/motion";
77
import KuzuLogo from "$lib/components/KuzuLogo.svelte";
8+
import { page } from '$app/stores';
89
910
let isMenuOpen = $state(false);
1011
let scrolled = $state(false);
12+
let isContactPage = $derived($page.url.pathname === '/contact');
1113
1214
function handleScroll() {
1315
scrolled = window.scrollY > 0;
@@ -57,10 +59,17 @@
5759
<div
5860
class="hidden md:flex items-center gap-4 flex-grow justify-end"
5961
>
60-
<a href="/contact"
61-
rel="noopener noreferrer"
62-
class="text-primary hover:text-foreground transition-colors">Support & Consultancy</a
63-
>
62+
{#if isContactPage}
63+
<a href="/"
64+
rel="noopener noreferrer"
65+
class="text-primary hover:text-foreground transition-colors">Home Page</a
66+
>
67+
{:else}
68+
<a href="/contact"
69+
rel="noopener noreferrer"
70+
class="text-primary hover:text-foreground transition-colors">Support & Consultancy</a
71+
>
72+
{/if}
6473
<a
6574
href="https://demo.kuzudb.com"
6675
target="_blank"
@@ -85,7 +94,7 @@
8594
class="hover:text-primary transition-colors"
8695
>
8796
<i class="fa-brands fa-github"></i>
88-
GitHub
97+
<span class="transition-all duration-300" class:hidden={scrolled}>GitHub</span>
8998
</a>
9099
<a
91100
href="//kuzudb.com/chat"
@@ -94,7 +103,7 @@
94103
class="hover:text-primary transition-colors"
95104
>
96105
<i class="fa-brands fa-discord"></i>
97-
Discord
106+
<span class="transition-all duration-300" class:hidden={scrolled}>Discord</span>
98107
</a>
99108
<Button variant="ghost" size="icon" onclick={toggleMode}>
100109
<Sun

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<h2 class="text-3xl font-bold mb-12">Support & Consultancy</h2>
6868
<p class="text-muted-foreground mb-12 max-w-2xl mx-auto">
6969
Kùzu Inc. provides professional support and consultancy for using Kuzu
70-
in <a class="underline decoration-primary text-white">agentic memory, graph AI</a> as well as other domains that use knowledge graphs.
70+
in <a class="underline decoration-primary text-foreground">agentic memory, graph AI</a> as well as other domains that use knowledge graphs.
7171
</p>
7272
<div
7373
class="grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto"

0 commit comments

Comments
 (0)