Mobile recharge

 <!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>School Special Recharge - QuickRecharge</title>

    <style>

        * {

            margin: 0;

            padding: 0;

            box-sizing: border-box;

            font-family: 'Poppins', sans-serif;

        }

        

        body {

            background-color: #f8f9fa;

            color: #333;

        }

        

        .container {

            max-width: 800px;

            margin: 0 auto;

            padding: 20px;

        }

        

        header {

            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);

            color: white;

            padding: 20px 0;

            box-shadow: 0 4px 12px rgba(0,0,0,0.1);

            border-radius: 0 0 20px 20px;

            margin-bottom: 30px;

        }

        

        .special-offer-banner {

            background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);

            color: white;

            padding: 20px;

            border-radius: 10px;

            margin-bottom: 25px;

            text-align: center;

            box-shadow: 0 4px 15px rgba(255, 75, 43, 0.3);

            position: relative;

            overflow: hidden;

        }

        

        .special-offer-banner::before {

            content: "SCHOOL OFFER";

            position: absolute;

            top: -10px;

            left: -30px;

            background: rgba(255,255,255,0.2);

            color: white;

            padding: 5px 30px;

            transform: rotate(-45deg);

            font-size: 12px;

            font-weight: bold;

        }

        

        .offer-timer {

            background: rgba(0,0,0,0.2);

            padding: 8px 15px;

            border-radius: 20px;

            font-size: 16px;

            font-weight: 600;

            display: inline-flex;

            align-items: center;

            gap: 8px;

            margin: 10px 0;

        }

        

        .offer-price {

            font-size: 24px;

            font-weight: 700;

            display: flex;

            justify-content: center;

            align-items: center;

            gap: 10px;

            margin: 10px 0;

        }

        

        .original-price {

            text-decoration: line-through;

            opacity: 0.7;

            font-size: 20px;

        }

        

        .discounted-price {

            color: #fff;

            font-size: 28px;

        }

        

        .offer-tag {

            background: white;

            color: #ff4b2b;

            padding: 3px 10px;

            border-radius: 20px;

            font-size: 14px;

            font-weight: bold;

            margin-left: 10px;

        }

        

        .header-content {

            display: flex;

            justify-content: space-between;

            align-items: center;

            padding: 0 20px;

        }

        

        .logo {

            font-size: 28px;

            font-weight: 700;

            display: flex;

            align-items: center;

        }

        

        .logo i {

            margin-right: 10px;

            font-size: 32px;

        }

        

        nav ul {

            display: flex;

            list-style: none;

        }

        

        nav ul li {

            margin-left: 25px;

        }

        

        nav ul li a {

            color: white;

            text-decoration: none;

            font-weight: 500;

            font-size: 16px;

            transition: all 0.3s;

        }

        

        nav ul li a:hover {

            opacity: 0.8;

        }

        

        .recharge-container {

            background-color: white;

            border-radius: 15px;

            box-shadow: 0 10px 30px rgba(0,0,0,0.08);

            padding: 40px;

            margin-top: 20px;

            position: relative;

            overflow: hidden;

        }

        

        .recharge-container::before {

            content: "";

            position: absolute;

            top: 0;

            left: 0;

            width: 100%;

            height: 8px;

            background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);

        }

        

        .recharge-header {

            text-align: center;

            margin-bottom: 30px;

        }

        

        .recharge-header h1 {

            color: #2c3e50;

            margin-bottom: 10px;

            font-size: 32px;

            font-weight: 700;

        }

        

        .recharge-header p {

            color: #7f8c8d;

            font-size: 16px;

        }

        

        .recharge-form {

            display: flex;

            flex-direction: column;

            gap: 25px;

        }

        

        .form-group {

            display: flex;

            flex-direction: column;

            gap: 8px;

        }

        

        .form-group label {

            font-weight: 600;

            color: #2c3e50;

            font-size: 15px;

        }

        

        .form-group input, .form-group select {

            padding: 15px;

            border: 2px solid #e0e0e0;

            border-radius: 10px;

            font-size: 16px;

            transition: all 0.3s;

        }

        

        .form-group input:focus, .form-group select:focus {

            border-color: #6a11cb;

            outline: none;

            box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);

        }

        

        .form-row {

            display: flex;

            gap: 20px;

        }

        

        .form-row .form-group {

            flex: 1;

        }

        

        .fixed-amount {

            background-color: #f8f9fa;

            border: 2px solid #e0e0e0;

            border-radius: 10px;

            padding: 15px;

            font-size: 18px;

            font-weight: 600;

            color: #2c3e50;

            text-align: center;

            display: flex;

            align-items: center;

            justify-content: center;

        }

        

        .fixed-amount span {

            color: #6a11cb;

            font-size: 24px;

            margin-left: 5px;

        }

        

        .operator-selector {

            display: flex;

            justify-content: space-between;

            gap: 15px;

            margin: 20px 0;

        }

        

        .operator-option {

            flex: 1;

            padding: 15px;

            border: 2px solid #e0e0e0;

            border-radius: 10px;

            text-align: center;

            cursor: pointer;

            transition: all 0.3s;

            font-weight: 600;

        }

        

        .operator-option.selected {

            border-color: #6a11cb;

            background-color: rgba(106, 17, 203, 0.05);

            color: #6a11cb;

        }

        

        .plan-details {

            background-color: #f8f9fa;

            border-radius: 10px;

            padding: 25px;

            margin-top: 20px;

            border: 2px solid #e0e0e0;

        }

        

        .plan-title {

            font-size: 20px;

            font-weight: 700;

            color: #2c3e50;

            margin-bottom: 15px;

            text-align: center;

        }

        

        .plan-features {

            list-style: none;

        }

        

        .plan-features li {

            padding: 10px 0;

            border-bottom: 1px solid #eee;

            display: flex;

            align-items: center;

        }

        

        .plan-features li:last-child {

            border-bottom: none;

        }

        

        .plan-features li i {

            color: #6a11cb;

            margin-right: 10px;

            font-size: 18px;

        }

        

        .btn {

            padding: 16px;

            border: none;

            border-radius: 10px;

            font-size: 18px;

            font-weight: 600;

            cursor: pointer;

            transition: all 0.3s;

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 10px;

        }

        

        .btn-primary {

            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);

            color: white;

            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);

        }

        

        .btn-primary:hover {

            transform: translateY(-2px);

            box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);

        }

        

        .btn-block {

            width: 100%;

        }

        

        footer {

            background-color: #2c3e50;

            color: white;

            padding: 40px 0 20px;

            margin-top: 50px;

            border-radius: 20px 20px 0 0;

        }

        

        .footer-content {

            display: flex;

            justify-content: space-between;

            flex-wrap: wrap;

            gap: 30px;

            max-width: 1200px;

            margin: 0 auto;

            padding: 0 20px;

        }

        

        .footer-section {

            flex: 1;

            min-width: 200px;

        }

        

        .footer-section h3 {

            margin-bottom: 20px;

            font-size: 18px;

            position: relative;

            padding-bottom: 10px;

        }

        

        .footer-section h3::after {

            content: "";

            position: absolute;

            left: 0;

            bottom: 0;

            width: 40px;

            height: 2px;

            background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);

        }

        

        .footer-section ul {

            list-style: none;

        }

        

        .footer-section ul li {

            margin-bottom: 12px;

        }

        

        .footer-section ul li a {

            color: #bdc3c7;

            text-decoration: none;

            transition: all 0.3s;

        }

        

        .footer-section ul li a:hover {

            color: white;

            padding-left: 5px;

        }

        

        .footer-bottom {

            text-align: center;

            padding-top: 30px;

            margin-top: 30px;

            border-top: 1px solid #34495e;

            max-width: 1200px;

            margin: 0 auto;

        }

        

        .payment-methods {

            display: flex;

            justify-content: center;

            gap: 15px;

            margin-top: 20px;

            flex-wrap: wrap;

        }

        

        .payment-method {

            width: 60px;

            height: 40px;

            object-fit: contain;

            background: white;

            padding: 5px;

            border-radius: 5px;

        }

        

        @media (max-width: 768px) {

            .header-content {

                flex-direction: column;

                gap: 15px;

            }

            

            nav ul {

                width: 100%;

                justify-content: space-between;

            }

            

            nav ul li {

                margin: 0;

            }

            

            .form-row {

                flex-direction: column;

                gap: 20px;

            }

            

            .recharge-container {

                padding: 30px 20px;

            }

            

            .operator-selector {

                flex-direction: column;

            }

        }

    </style>

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

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">

