Skip to content

A professional, responsive web application for generating authentic-looking bus tickets for various Indian state transport corporations. Built for Father's Day.

License

Notifications You must be signed in to change notification settings

ishkapoor2000/Dynamic-Bus-Ticket-Generator

Repository files navigation

🚌 Bus Ticket Generator

A professional, responsive web application for generating authentic-looking bus tickets for various Indian state transport corporations. Built with Next.js, TypeScript, and Tailwind CSS.

✨ Features

🎨 Multi-Corporation Support

  • UPSRTC - Uttar Pradesh State Road Transport Corporation
  • HRST - Haryana State Transport
  • PUNBUS - Punjab State Transport
  • RSRTC - Rajasthan State Road Transport Corporation
  • JKSRTC - Jammu & Kashmir State Road Transport Corporation
  • DTC - Delhi Transport Corporation

🎯 Professional Ticket Design

  • Pixel-perfect recreation of real bus ticket layouts
  • Dynamic branding based on selected transport corporation
  • Authentic typography, spacing, and visual elements
  • Barcode generation with embedded ticket information
  • Dotted separators and professional styling

🌈 Customizable Color Schemes

  • 7 Beautiful Color Combinations:
    • Classic Red
    • Ocean Blue
    • Forest Green
    • Royal Purple
    • Sunset Orange
    • Ocean Teal
    • Deep Indigo

📱 Mobile-First Design

  • Fully responsive layout for all screen sizes
  • Touch-friendly form controls
  • Horizontal scroll for ticket preview on mobile
  • Optimized dropdown menus for mobile devices
  • Perfect print output on all devices

🖨️ Print-Ready Output

  • Exact dimensions (850x300px) matching real tickets
  • Perfect color reproduction with print-color-adjust: exact
  • Custom page sizing for optimal printing
  • Professional PDF-quality output

📋 Comprehensive Form Fields

  • Passenger Name
  • Origin & Destination
  • Boarding Time & Date
  • Price (including tax)
  • Bus Number
  • Seat Number
  • Transport Corporation Selection
  • Color Scheme Selection

🎯 Usage

  1. Select Transport Corporation - Choose from 6 major Indian transport corporations
  2. Fill Ticket Details - Enter passenger information, route, timing, and pricing
  3. Choose Color Scheme - Select from 7 professional color combinations
  4. Generate Ticket - Click "Generate Ticket" to create your professional bus ticket
  5. Print or Save - Use the print function for physical copies or save as PDF

📝 Sample Data

Use the "Load Sample Data" button to quickly test the application with pre-filled information.

🔧 Key Features Breakdown

Authentic Design Elements

  • Transport corporation logos and branding
  • Professional typography matching real tickets
  • Proper spacing and layout proportions
  • Barcode with embedded ticket data
  • Dotted separators for visual appeal

Responsive Design

  • Mobile-first approach
  • Touch-friendly interface
  • Horizontal scroll for ticket preview
  • Optimized form layouts for all screen sizes

Print Optimization

  • Custom page sizing (11.81in x 4.17in)
  • Zero margins for exact dimensions
  • Color preservation in print output
  • Professional PDF-quality results

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Inspired by real Indian state transport corporation ticket designs
  • Built with modern web technologies for optimal performance
  • Designed for both personal and educational use

📞 Support

If you encounter any issues or have questions:

🌟 Star this Repository

If you find this project useful, please consider giving it a star ⭐ on GitHub!


Made with ❤️ for Father's Day

This application is for educational and personal use only. Please ensure compliance with local regulations when using generated tickets.

About

A professional, responsive web application for generating authentic-looking bus tickets for various Indian state transport corporations. Built for Father's Day.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published