Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue#43 icon 파일 형식 변경 #56

Merged
merged 4 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions src/app/(main)/_components/footer/LinkIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
import Image from 'next/image'
import {
EnvelopeClosedIcon,
GitHubLogoIcon,
InstagramLogoIcon,
} from '@radix-ui/react-icons'
import Link from 'next/link'

type LinkIconData = {
id: number
href: string
src: string
icon: JSX.Element
alt: string
}

export const LinkIcon = () => {
return (
<div className="absolute bottom-8 right-12 flex gap-4">
<div className="flex gap-2">
{linkIconData.map((linkIcon) => (
<Link href={linkIcon.href} key={linkIcon.id}>
<Image
className="h-auto w-6"
src={linkIcon.src}
alt={linkIcon.alt}
width={0}
height={0}
/>
{linkIcon.icon}
</Link>
))}
</div>
Expand All @@ -30,19 +28,19 @@ const linkIconData: LinkIconData[] = [
{
id: 0,
href: 'mailto:[email protected]',
src: '/asset/icon/Email.svg',
icon: <EnvelopeClosedIcon className="h-6 w-6" />,
alt: 'HAEDAL Email Link',
},
{
id: 1,
href: 'https://github.com/KNU-HAEDAL',
src: '/asset/icon/Github.svg',
icon: <GitHubLogoIcon className="h-6 w-6" />,
alt: 'HAEDAL Github Link',
},
{
id: 2,
href: 'https://www.instagram.com/knu.haedal/',
src: '/asset/icon/Instagram.svg',
icon: <InstagramLogoIcon className="h-6 w-6" />,
alt: 'HAEDAL Instagram Link',
},
]
Loading