Skip to content

Add race header design variations and preview screen#22

Open
selfire1 wants to merge 2 commits into
monofrom
claude/mobile-race-header-designs-AdeKe
Open

Add race header design variations and preview screen#22
selfire1 wants to merge 2 commits into
monofrom
claude/mobile-race-header-designs-AdeKe

Conversation

@selfire1
Copy link
Copy Markdown
Owner

Summary

Added three different design variations for the race header component and a preview screen to showcase them. This allows the team to evaluate different UI approaches for displaying race information on the home screen.

Key Changes

  • Three header design variations:

    • BlurredFlagHeader: Clean design with blurred race image background, circular image badge, and gradient overlay
    • NativePolishHeader: Native-style card with race details, date badge, progress bar showing season progress, and clock icon for qualifying lock time
    • CreativeHeader: Bold, animated design with large background text, pulsing status indicators, countdown timer, and gradient overlays
  • Preview screen (race-header-preview.tsx): New route that displays all three header variations side-by-side for easy comparison and design evaluation

  • Dummy data (dummy.ts): Centralized mock race metadata used across all header variations (round number, circuit name, countdown timers, etc.)

  • Home screen link: Added a subtle link on the home screen to navigate to the header preview screen for quick access during development

Implementation Details

  • All headers accept a Race object and display race-specific information
  • Animations implemented using react-native-reanimated (fade-in entrance animation on CreativeHeader, pulsing dots for status indicators)
  • Theme-aware styling using the existing THEME system for dark/light mode support
  • Responsive layouts using Tailwind CSS classes
  • Reusable PulseDot component for animated status indicators in the creative header

https://claude.ai/code/session_01BJkyoozsLDLYpu42zmmB3T

claude and others added 2 commits April 23, 2026 09:24
Adds a preview screen (`/race-header-preview`) showing three candidate
mobile race header designs stacked for comparison:
1. Blurred flag + subtle gradient (port of the web FlagBackgroundCard)
2. Native polish — typographic hierarchy, date tile, season progress
3. Creative HUD — tilted flag, oversized type, pulsing countdown

Adds `expo-linear-gradient` and a small "Preview header designs" link at
the top of the home screen for navigation. Existing header.tsx is
untouched.

https://claude.ai/code/session_01BJkyoozsLDLYpu42zmmB3T
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.

2 participants