Skip to content

Commit 6cf9b06

Browse files
committed
fix: update social icon paths and improve header links
- Refactor social icon paths in members.ts to use absolute URLs for better accessibility. - Update header links in Header component to use absolute paths for consistent navigation.
1 parent 457220a commit 6cf9b06

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/app/team/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { alumni, team } from '@/data/members'
3+
import { alumni, team, socialIcons } from '@/data/members'
44
import { Container } from '@/components'
55
import { Member as MemberType } from '@/components/Member/type'
66
import { IconUsers, IconHeart, IconStar } from '@tabler/icons-react'
@@ -89,7 +89,7 @@ export default function Team() {
8989
className="flex h-8 w-8 items-center justify-center rounded-lg bg-neutral-3/20 transition-all duration-300 hover:scale-110 hover:bg-base-6/20"
9090
>
9191
<Image
92-
src={`./assets/icons/socials/${social.name}.svg`}
92+
src={socialIcons(social.name)}
9393
alt={social.name}
9494
width={16}
9595
height={16}
@@ -163,7 +163,7 @@ export default function Team() {
163163
className="flex h-8 w-8 items-center justify-center rounded-lg bg-neutral-3/20 transition-all duration-300 hover:scale-110 hover:bg-base-6/20"
164164
>
165165
<Image
166-
src={`./assets/icons/socials/${social.name}.svg`}
166+
src={socialIcons(social.name)}
167167
alt={social.name}
168168
width={16}
169169
height={16}

src/components/Header/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export const Header = () => {
4343

4444
<div className="flex items-center gap-6 max-lg:hidden">
4545
<ul className="flex items-center justify-end gap-6">
46-
<MenuLi href="#playground">Playground</MenuLi>
47-
<MenuLi href="#ecosystem">Ecosystem</MenuLi>
46+
<MenuLi href="/#playground">Playground</MenuLi>
47+
<MenuLi href="/#ecosystem">Ecosystem</MenuLi>
4848
<MenuLi href="/team">Team</MenuLi>
4949
</ul>
5050
<div className="flex items-center gap-3">

src/data/members.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Member, SocialIcons } from '@/components/Member/type'
22

33
const socialIconsMap: SocialIcons = {
4-
github: './assets/icons/socials/github.svg',
5-
linkedin: './assets/icons/socials/linkedin.svg',
4+
github: '/assets/icons/socials/github.svg',
5+
linkedin: '/assets/icons/socials/linkedin.svg',
66
}
77

88
const socialIcons = (name: string): string => {

0 commit comments

Comments
 (0)