Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedBus Welcome Screen Prototype

A responsive web implementation of the RedBus welcome screen design from Figma, featuring mobile number verification and Google sign-in functionality.

🚀 Features

  • Mobile-First Design: Optimized for mobile devices with responsive layout
  • Interactive Elements:
    • Mobile number input with country code selection
    • OTP generation button with loading states
    • Google sign-in integration
  • Smooth Animations: Fade-in animations and hover effects
  • Accessibility: ARIA labels and keyboard navigation support
  • Touch-Friendly: Optimized for touch interactions on mobile devices

📱 Design Specifications

  • Screen Size: 360px × 640px (Android Small)
  • Colors:
    • Primary Red: #d30010
    • Background: White
    • Input Fields: #d9d9d9
  • Typography:
    • Primary: Alata (Regular)
    • Secondary: Calibri (Bold)
  • Shadows: 0px 4px 4px rgba(0,0,0,0.25)

🛠️ Technologies Used

  • HTML5: Semantic markup structure
  • CSS3: Modern styling with Flexbox and Grid
  • Vanilla JavaScript: Interactive functionality
  • Google Fonts: Alata and Calibri font families

📁 Project Structure

figma_redbus/
├── index.html          # Main HTML file
├── styles.css          # CSS styles and responsive design
├── script.js           # JavaScript functionality
└── README.md           # Project documentation

🚀 Getting Started

  1. Clone or Download the project files
  2. Open index.html in a web browser
  3. Test the functionality on both desktop and mobile devices

📱 Mobile Features

  • Responsive Design: Adapts to different screen sizes
  • Touch Interactions: Optimized for mobile touch events
  • Swipe Gestures: Basic swipe detection for future enhancements
  • Mobile Number Input: Touch-friendly number input with validation

🎨 Interactive Elements

Mobile Number Input

  • Click to focus and enter mobile number
  • Country code dropdown (cycles through +60, +91, +1, +44, +86)
  • Real-time validation for Malaysian mobile numbers
  • Enter key support for quick submission

OTP Generation

  • Button with loading state animation
  • Mobile number validation before OTP generation
  • Simulated OTP sending with user feedback

Google Sign-In

  • Hover and click animations
  • Loading state during sign-in process
  • Placeholder for Google OAuth integration

🔧 Customization

Colors

Update the CSS custom properties in styles.css:

:root {
  --primary-red: #d30010;
  --input-bg: #d9d9d9;
  --text-color: #000000;
}

Fonts

Replace Google Fonts imports in index.html:

<link href="https://fonts.googleapis.com/css2?family=YourFont:wght@400&display=swap" rel="stylesheet">

Animations

Modify animation durations in styles.css:

.container > * {
    animation: fadeIn 0.6s ease-out; /* Change duration here */
}

📱 Browser Support

  • Chrome: Full support
  • Firefox: Full support
  • Safari: Full support
  • Edge: Full support
  • Mobile Browsers: Optimized for iOS Safari and Chrome Mobile

🚀 Future Enhancements

  • Real OTP integration with backend API
  • Google OAuth implementation
  • Form validation with error messages
  • Progressive Web App (PWA) features
  • Dark mode support
  • Multi-language support
  • Accessibility improvements (screen reader support)

🐛 Known Issues

  • Placeholder images are used instead of actual RedBus assets
  • OTP generation is simulated (no real backend integration)
  • Google sign-in is a placeholder (no real OAuth implementation)

📄 License

This project is created for demonstration purposes based on the RedBus Figma design.

🤝 Contributing

Feel free to submit issues and enhancement requests!


Note: This is a prototype implementation based on the Figma design. For production use, integrate with actual backend services and replace placeholder assets with real RedBus branding.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages