Overview
FooterComponent is a simple footer component that displays social media links and other footer content. It uses Angular Material button and icon components with integrated analytics tracking.
Selector
Usage
AppComponent) at the bottom of the content area.
Features
- Social Media Links: Includes link to Jet’s X (Twitter) profile
- Analytics Tracking: Automatically tracks clicks on social links
- Material Design: Uses Material button and icon components
- Internationalization: Text is translatable via Transloco
- Accessible: Proper semantic HTML with accessible labels
Template
The component renders a centered container with social media links:Analytics Events
The component tracks these analytics events:Triggered when user clicks the X (Twitter) profile link
Dependencies
The component uses:MatButtonModule- Material button stylesMatIconModule- Material iconsAnalyticsDirective- Analytics event trackingTranslocoModule- InternationalizationLoggerService- Component initialization logging
Customization
To customize the footer, you can:Add More Links
Edit the template to include additional social or information links:Update Translations
Add translation keys in your translation files (e.g.,en.json):
Styling
Customize the footer appearance infooter.component.scss:
Example: Extended Footer
Accessibility
- Uses semantic
<a>tags for links - Material buttons include proper focus states
- External links open in new tab with
target="_blank" - Icons supplemented with text labels
Source
Location:src/app/components/footer/footer.component.ts