Overview
The SocialLinks component renders social media icons that link to external profiles. It uses react-icons for icon rendering and includes hover effects with Spotify green. File:src/app/components/SocialLinks.tsx
Component
src/app/components/SocialLinks.tsx
Type Definition
Type Definition
Display name of the social media platform
Full URL to the social media profile
React icon component from react-icons/fa6
Features
Icon Library
Uses Font Awesome 6 icons from
react-icons/fa6 packageHover Effect
Icons change to Spotify green on hover with smooth transition
Accessibility
Each link has an
aria-label describing the destinationNext.js Link
Uses Next.js
Link component for optimized navigationSocial Platforms
The component includes links to three platforms:- GitHub - Development portfolio and open source contributions
- LinkedIn - Professional profile and career information
- X (Twitter) - Social updates and professional networking
Usage
The SocialLinks component is typically used in the ProfileCard section:Usage in ProfileCard
Styling
- Icon Size:
text-3xl(48px) - Base Color: Inherits from parent
- Hover Color:
hover:text-spotify-green(#1DB954) - Spacing: Applied by parent container (
gap-4)
Dependencies
package.json
Customization
To add more social links, extend thesocialMedias array:
Add Instagram
Accessibility Best Practices
- Each link includes
target="_blank"to open in a new tab rel="noopener noreferrer"prevents security vulnerabilitiesaria-labelprovides screen reader contextkeyprop ensures proper React reconciliation