astro-navigation
3
总安装量
3
周安装量
#60040
全站排名
安装命令
npx skills add https://github.com/soborbo/claudeskills --skill astro-navigation
Agent 安装分布
github-copilot
3
opencode
2
antigravity
2
claude-code
2
codex
2
kimi-cli
2
Skill 文档
Astro Navigation Skill
Purpose
Provides navigation patterns for lead generation sites. Mobile-first, accessible, conversion-focused. Implements header, footer, mobile menu, breadcrumbs, and skip links with proper keyboard navigation and screen reader support.
Core Rules
- Mobile-first â Design for 375px, enhance for desktop
- Phone prominent â Click-to-call in header on mobile
- CTA visible â Primary CTA always accessible
- Accessible â Keyboard navigable, screen reader friendly
- Fast â No layout shift on menu toggle
- Sticky elements â Header fixed top, mobile CTA bar fixed bottom
- Active states â Indicate current page in navigation
- Skip link â Allow keyboard users to skip to main content
- Escape key â Close mobile menu with Escape
- Safe areas â Account for iOS notch/safe areas
Navigation Components
Header
- Sticky header with logo, desktop nav, phone, and CTA
- Mobile menu button visible only on mobile
- Logo always links to homepage
- Phone number clickable with proper tel: link
Mobile Menu
- Slide-in overlay from right
- Backdrop closes menu on click
- Escape key closes menu
- Prevents body scroll when open
- CTAs at bottom (Quote + Phone)
Footer
- Four-column grid on desktop, stacked on mobile
- Company info, services, areas, quick links
- Bottom bar with copyright and legal links
- Extra padding on mobile to clear sticky CTA bar
Breadcrumbs
- Schema.org structured data
- Current page indicated with aria-current
- Proper semantic markup with ol/li
Skip Link
- Hidden by default, visible on focus
- Fixed position with high z-index
- Jumps to #main-content
Active Link Styling
- Checks current pathname
- Applies aria-current=”page”
- Visual indicator (color + font weight)
Navigation Structure
Header (sticky top)
âââ Logo (links to /)
âââ Desktop Nav (hidden on mobile)
âââ Desktop CTA (phone + button)
âââ Mobile Menu Button (hidden on desktop)
Mobile Menu (overlay)
âââ Close Button
âââ Navigation Links
âââ CTAs (Quote + Phone)
Footer (pb-24 on mobile, pb-12 on desktop)
âââ Company Info
âââ Services Links
âââ Areas Links
âââ Quick Links
âââ Bottom Bar (copyright + legal)
Sticky Mobile CTA Bar (fixed bottom, mobile only)
âââ Call Button
âââ Quote Button
References
Implementation details in references directory:
- Header â Desktop header with nav and mobile menu button
- Mobile Menu â Slide-in menu with animation and script
- Sticky CTA Bar â Fixed bottom bar for mobile
- Footer â Four-column footer with extra mobile padding
- Breadcrumbs â Schema.org breadcrumb navigation
- Skip Link â Accessibility skip-to-content link
- Active Link Styling â Current page indication
Key Patterns
Mobile Menu Animation:
- Hidden with
translate-x-full, visible withtranslate-x-0 - Uses
requestAnimationFramefor smooth transition - 300ms duration matches CSS transition
Sticky Elements:
- Header:
sticky top-0 z-50 - Mobile CTA:
fixed bottom-0 z-40 - Footer:
pb-24on mobile to clear CTA bar
Accessibility:
aria-expandedon menu togglearia-current="page"on active linksaria-labelon navigation landmarks- Skip link for keyboard navigation
Forbidden
- â Hamburger menu on desktop
- â Navigation without keyboard support
- â Missing aria-expanded on toggles
- â Logo without link to homepage
- â Phone number not clickable on mobile
- â Footer hidden by sticky mobile bar
Definition of Done
- Mobile menu works (open/close/escape)
- Phone number clickable on mobile
- CTA visible on all viewports
- Skip link present
- Keyboard navigable
- Active page indicated
- Footer above mobile sticky bar
- Breadcrumbs on inner pages