Skip to content

Commit 59f371a

Browse files
refactor: 링크 하드코딩 분리
1 parent 3168742 commit 59f371a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

app/page.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export default function Home() {
2424
getPosts();
2525
}, []);
2626

27+
const linkedinLink =
28+
'https://www.linkedin.com/in/%EC%A0%95%EC%9A%B0-%EC%84%9C-9a0b79312/';
29+
const githubLink = 'https://github.com/ShipFriend0516';
30+
2731
return (
2832
<main className="w-full max-w-4xl mx-auto grid gap-16 p-8">
2933
{/* Hero Section */}
@@ -66,15 +70,10 @@ export default function Home() {
6670
학습과 성장을 추구합니다.
6771
</p>
6872
<div className="flex gap-4">
69-
<a href={'https://github.com/ShipFriend0516'} target={'_blank'}>
73+
<a href={githubLink} target={'_blank'}>
7074
<FaGithub className="w-5 h-5 text-default hover:scale-125 transition cursor-pointer" />
7175
</a>
72-
<a
73-
href={
74-
'https://www.linkedin.com/in/%EC%A0%95%EC%9A%B0-%EC%84%9C-9a0b79312/'
75-
}
76-
target={'_blank'}
77-
>
76+
<a href={linkedinLink} target={'_blank'}>
7877
<FaLinkedin className="w-5 h-5 text-default hover:scale-125 transition cursor-pointer" />
7978
</a>
8079
</div>

0 commit comments

Comments
 (0)