Skip to content

yogeshwar607/shreemoryacabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

49 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Shree Morya Cabs

A modern, eco-friendly electric cab booking website built with Astro, React, and Tailwind CSS.

Features

  • 🌿 100% Electric vehicle fleet
  • ⚑ Fast, static-first website with Astro
  • 🎨 Beautiful UI with Tailwind CSS and shadcn/ui components
  • πŸŒ™ Dark mode support
  • πŸ“± Fully responsive design
  • πŸ” SEO optimized with sitemap generation
  • πŸ’¬ WhatsApp integration for easy booking
  • πŸš— Dynamic vehicle and route pages

Tech Stack

  • Framework: Astro 4.2
  • UI Library: React 18
  • Styling: Tailwind CSS 3.4
  • Components: shadcn/ui (Radix UI + CVA)
  • Icons: Lucide React
  • TypeScript: Full type safety

Project Structure

shreemoryacabs/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ ui/          # shadcn/ui components
β”‚   β”‚   β”œβ”€β”€ react/       # React components
β”‚   β”‚   └── layout/      # Layout components
β”‚   β”œβ”€β”€ data/            # Vehicle and route data
β”‚   β”œβ”€β”€ layouts/         # Page layouts
β”‚   β”œβ”€β”€ lib/             # Utility functions
β”‚   β”œβ”€β”€ pages/           # Page routes
β”‚   └── styles/          # Global styles
β”œβ”€β”€ public/              # Static assets
└── package.json

Getting Started

Prerequisites

  • Node.js 18+
  • npm or pnpm

Installation

  1. Install dependencies:
npm install
  1. Create environment file:
cp .env.example .env
  1. Update .env with your details:
PUBLIC_SITE_URL=https://shreemoryacabs.com
PUBLIC_WHATSAPP_NUMBER=917498264215
PUBLIC_GA_ID=G-XXXXXXXXXX

Development

Start the development server:

npm run dev

Visit http://localhost:4321 to view the site.

Build

Build for production:

npm run build

Preview production build:

npm run preview

Features in Detail

Fleet Management

The fleet is managed through src/data/vehicles.ts. Each vehicle includes:

  • Specifications (battery, range, charging)
  • Pricing (per km, minimum km, full day)
  • Features and amenities
  • Dynamic page generation

Route Management

Routes are defined in src/data/routes.ts. Each route includes:

  • Distance and duration
  • Pricing for different vehicles
  • Highlights and descriptions
  • Popular route flagging

WhatsApp Integration

Easy booking through WhatsApp with pre-filled messages:

  • Vehicle-specific booking messages
  • Route-specific inquiries
  • Custom quote requests

Dark Mode

Automatic dark mode support with:

  • System preference detection
  • Manual toggle
  • Persistent user preference

Customization

Adding a New Vehicle

Edit src/data/vehicles.ts:

{
  id: '3',
  slug: 'new-vehicle',
  name: 'New EV Model',
  // ... other properties
}

Adding a New Route

Edit src/data/routes.ts:

{
  id: '7',
  slug: 'new-route',
  name: 'City A to City B',
  // ... other properties
}

Updating Colors

Edit src/styles/globals.css to customize the color scheme.

Deployment

This is a static site that can be deployed to:

  • Vercel
  • Netlify
  • GitHub Pages
  • Cloudflare Pages
  • Any static hosting service

Deploy to Vercel

npm install -g vercel
vercel

SEO

The site includes:

  • Automatic sitemap generation at /sitemap.xml
  • Open Graph meta tags
  • Twitter Card meta tags
  • Semantic HTML structure
  • robots.txt

Browser Support

  • Modern browsers (Chrome, Firefox, Safari, Edge)
  • Mobile browsers (iOS Safari, Chrome Mobile)

License

MIT License - feel free to use this project for your own purposes.

Support

For issues or questions, please create an issue on the GitHub repository.


Built with ❀️ and powered by clean energy ⚑

About

πŸ•‰οΈ Shree Morya Cabs - Premium Electric Cab Service | Named after Lord Ganesha (Ganpati Bappa Morya) | Pune & Mumbai

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors