-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
🎯 Objective
Build the HeaderLanding top bar for the landing page, with branding on the left and actions on the right.
🏗 Component Structure
apps/webapp/components/home/header-landing.tsxIntegration:
- Import and render at the top of the landing page (e.g.,
apps/webapp/app/(landing)/page.tsx). - Use only on the landing (not in the global layout).
🗂 Requirements
HeaderLanding
Left (brand):
- Circular gradient icon (blue→purple) with a “layers/stack” glyph.
- Title: Soroswap Template (medium/bold).
- Subtitle:
by Scaffold Rust(small, muted).
Right (actions):
- Text link: Dashboard.
- Gradient pill button: Github with GitHub icon; hover elevation/opacity.
Layout & Responsiveness:
- Horizontal flex, items centered, space between.
- Constrain with site container width and horizontal padding.
- Mobile: keep single row when possible; otherwise wrap gracefully; ensure touch targets ≥44px.
Accessibility:
- Wrap in
<header role="banner">. - If logo links home, add
aria-label="Go to homepage"; else mark decorative. - “Github” button with
aria-label="Open GitHub repository". - Visible focus rings.
🎨 Design & Tokens
- Icon badge: blue→purple gradient.
- Typography: high-contrast title; muted
text-smsubtitle. - Button: rounded-full gradient (purple→blue), left icon, smooth transitions.
- Use Tailwind utilities consistent with project spacing (
py-3/py-4, sensiblegap-x-*).
✅ Acceptance Criteria
- Matches the reference (brand left, “Dashboard” link + “Github” gradient button right).
- Responsive at 360 / 768 / 1024 / 1280 without overflow.
- No TypeScript or console warnings.
- Present only on the landing page.
