Skip to content

Commit 316c639

Browse files
committed
replace logo and add globe
1 parent c0975c2 commit 316c639

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

app/[locale]/dashboard/components/main-nav.tsx

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,25 @@ export function MainNav({ hideSearch = false }) {
9797
<Link href="/">
9898
<div className="flex items-center gap-2">
9999
<div className="group relative h-[38px] w-[38px] overflow-hidden">
100-
<Image src={'/logo.png'} width={38} height={38} alt="logo" />
100+
{/* Static Logo */}
101+
<div className="absolute inset-0 transition-opacity duration-300 group-hover:opacity-0">
102+
<Image
103+
src="/globe_logo.png"
104+
alt="Logo"
105+
layout="fill"
106+
objectFit="contain"
107+
/>
108+
</div>
109+
110+
{/* Globe GIF on Hover */}
111+
<div className="absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100">
112+
<Image
113+
src="/globe.gif"
114+
alt="Globe"
115+
layout="fill"
116+
objectFit="contain"
117+
/>
118+
</div>
101119
</div>
102120
<Text variant="headingXl" className="text-surfaceDefault" as="h1">
103121
CivicDataSpace
@@ -127,9 +145,7 @@ export function MainNav({ hideSearch = false }) {
127145
<Link href="/datasets">Explore Datasets</Link>
128146
</CommandItem>
129147
<CommandItem>
130-
<Link href="/dashboard/user/datasets">
131-
Go to User Dashboard
132-
</Link>
148+
<Link href="/dashboard/user/datasets">Go to User Dashboard</Link>
133149
</CommandItem>
134150
</CommandGroup>
135151
</CommandList>

public/globe.gif

13.3 MB
Loading

public/globe_logo.png

174 KB
Loading

0 commit comments

Comments
 (0)