Skip to content

[Frontend] HeaderLanding Component #1

Description

@aguilar1x

🎯 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.tsx

Integration:

  • 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-sm subtitle.
  • Button: rounded-full gradient (purple→blue), left icon, smooth transitions.
  • Use Tailwind utilities consistent with project spacing (py-3/py-4, sensible gap-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.

🔗 Reference

Figma design

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions