Footer component displays contact information, social media links, and conditionally shows a video policy link based on the current page.
Features
- Contact email with image link
- Social media icons (Twitter/X, Instagram, GitHub)
- Conditional rendering based on current page
- Hover scale animations
- Game icon display
Usage
- Basic Usage
- In Layout
src/layouts/Layout.astro
Component Code
The Footer component usesAstro.url.pathname to conditionally render content:
src/components/Footer.astro
Conditional Rendering
The Footer component conditionally hides certain sections on the/youtube page:
- Game icon images
- Video Policy link
Social Media Links
The footer includes three social media links:| Platform | Icon | Link |
|---|---|---|
| Twitter/X | bi-twitter-x | https://twitter.com/RobTopGames |
bi-instagram | https://instagram.com/robtopgames | |
| GitHub | bi-github | https://github.com/ElIvanFX/RobTopGamesWeb |
Contact Email
The contact section displays a clickable image that opens the user’s email client:Styling Features
Hover Scale Animation
- Social media icons
- Contact email image
Accessibility
All external links include:target="_blank"- Opens in new tabrel="noopener noreferrer"- Security best practice- Semantic HTML structure
Customization
To modify social media links:src/components/Footer.astro
