Skip to content

Commit d42350c

Browse files
committed
add social links component
1 parent d6f1fe3 commit d42350c

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/components/HeroSection.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
2-
import { Link } from 'react-router-dom';
3-
41
import { ReactComponent as HeroIllustration } from '../assets/images/hero-illustration.svg';
5-
import { SocialLink, socialLinks } from '../data/Social';
2+
import SocialLinks from './SocialLinks';
63

74
const HeroSection = () => {
85
return (
@@ -25,16 +22,7 @@ const HeroSection = () => {
2522
<h2 className="mb-4 font-serif text-xl font-medium text-dark-900 dark:text-white md:text-3xl">
2623
Connect with me
2724
</h2>
28-
<div className="flex items-center gap-4">
29-
{socialLinks.map((link: SocialLink) => (
30-
<Link to={link.url} key={link.id}>
31-
<FontAwesomeIcon
32-
icon={link.icon}
33-
className="h-8 w-8 text-dark-900 shadow-sm transition-transform duration-300 ease-linear hover:-translate-y-1 hover:text-blue-600 dark:text-white dark:hover:text-blue-400"
34-
/>
35-
</Link>
36-
))}
37-
</div>
25+
<SocialLinks />
3826
</div>
3927
</div>
4028
<div className="grow">

0 commit comments

Comments
 (0)