Overview
The Footer component provides a simple, centered footer that appears at the bottom of every page. It includes attribution information and credits for the technologies used to build the site.Implementation
Location:src/components/Footer.astro
The Footer is a standalone Astro component with no props. It reads the GitHub link from the PROFILE configuration.
Key Features
- Responsive layout - Stacks vertically on mobile, horizontal on desktop
- Consistent styling - Matches the site’s design system with border and padding
- Profile integration - Links to the developer’s GitHub profile
- Technology credits - Highlights the tech stack used
Usage
The Footer is imported and used in theBaseLayout component:
src/layouts/BaseLayout.astro
Configuration
The Footer reads the GitHub link from profile data:src/content/profileData.ts
Customization
To customize the footer:- Change attribution - Update the name and link in the component
- Modify technologies - Edit the tech stack list in the text
- Adjust styling - Update Tailwind classes for spacing and typography
- Add social links - Include additional
<a>tags with icons
Example: Adding Social Links
Styling
The footer uses these key styles:border-t- Top border for visual separationmax-w-screen-lg- Constrains width on large screensmd:h-24- Fixed height on medium+ screenstext-muted-foreground- Subtle text color from themeflex-col md:flex-row- Responsive flex direction
Content
The default footer includes:- Attribution - Credits the developer
- GitHub link - Links to the developer’s profile with underline styling
- Love emoji - Red heart emoji in between
- Tech stack - Lists Astro, React, TypeScript, and Tailwind CSS
Accessibility
- Uses semantic
<footer>element - External links include
target="_blank"for new tab opening - Proper text contrast with
text-muted-foreground - Responsive design works on all screen sizes
- Small text size (
text-xs) but maintains readability