diff --git a/src/app/(main)/_components/footer/LinkIcon.tsx b/src/app/(main)/_components/footer/ChannelIcons.tsx similarity index 61% rename from src/app/(main)/_components/footer/LinkIcon.tsx rename to src/app/(main)/_components/footer/ChannelIcons.tsx index bc53bbaf..026ddaa0 100644 --- a/src/app/(main)/_components/footer/LinkIcon.tsx +++ b/src/app/(main)/_components/footer/ChannelIcons.tsx @@ -8,42 +8,42 @@ import { import { IconProps } from '@radix-ui/react-icons/dist/types' import Link from 'next/link' -type LinkIconData = { +type Channel = { id: number + name: string href: string icon: ComponentType - alt: string } -export const LinkIcon = () => { +export const ChannelIcons = () => { return ( -
- {linkIconData.map((linkIcon) => ( - - +
+ {channels.map((channel) => ( + + ))}
) } -const linkIconData: LinkIconData[] = [ +const channels: Channel[] = [ { id: 0, + name: 'HAEDAL Email', href: 'mailto:knu.haedal@gmail.com', icon: EnvelopeClosedIcon, - alt: 'HAEDAL Email Link', }, { id: 1, + name: 'HAEDAL GitHub', href: 'https://github.com/KNU-HAEDAL', icon: GitHubLogoIcon, - alt: 'HAEDAL Github Link', }, { id: 2, + name: 'HAEDAL Instagram', href: 'https://www.instagram.com/knu.haedal/', icon: InstagramLogoIcon, - alt: 'HAEDAL Instagram Link', }, ] diff --git a/src/app/(main)/_components/footer/Footer.tsx b/src/app/(main)/_components/footer/Footer.tsx index 8bb43bfb..0efa4de9 100644 --- a/src/app/(main)/_components/footer/Footer.tsx +++ b/src/app/(main)/_components/footer/Footer.tsx @@ -1,7 +1,7 @@ import Image from 'next/image' +import { ChannelIcons } from './ChannelIcons' import { FooterDetail } from './FooterDetail' -import { LinkIcon } from './LinkIcon' export const Footer = () => { return ( @@ -21,8 +21,10 @@ export const Footer = () => {

-

© 2024 해달. All rights reserved.

- +

+ © 2024 해달. All rights reserved. +

+ ) } diff --git a/src/app/(main)/_components/footer/FooterDetail.tsx b/src/app/(main)/_components/footer/FooterDetail.tsx index 2e383a23..257ae9e9 100644 --- a/src/app/(main)/_components/footer/FooterDetail.tsx +++ b/src/app/(main)/_components/footer/FooterDetail.tsx @@ -6,11 +6,13 @@ type FooterDetailData = { export const FooterDetail = () => { return ( -
+
{footerDetailData.map((detail) => (
-
{detail.label}
-
{detail.content}
+ + {detail.label} + + {detail.content}
))}