Skip to content

feat(layout): add main view layout with sidebar and map area - #4

Merged
mitoperni merged 1 commit into
mainfrom
feat/03-main-view-layout
Feb 3, 2026
Merged

mitoperni merged 1 commit into
mainfrom
feat/03-main-view-layout

Conversation

@mitoperni

@mitoperni mitoperni commented Feb 3, 2026 •

Copy link
Copy Markdown
Owner

Description

Implements the main view layout structure with a responsive two-column design consisting of a sidebar and map area.

Type of Change

  • New feature

Changes Made

  • Header component (src/components/layout/header.tsx): Logo with bike icon and "CycleMap" title
  • Sidebar component (src/components/layout/sidebar.tsx): Wrapper with fixed width (551px) on desktop, full width on mobile
  • MapSkeleton component (src/components/map/map-skeleton.tsx): Loading placeholder for map area with animated indicator
  • Main page layout (src/app/page.tsx): Two-column responsive layout

Technical Details

  • All components are Server Components (no "use client") for optimal performance
  • Uses Tailwind CSS v4 syntax for CSS variables: w-(--sidebar-width)
  • Responsive breakpoints:
    • Mobile/Tablet (<1024px): Stacked layout (sidebar on top, map below)
    • Desktop (≥1024px): Side-by-side layout

Screenshots

image

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No TypeScript errors (npm run type-check)
  • No ESLint warnings (npm run lint)
  • Build passes (npm run build)
  • Tested responsive layout on different screen sizes
  • Loading state implemented (MapSkeleton)

- Create Header component with CycleMap logo and bike icon
- Create Sidebar wrapper component with responsive width
- Create MapSkeleton placeholder component for loading state
- Implement two-column layout (sidebar + map) with responsive breakpoints
- Mobile: stacked layout (sidebar on top, map below)
- Desktop (lg+): side-by-side layout with fixed sidebar width
@mitoperni mitoperni self-assigned this Feb 3, 2026
@mitoperni
mitoperni merged commit ec6b119 into main Feb 3, 2026
4 checks passed
@mitoperni
mitoperni deleted the feat/03-main-view-layout branch February 5, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant