Skip to content

VasuChaubey/valentine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💖 Valentine's Day Proposal - The Ultimate Romantic Experience

Made with Love HTML5 CSS3 JavaScript

🎨 A stunning, interactive Valentine's Day proposal with glassmorphism design, live typing romantic shayari, floating hearts, particle effects, and much more!

Valentine especial (even he is single 😂) wants some fun so crafted with heart...

✨ Features🚀 Quick Start⚙️ Configuration📖 Documentation🤝 Contributing


✨ Features

🎭 Core Features

  • 💝 Name Input System - Personalized experience with name collection
  • 🎨 Glassmorphism Design - Modern, Apple-inspired glass effect UI
  • 📜 Live Typing Shayari - Romantic messages type out character by character
  • 💫 Floating Hearts - Hearts float from all directions (top, bottom, sides)
  • 🎯 Interactive Touch Hearts - Click/touch anywhere to generate hearts
  • ✨ Particle System - 200+ animated particles in the background
  • 🎵 Background Music - Romantic music with fade effects
  • 🎉 Celebration Mode - Massive confetti and heart explosion on "Yes"
  • 😂 Playful "No" Button - The "No" button runs away when you try to click it!

🌟 Advanced Features

  • 🌐 Bilingual Support - English and Hindi romantic messages
  • 📱 Fully Responsive - Perfect on desktop, tablet, and mobile
  • 🎭 Smooth Animations - 60fps hardware-accelerated effects
  • ⚙️ Highly Configurable - Easy customization through config.js
  • 📸 Image Support - Add person's photo with heart-shaped masking
  • 🎚️ Sound Effects - Celebration sounds, whoosh effects
  • 💾 State Persistence - Remembers user's name
  • 🎨 Multiple Color Themes - Pre-configured beautiful gradients
  • 📊 Stats Display - Shows hearts generated and love percentage

💕 Unique Features

  • Slow Reveal Design - Experience builds up gradually
  • Multi-Section Scrolling - Long, engaging journey
  • Real-Time Typing Effect - Messages appear letter by letter
  • Heart Rain - Continuous heart shower during celebration
  • Touch-Generated Hearts - Every touch creates hearts
  • No Button Grows Yes - The more you avoid "No", the bigger "Yes" gets!

📂 Project Structure

valentine-proposal/
├── index.html              # Main HTML file
├── config.js               # Configuration file (CUSTOMIZE THIS!)
├── css/
│   ├── styles.css         # Main styles
│   └── animations.css     # Animation keyframes
├── js/
│   ├── main.js           # Main orchestrator
│   ├── hearts.js         # Hearts generation system
│   ├── shayari.js        # Romantic messages system
│   ├── particles.js      # Particle effects
│   ├── interactions.js   # User interactions
│   ├── music.js          # Music & sounds
│   └── animations.js     # Animation utilities
├── assets/                # Audio files (add your own)
│   ├── romantic-music.mp3
│   ├── celebration.mp3
│   ├── heart-pop.mp3
│   └── whoosh.mp3
├── images/                # Images (optional)
│   └── [your images here]
├── README.md              # This file
├── SETUP.md               # Setup guide
└── CUSTOMIZATION.md       # Customization guide

🚀 Quick Start

Option 1: Direct Usage (Fastest)

  1. Download/clone this repository
  2. Open index.html in your browser
  3. That's it! The app works immediately! 🎉

Option 2: With Customization

  1. Download/clone the repository
  2. Edit config.js to customize (name, colors, messages, etc.)
  3. (Optional) Add music files to assets/ folder
  4. (Optional) Add person's image to images/ folder
  5. Open index.html in your browser

Option 3: Deploy to GitHub Pages

  1. Fork/clone this repository
  2. Push to your GitHub account
  3. Enable GitHub Pages in repository settings
  4. Your romantic proposal will be live! 💖

⚙️ Configuration

All customization is done through config.js. Here are the main options:

Personal Configuration

preFillName: "HerName",          // Pre-fill name (skip input screen)
yourName: "Ankit Chaubey",     // Your name
personImage: "images/her.jpg",  // Person's photo

Music Configuration

backgroundMusic: "assets/romantic-music.mp3",
startMusicAfterName: true,
musicVolume: 0.3,

Visual Effects

floatingHeartsCount: 150,      // Number of floating hearts
particlesCount: 200,           // Number of particles
heartsPerTouch: 5,             // Hearts per click/touch
enable3DEffects: true,         // Enable 3D transforms

Romantic Messages

Add your own romantic messages in both English and Hindi:

romanticMessages: [
    {
        english: "Every moment with you feels like a dream... 💕",
        hindi: "तुम्हारे साथ हर पल एक ख्वाब जैसा लगता है... 💕"
    },
    // Add more messages...
]

