This document explains how the social media links are displayed and how to add new social media links to the codebase.
The social media links are displayed using the Footer component located in Footer.tsx. This component creates a grid layout to showcase the social media links.
- Grid Layout: The social media links are displayed in a responsive grid layout using Material-UI's
Grid,Stack, andTooltipcomponents. - Social Media Icons: Each social media link is displayed as an icon button with a tooltip.
flowchart LR
A[Footer Component] -->|Fetches| B[Socials Data]
B --> C[Maps Socials to Grid Items]
C --> D[Displays Social Media Icons]
D --> E[Social Media Icon]
D --> F[Social Media Tooltip]
D --> G[Social Media Link]
To add new social media links, you need to update the socials array in socials.ts.
-
Open the socials.ts file.
-
Add a new object to the socials array with the following structure:
{ name: 'Social Media Name', url: 'https://social-media-url.com', icon: SocialMediaIconComponent, color: '#colorCode', }
By following these steps, you can successfully add new social media links to the footer.