prime-engineer

byEshwar Kumar

Act as a Senior Front-End Engineer and Lead UI/UX Designer. Your task is to build a high-fidelity, interactive, and fully responsive Front-End for "GariGo", a premium P2P car rental marketplace for Pakistan. The focus is on a world-class user interface, fluid animations, and a sophisticated aesthetic that rivals Turo and Airbnb. Technical Stack (Front-End): Framework: Next.js 14+ (App Router). Styling: Tailwind CSS (Custom Theme). Icons: Lucide-React or Phosphor Icons. Animations: Framer Motion (for smooth transitions and list staggers). Components: Shadcn/UI (customized for the dark theme). Form Handling: React Hook Form with Zod validation. UI/UX & Branding Logic: Theme Name: "Pakistani Heritage Luxe." Primary Color: Deep Emerald/Forest Green (#064E3B). Secondary Color: Rich Burnt Sienna/Brown (#451A03). Backgrounds: Gradient-rich Dark Mode (Deep Charcoal to Black). Accents: Gold/Champagne (#D4AF37) for premium badges and rating stars. Visual Style: Glassmorphism, high-contrast typography, and 16px border-radius on all cards and buttons. Page-by-Page Detailed Requirements: High-Conversion Landing Page: Hero Section: Full-width atmospheric car video or high-res image background. A floating, glassmorphic search bar allowing users to input: [Location], [Pickup Date], and [Return Date]. Dynamic Featured Categories: Horizontal scroll for "Luxury," "Budget," "SUVs," and "Inter-city." Trust Bar: Statistics (e.g., "500+ Verified Cars in Karachi"). Advanced Search & Filter Interface (The "Turo" Experience): Dual View: Toggle between a "Grid View" and a "Split Map View" (using a Mapbox/Google Maps placeholder). Filters: Sticky top-bar with dropdowns for Price Range, Transmission (Auto/Manual), Fuel Type, and Brand. Car Cards: Hover-sensitive image carousels, instant "Instant Book" badges, and price-per-day prominent display. Vehicle Detail Page (PDP): Media Gallery: A professional grid-style gallery (1 large image, 4 small). Host Profile Section: Minimalist card showing Host photo, rating, and "Joined Date." Booking Widget: A sticky right-side sidebar that calculates totals in real-time as dates are selected. Feature Grid: Custom icons for AC, Bluetooth, Sunroof, Car Tracker, and Insurance. Host Dashboard (The "Showroom" View): Analytics Overview: Visual cards for "Monthly Earnings," "Active Rentals," and "Vehicle Health." Listing Manager: A table view of all owned cars with "Status" toggles (Available/Rented/Maintenance). Multi-step Listing Form: Smooth "Framer Motion" transitions between steps (Vehicle Info -> Upload Photos -> Pricing). User/Guest Portal: Trip History: Tabbed view for "Upcoming," "In Progress," and "Past" trips. Verification Status: A visual UI tracker for CNIC and License approval progress. Interaction Design & Animations: Micro-interactions: Buttons should have a subtle scale-down effect on click. Loading States: Skeleton screens for car cards and search results. Page Transitions: Fade-in and slide-up effects for page entry. Technical Constraints (Front-End Only): Mock Data: Use a robust constants/mockData.ts file containing Pakistani car models (Civic, Sportage, Fortuner, etc.) and cities (Lahore, Karachi, Islamabad). Responsive Logic: Mobile-specific bottom navigation bar for quick access to Search, Bookings, and Profile. No Heavy Libraries: Keep the bundle small; prioritize CSS-based animations where possible. Output Expectations: A complete, production-ready Next.js project structure. Fully commented Tailwind configurations for the custom color palette. Reusable UI components (Buttons, Inputs, Cards, Modals). No broken links; all navigation must work using Next/Link.

No preview

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document

System Requirements Document (SRD)

Project Name: prime-engineer

1. Introduction

The prime-engineer project is a comprehensive platform designed to deliver a world-class, interactive, and fully responsive front-end experience for a premium peer-to-peer (P2P) car rental marketplace tailored for Pakistan. The platform aims to provide an elegant and sophisticated user interface that rivals global leaders like Turo and Airbnb, while incorporating cultural and aesthetic elements unique to Pakistan.

This document outlines the system requirements for the prime-engineer project, including functional and non-functional requirements, user personas, visual design elements, and technical specifications.

Page 1 of 9

2. System Overview

The prime-engineer platform will serve two primary user groups: renters (users) and car hosts (owners). It will facilitate seamless car rental transactions by providing a high-fidelity interface, advanced search and filter capabilities, and intuitive dashboards for both user types.

The system will be built using modern front-end technologies such as Next.js 14+ and Tailwind CSS, ensuring responsiveness, performance, and scalability. The design will emphasize a "Pakistani Heritage Luxe" theme, incorporating rich cultural aesthetics and premium branding to create a unique and memorable user experience.

Key features include:

  • A high-conversion landing page with dynamic car categories and trust-building statistics.
  • Advanced search and filter functionality with dual grid and map views.
  • Rich media galleries and dynamic pricing on vehicle detail pages.
  • Host dashboards with analytics and listing management tools.
  • Mobile-responsive design with optimized navigation for smaller screens.

3. Functional Requirements

Page 2 of 9

As a User:

  • I should be able to search for cars by location, pickup date, and return date.
  • I should be able to filter cars by price range, transmission type, fuel type, and brand.
  • I should be able to view car details, including photos, features, and host information.
  • I should be able to book a car and see the total price dynamically calculated.
  • I should be able to view my trip history, categorized as "Upcoming," "In Progress," and "Past."

As a Host:

  • I should be able to view analytics for my monthly earnings, active rentals, and vehicle health.
  • I should be able to manage my car listings, including toggling their availability status.
  • I should be able to add a new car listing through a multi-step form with smooth transitions.

As an Admin:

  • I should be able to monitor platform activity and ensure compliance with policies.

4. User Personas

Page 3 of 9

1. Renter (User)

  • Description: Individuals looking to rent cars for personal or business use.
  • Goals: Find affordable and reliable cars quickly, with transparent pricing and easy booking.
  • Pain Points: Lack of trust in car quality, hidden fees, and limited options.

2. Host (Car Owner)

  • Description: Car owners who want to earn passive income by renting out their vehicles.
  • Goals: Maximize earnings, maintain control over availability, and ensure vehicle safety.
  • Pain Points: Difficulty in managing listings and tracking earnings.

3. Admin

  • Description: Platform managers responsible for overseeing operations and user compliance.
  • Goals: Ensure smooth platform operations and resolve disputes efficiently.
  • Pain Points: Monitoring large volumes of data and ensuring policy adherence.

5. Visuals Colors and Theme

Page 4 of 9

Color Palette

  • Background: Deep Charcoal (#1A1A1A)
  • Surface: Midnight Gray (#2C2C2C)
  • Text: Soft White (#F5F5F5)
  • Accent: Gold Champagne (#D4AF37)
  • Muted Tones: Ash Gray (#707070)

Theme Name: "Pakistani Heritage Luxe"

The theme combines rich, dark tones with luxurious accents to create a premium and culturally resonant aesthetic.

6. Signature Design Concept

Page 5 of 9

Concept: "Interactive Heritage Map"

The homepage will feature an interactive map of Pakistan, styled as a luxurious, gold-etched blueprint. Each major city (e.g., Karachi, Lahore, Islamabad) will be highlighted with glowing emerald markers. Hovering over a city will display a floating card with featured car categories and statistics (e.g., "500+ Verified Cars in Karachi").

Additional features:

  • Dynamic Animations: The map will have subtle pulsating effects, and city markers will "breathe" with a glowing animation.
  • Micro-Interactions: Clicking on a city marker will zoom into the region and display available cars in a sleek, glassmorphic overlay.
  • Time-Based Visuals: The map’s background will shift from a sunrise gradient to a starry night sky based on the user’s local time.

This design will create a memorable first impression and encourage users to explore the platform further.

7. Non-Functional Requirements

  • Performance: The platform must load within 2 seconds on a 4G connection.
  • Scalability: The system should support up to 10,000 concurrent users.
  • Accessibility: The platform must comply with WCAG 2.1 Level AA standards.
  • Localization: The platform will initially support English, with plans for Urdu in future updates.
  • Security: All user data must be encrypted, and the platform must comply with GDPR and local data protection laws.
Page 6 of 9

8. Tech Stack

Frontend

  • Framework: Next.js 14+
  • Styling: Tailwind CSS (Custom Theme)
  • Icons: Lucide-React or Phosphor Icons
  • Animations: Framer Motion
  • Components: Shadcn/UI

Backend

  • Language: Python
  • Framework: FastAPI

Database

  • Primary: MySQL (with Alembic for migrations)

AI Tools

  • LLM Routing: Litellm
  • Frameworks: Langchain

Orchestration

  • Local: Docker, docker-compose
  • Server-Side: Kubernetes
Page 7 of 9

9. Assumptions and Constraints

Assumptions

  • Users will primarily access the platform via mobile devices.
  • Mock data will be used for the initial development phase.
  • The platform will launch in English only.

Constraints

  • The platform must adhere to local regulations for car rentals in Pakistan.
  • The design must prioritize lightweight libraries to ensure fast load times.
Page 8 of 9

10. Glossary

  • P2P: Peer-to-peer, a decentralized model where users interact directly with each other.
  • WCAG: Web Content Accessibility Guidelines, a standard for web accessibility.
  • Glassmorphism: A design trend characterized by frosted-glass-like elements.
  • Framer Motion: A library for creating animations in React applications.
  • Shadcn/UI: A customizable component library for React.

This concludes the updated System Requirements Document for prime-engineer. Let me know if there are additional details or changes you'd like to incorporate, Eshwar!

Page 9 of 9

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

No user flows yet.

The User Flow Agent will generate per-persona navigation diagrams after SRD updates.

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

No user flows yet.

The User Flow Agent will generate per-persona navigation diagrams after SRD updates.