See CUSTOMIZATION.md for complete customization options.

🎵 Adding Music

The app supports background music and sound effects:

  1. Find Free Music:

    • YouTube Audio Library (free, no attribution needed)
    • Bensound (free with attribution)
    • Incompetech (Creative Commons)
    • Pixabay Music (free, no attribution)
  2. Add Files:

    assets/
    ├── romantic-music.mp3  (background music)
    ├── celebration.mp3     (celebration sound)
    ├── heart-pop.mp3       (heart sound)
    └── whoosh.mp3          (whoosh effect)
    
  3. Update config.js:

    backgroundMusic: "assets/romantic-music.mp3",

Note: Music files are optional. The app works perfectly without them!

📖 Documentation

🎨 Features Walkthrough

1. Welcome Screen

  • Name input with glassmorphism design
  • Optional person's image
  • Floating hearts animation
  • Smooth transitions

2. Introduction

  • Personalized greeting using entered name
  • Live typing romantic message
  • Particles and hearts start floating

3. Romantic Messages

  • Multiple romantic shayari/messages
  • Real-time typing effect
  • Bilingual support (English/Hindi)
  • Scroll-based reveals

4. Memories Section

  • Beautiful memory cards
  • Fade-in animations
  • Customizable memories

5. The Big Question

  • "Will You Be My Valentine?"
  • Interactive Yes/No buttons
  • No button dodges clicks (hilarious!)
  • Yes button grows with each No attempt

6. Celebration

  • Massive confetti explosion
  • Heart rain animation
  • Stats display
  • Romantic success message
  • Replay option

🛠️ Technical Details

Technologies Used

  • HTML5 - Semantic markup
  • CSS3 - Glassmorphism, animations, gradients
  • Vanilla JavaScript - No frameworks!
  • Canvas API - Particle system
  • Web Audio API - Music and sounds
  • LocalStorage - State persistence
  • Intersection Observer - Scroll animations

Performance Optimizations

  • Hardware-accelerated CSS transforms
  • RequestAnimationFrame for smooth 60fps
  • Efficient particle management
  • Mobile optimizations (reduced effects)
  • Lazy loading for sections

Browser Compatibility

  • ✅ Chrome 90+
  • ✅ Firefox 88+
  • ✅ Safari 14+
  • ✅ Edge 90+
  • ✅ Mobile browsers (iOS Safari, Chrome Mobile)

Requirements:

  • Modern browser with backdrop-filter support
  • JavaScript enabled
  • (Optional) Audio support for music

📱 Mobile Support

The app is fully responsive and optimized for mobile:

  • Touch events for heart generation
  • Reduced particle count on mobile
  • Responsive typography
  • Optimized animations
  • Touch-friendly buttons

🎯 Usage Examples

Example 1: Direct Proposal

// config.js
preFillName: "",  // Show name input

Send them the link → They enter name → Romantic journey begins!

Example 2: Surprise Proposal

// config.js
preFillName: "HerName",  // Skip input, show personalized welcome
personImage: "images/sarah.jpg",

Opens directly with their name → More surprising!

Example 3: Anniversary Special

// config.js
romanticMessages: [
    {
        english: "365 days of love... and counting! 💕",
        hindi: "प्यार के 365 दिन... और गिनती जारी है! 💕"
    },
    // Add anniversary-specific messages
]

🤝 Contributing

Contributions are welcome! Here's how:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Ideas for Contributions

  • 🎨 New color themes
  • 💝 More romantic messages
  • 🌍 Additional language support
  • 🎵 Sound effect improvements
  • 📱 PWA support
  • ✨ New animation effects

📜 License

MIT License © 2026 Ankit Chaubey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.

👨‍💻 Author

Ankit Chaubey

Valentine especial (even he is single 😂) wants some fun so crafted with heart...

⭐ Show Your Support

If you love this project:

  • Star this repository
  • 🍴 Fork it for your own proposal
  • 📢 Share it with friends
  • 💬 Give feedback via issues
  • 💕 Use it for your Valentine's proposal!

🙏 Acknowledgments

  • Inspired by love and romance 💕
  • Built with passion and late nights ☕
  • Powered by modern web technologies ⚡
  • Made for creating beautiful memories 📸

💡 Tips for Success

  1. Test it first - Open locally before sharing
  2. Customize messages - Make it personal!
  3. Add music - Sets the perfect mood
  4. Use their photo - More meaningful
  5. Send at right time - Timing matters!
  6. Have fun! - That's what it's all about! 😄

🌟 May your love story be as beautiful as this code! 🌟

Made with ❤️ by Ankit Chaubey

Happy Valentine's Day! 💕

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors