Overview
The Footer component displays copyright information and a link to the source code repository. It’s styled with Spotify theme colors and centered layout. File:src/app/components/Footer.tsx
Component
src/app/components/Footer.tsx
Features
Dynamic Year
Copyright year updates automatically using
new Date().getFullYear()External Links
Links to X (Twitter) profile and GitHub repository with proper
target="_blank" and rel="noopener noreferrer"Responsive Text
Text size adjusts for mobile devices using
max-md:text-smSpotify Styling
Uses Spotify green for links and light gray for body text
Usage
The Footer is imported in the main page component:src/app/page.tsx
Styling
The footer uses Tailwind CSS classes with Spotify theme colors:- Text Color:
text-spotify-light-grayfor body text - Link Color:
text-spotify-greenfor interactive links - Layout: CSS Grid spanning 6 columns, centered alignment
- Spacing: Bottom margin of
mb-10, top margin between paragraphsmt-5
Grid Layout
Within the main grid layout:- Desktop:
col-span-6(full width) - Mobile:
max-lg:col-span-1 max-lg:row-span-1
Accessibility
- Proper
rel="noopener noreferrer"on external links for security target="_blank"opens links in new tab- Semantic HTML with paragraph tags
- Accessible apostrophe:
'
The Footer component is simple but essential for providing attribution and source code access. It’s always visible at the bottom of the page.