senior developer er (Copy
# PRESENZ 3D Map - Simple Build Guide ## π― What to Build A single mobile home page showing a 3D map with POI markers, matching the screenshot's dark pu...
Employer: tech comp
Location: Remote
# PRESENZ 3D Map - Simple Build Guide ## π― What to Build A single mobile home page showing a 3D map with POI markers, matching the screenshot's dark purple/blue aesthetic. --- ## π οΈ Tech Stack - **React + TypeScript** - **react-map-gl** (for Mapbox integration) - **shadcn/ui** (for buttons and cards) - **Framer Motion** (for animations) - **Tailwind CSS** (for styling) --- ## π¨ Design Requirements ### Colors ``` Background: #1a1d2e (dark blue) Accent: #00d4ff (cyan glow) Glass effect: rgba(255, 255, 255, 0.08) with backdrop blur Text: White with shadow for readability ``` ### Mobile Layout (375px width) ``` βββββββββββββββββββββββββββ β β Back [Status] β ` from react-map-gl - Dark style with 3D buildings enabled - Initial camera position set to show city view ### 2. CustomMarker (for each POI) ``` - Position: longitude/latitude coordinates - Content: Brand logo in circular container - Style: White background, small shadow - Size: ~40px diameter ``` ### 3. CalloutLabel ``` - White rounded rectangle background - Dark text inside - Small arrow pointing to map feature - Positioned absolutely over map - Examples: "Time + weather depending lighting", "3D lane models" ``` ### 4. Top Navigation Bar ``` - Fixed at top - Back button on left - Status icons on right (signal, wifi, battery) - Semi-transparent background ``` --- ## π¬ Animations (Keep Simple) ### On Page Load 1. Map fades in (0.5s) 2. Markers pop in one by one (0.3s each, staggered) 3. Callout labels fade in after markers ### Interactions - Marker hover: Slight scale up (1.1x) - Map: Standard Mapbox controls (pinch zoom, rotate, tilt) --- ## π¦ Sample POI Data ```javascript [ { id: 'cvs-1', name: 'CVS', coordinates: { lng: -73.9857, lat: 40.7580 }, logo: '/logos/cvs.png' }, { id: '7eleven-1', name: '7-Eleven', coordinates: { lng: -73.9867, lat: 40.7590 }, logo: '/logos/7eleven.png' }, { id: 'starbucks-1', name: 'Starbucks', coordinates: { lng: -73.9847, lat: 40.7570 }, logo: '/logos/starbucks.png' }, { id: 'pizzahut-1', name: 'Pizza Hut', coordinates: { lng: -73.9837, lat: 40.7585 }, logo: '/logos/pizzahut.png' } ] ``` --- ## π File Structure (Keep It Simple) ``` src/ βββ components/ β βββ Map.tsx # Main map component β βββ POIMarker.tsx # Brand logo markers β βββ CalloutLabel.tsx # White info bubbles βββ App.tsx # Main app βββ data/ βββ locations.ts # POI data ``` --- ## β MVP Checklist **Must Have:** - β 3D map view (Mapbox dark style) - β 3D buildings visible - β 4 POI markers with brand logos - β 3-5 callout labels pointing to features - β Mobile responsive (375px) - β Top navigation bar **Nice to Have (if time permits):** - Time-based lighting changes - Marker animations - Click on marker to show info --- ## π― Success Criteria **Your page should show:** 1. A 3D city view from an angle (like the screenshot) 2. Tall buildings with blue/purple tones 3. Brand logos (CVS, 7-Eleven, etc.) floating at their locations 4. White rounded labels describing features 5. Dark theme with good contrast 6. Works on mobile size (375px) **Quality benchmark:** If it looks 70% like the screenshot, you're ready to show the client. --- ## π Quick Start Commands ```bash npm create vite@latest presenz-map -- --template react-ts cd presenz-map npm install react-map-gl mapbox-gl framer-motion npx shadcn@latest init npm run dev ``` **That's it!** Keep it simple, focus on getting the 3D map view with markers working first, then add polish.