BottomNavigation component provides a fixed bottom navigation bar for mobile devices, displaying key navigation links with icons.
Component Location
File:src/components/BottomNavigation.tsx
Props
Optional CSS classes to apply to the component wrapper
Interface
src/components/BottomNavigation.tsx
Features
- Responsive Design: Full-width on mobile, styled card on tablet/desktop
- Icon Navigation: Uses the Icon component for consistent iconography
- Hover Effects: Animated hover states with translation and scaling
- Solid.js: Client-side interactive component
Navigation Items
The component includes three navigation items:- Home (
/) - Home icon - Projects (
/projects) - Project icon - About (
/about) - About icon
Usage
With Custom Styling
Styling
The component uses Tailwind CSS classes:NavigationItem Component
The internalNavigationItem component handles individual navigation links:
src/components/BottomNavigation.tsx
Icon element to display (typically from Icon component)
Text label to display below the icon
Navigation link destination
Optional CSS classes
Responsive Behavior
- Mobile
- Tablet/Desktop
- Full-width layout
- Border top only
- Fixed to bottom of viewport (when positioned)
- Items evenly distributed
Animation
Hover interactions include:- Background: Semi-transparent gray with backdrop blur
- Transform: Translates upward by 8px (
-translate-y-2) - Scale: Increases size by 25% (
scale-125) - Transition: Smooth
transition-allanimation
Related Components
Icon Component
Icon library used for navigation items
Navigation
Main header navigation component