</head>

<body>

    <header>

        <div class="header-content">

            <div class="logo">

                <i class="fas fa-bolt"></i>

                QuickRecharge

            </div>

            <nav>

                <ul>

                    <li><a href="#"><i class="fas fa-home"></i> Home</a></li>

                    <li><a href="#"><i class="fas fa-mobile-alt"></i> Recharge</a></li>

                    <li><a href="#"><i class="fas fa-tv"></i> DTH</a></li>

                    <li><a href="#"><i class="fas fa-headset"></i> Support</a></li>

                </ul>

            </nav>

        </div>

    </header>

    

    <div class="container">

        <div class="special-offer-banner">

            <div>SCHOOL SPECIAL OFFER</div>

            <div class="offer-timer">

                <i class="fas fa-clock"></i> Offer ends in: <span id="offer-time">02:00</span>

            </div>

            <div class="offer-price">

                <span class="original-price">₹899</span>

                <span class="discounted-price">₹349</span>

                <span class="offer-tag">62% OFF</span>

            </div>

            <div>Limited time offer for students only</div>

        </div>

        

        <div class="recharge-container">

            <div class="recharge-header">

                <h1>Premium Mobile Recharge</h1>

                <p>Enjoy our best value plan with unlimited benefits</p>

            </div>

            

            <form class="recharge-form">

                <div class="form-row">

                    <div class="form-group">

                        <label for="mobile-number"><i class="fas fa-mobile-alt"></i> Mobile Number</label>

                        <input type="tel" id="mobile-number" placeholder="Enter 10 digit mobile number" maxlength="10" required>

                    </div>

                    <div class="form-group">

                        <label for="operator"><i class="fas fa-sim-card"></i> Operator</label>

                        <select id="operator" required>

                            <option value="">Select Your Operator</option>

                            <option value="airtel">Airtel</option>

                            <option value="jio">Jio</option>

                            <option value="vi">Vi</option>

                            <option value="bsnl">BSNL</option>

                        </select>

                    </div>

                </div>

                

                <div class="form-row">

                    <div class="form-group">

                        <label for="circle"><i class="fas fa-map-marker-alt"></i> Circle</label>

                        <select id="circle" required>

                            <option value="">Select Your Circle</option>

                            <option value="delhi">Delhi/NCR</option>

                            <option value="mumbai">Mumbai</option>

                            <option value="up">Uttar Pradesh</option>

                            <option value="bihar">Bihar/Jharkhand</option>

                            <option value="wb">West Bengal</option>

                        </select>

                    </div>

                    <div class="form-group">

                        <label><i class="fas fa-rupee-sign"></i> Recharge Amount</label>

                        <div class="fixed-amount">

                            Fixed Amount: <span>₹349</span>

                        </div>

                    </div>

                </div>

                

                <div class="operator-selector">

                    <div class="operator-option selected" data-operator="airtel">

                        Airtel

                    </div>

                    <div class="operator-option" data-operator="jio">

                        Jio

                    </div>

                    <div class="operator-option" data-operator="vi">

                        Vi

                    </div>

                    <div class="operator-option" data-operator="bsnl">

                        BSNL

                    </div>

                </div>

                

                <div class="plan-details">

                    <div class="plan-title">₹349 Plan Benefits (Original ₹899)</div>

                    <ul class="plan-features">

                        <li><i class="fas fa-check-circle"></i> <strong>3GB/day</strong> high speed data (School Special)</li>

                        <li><i class="fas fa-check-circle"></i> <strong>Unlimited</strong> calls to any network</li>

                        <li><i class="fas fa-check-circle"></i> <strong>100 SMS/day</strong> for 56 days</li>

                        <li><i class="fas fa-check-circle"></i> Free subscription to <strong>Hotstar VIP + Disney+</strong></li>

                        <li><i class="fas fa-check-circle"></i> <strong>56 days</strong> validity</li>

                        <li><i class="fas fa-check-circle"></i> Free access to <strong>educational apps</strong></li>

                    </ul>

                </div>

                

                <button type="submit" class="btn btn-primary btn-block">

                    <i class="fas fa-bolt"></i> Avail School Offer ₹349 (₹899)

                </button>

            </form>

        </div>

    </div>

    

    <footer>

        <div class="footer-content">

            <div class="footer-section">

                <h3>Quick Links</h3>

                <ul>

                    <li><a href="#">Home</a></li>

                    <li><a href="#">About Us</a></li>

                    <li><a href="#">Services</a></li>

                    <li><a href="#">Contact</a></li>

                </ul>

            </div>

            

            <div class="footer-section">

                <h3>Services</h3>

                <ul>

                    <li><a href="#">Mobile Recharge</a></li>

                    <li><a href="#">DTH Recharge</a></li>

                    <li><a href="#">Electricity Bill</a></li>

                    <li><a href="#">Gas Bill</a></li>

                </ul>

            </div>

            

            <div class="footer-section">

                <h3>Support</h3>

                <ul>

                    <li><a href="#">FAQs</a></li>

                    <li><a href="#">Help Center</a></li>

                    <li><a href="#">Privacy Policy</a></li>

                    <li><a href="#">Terms & Conditions</a></li>

                </ul>

            </div>

            

            <div class="footer-section">

                <h3>Contact Us</h3>

                <ul>

                    <li><i class="fas fa-envelope"></i> support@quickrecharge.com</li>

                    <li><i class="fas fa-phone"></i> +91 9876543210</li>

                    <li><i class="fas fa-map-marker-alt"></i> Bangalore, India</li>

                </ul>

            </div>

        </div>

        

        <div class="payment-methods">

            <img src="https://via.placeholder.com/60x40?text=VISA" alt="Visa" class="payment-method">

            <img src="https://via.placeholder.com/60x40?text=MC" alt="Mastercard" class="payment-method">

            <img src="https://via.placeholder.com/60x40?text=UPI" alt="UPI" class="payment-method">

            <img src="https://via.placeholder.com/60x40?text=PP" alt="Paytm" class="payment-method">

        </div>

        

        <div class="footer-bottom">

            <p>&copy; 2023 QuickRecharge. All Rights Reserved.</p>

        </div>

    </footer>


    <script>

        // Improved countdown timer that works in apps

        function startOfferTimer(duration, display) {

            let timer = duration, minutes, seconds;

            

            // Immediately update the display

            updateTimerDisplay();

            

            // Update the timer every second

            const interval = setInterval(updateTimerDisplay, 1000);

            

            function updateTimerDisplay() {

                minutes = parseInt(timer / 60, 10);

                seconds = parseInt(timer % 60, 10);


                minutes = minutes < 10 ? "0" + minutes : minutes;

                seconds = seconds < 10 ? "0" + seconds : seconds;


                display.textContent = minutes + ":" + seconds;


                if (--timer < 0) {

                    clearInterval(interval);

                    display.textContent = "00:00";

                    // Optional: Add code to handle offer expiration

                    document.querySelector('.offer-timer').innerHTML = 

                        '<i class="fas fa-exclamation-circle"></i> Offer expired!';

                }

            }

        }


        // Start the timer when page loads

        document.addEventListener('DOMContentLoaded', function() {

            const twoMinutes = 60 * 2; // 2 minutes in seconds

            const display = document.querySelector('#offer-time');

            startOfferTimer(twoMinutes, display);

        });


        // Operator selection functionality

        document.querySelectorAll('.operator-option').forEach(option => {

            option.addEventListener('click', function() {

                // Remove selected class from all options

                document.querySelectorAll('.operator-option').forEach(opt => {

                    opt.classList.remove('selected');

                });

                

                // Add selected class to clicked option

                this.classList.add('selected');

                

                // Update the dropdown value

                document.getElementById('operator').value = this.dataset.operator;

            });

        });

    </script>

</body>

</html>

Comments

Popular posts from this blog

Hiii