<!DOCTYPE html> <html lang="hi"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>मेरा प्रोडक्ट पेज</title> <style> /* सामान्य स्टाइल */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background-color: #f8f9fa; color: #343a40; margin-top:-325px; line-height: 1.6; overflow-x: hidden; /* हॉरिजॉन्टल स्क्रॉलिंग रोकें */ } .container { max-width: 1200px; margin: 20px auto; /* ऊपर और नीचे का मार्जिन कम किया */ background-color: #fff; padding: 2px; /* पैडिंग कम की */ box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); border-radius: 10px; box-sizing: border-box; /* पैडिंग को चौड़ाई में शामिल करें */ } /* मुख्य प्रोडक्ट सेक्शन */ .main-product-section { display: flex; flex-direction: column; /* मोबाइल पर कॉलम लेआउट */ gap: 20px; /* गैप कम किया */ margin-bottom: 30px; /* मार्जिन कम किया */ align-items: center; /* सेंटर अलाइनमेंट */ } .main-product-image-area { flex: 1; margin-top:89px; display: flex; flex-direction: column; align-items: center; min-width: 300px; /* छोटे स्क्रीन पर सिकुड़ने से रोके */ } .main-product-image-container { overflow: hidden; border-radius: 8px; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); margin-bottom: 15px; width: 100%; max-width: 500px; } .main-product-image-scroll { display: flex; transition: transform 0.3s ease-in-out; } .main-product-image-scroll img { width: 100%; height: auto; object-fit: cover; flex-shrink: 0; } .image-navigation { display: flex; justify-content: center; gap: 10px; margin-top: 10px; } .nav-button { background: none; border: none; font-size: 1.2em; color: #6c757d; cursor: pointer; padding: 5px 10px; border-radius: 5px; transition: background-color 0.3s ease; } .nav-button:hover { background-color: #e9ecef; } .main-product-details { flex: 1; min-width: 300px; /* छोटे स्क्रीन पर सिकुड़ने से रोके */ } .main-product-details h1 { margin-top: 0; color: #343a40; margin-bottom: 10px; } .main-product-details p { color: #495057; line-height: 1.7; margin-bottom: 15px; } /* कीमत और बटन सेक्शन (इमेज के नीचे) */ .price-button-area { display: flex; flex-direction: column; align-items: center; margin-top: 20px; /* इमेज से थोड़ा गैप */ width: 100%; max-width: 500px; } .price-section { margin-bottom: 10px; text-align: center; } .original-price { font-size: 1.1em; color: #6c757d; text-decoration: line-through; margin-right: 10px; } .discounted-price { font-size: 1.8em; color: #dc3545; /* डिस्काउंट के लिए लाल रंग */ font-weight: bold; } .discount-badge { display: inline-block; background-color: #28a745; /* हरा */ color: #fff; padding: 5px 10px; border-radius: 5px; font-size: 0.9em; font-weight: bold; margin-left: 10px; } .action-buttons { display: flex; gap: 15px; margin-top: 10px; flex-wrap: wrap; justify-content: center; width: 100%; } .action-button { padding: 12px 25px; border: none; border-radius: 5px; font-size: 1.1em; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; text-decoration: none; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; min-width: 150px; } .action-button:hover { transform: translateY(-2px); } .whatsapp-button { background-color: #25D366; /* WhatsApp हरा */ } .whatsapp-button:hover { background-color: #1DA851; } .order-button { background-color: #007bff; /* नीला */ } .order-button:hover { background-color: #0056b3; } /* स्टाइल गैलरी (मुख्य प्रोडक्ट के थंबनेल) */ .style-gallery-container { width: 100%; overflow-x: auto; white-space: nowrap; padding: 15px 0; margin-top: 20px; border-top: 1px solid #dee2e6; } .style-gallery-container::-webkit-scrollbar { height: 8px; } .style-gallery-container::-webkit-scrollbar-thumb { background-color: #adb5bd; border-radius: 10px; } .style-gallery-container::-webkit-scrollbar-track { background-color: #f8f9fa; } .style-thumbnail { display: inline-block; width: 80px; height: 80px; margin-right: 15px; cursor: pointer; border: 2px solid transparent; border-radius: 5px; overflow: hidden; transition: border-color 0.3s ease; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); } .style-thumbnail:hover, .style-thumbnail.active { border-color: #007bff; } .style-thumbnail img { width: 100%; height: 100%; object-fit: cover; } /* मिलते-जुलते प्रोडक्ट्स सेक्शन */ .related-products-section { margin-top: 40px; padding-top: 20px; border-top: 1px solid #dee2e6; } .related-products-section h2 { text-align: center; margin-bottom: 20px; color: #343a40; } .related-products-gallery { display: flex; overflow-x: auto; white-space: nowrap; padding-bottom: 15px; } .related-products-gallery::-webkit-scrollbar { height: 8px; } .related-products-gallery::-webkit-scrollbar-thumb { background-color: #adb5bd; border-radius: 10px; } .related-products-gallery::-webkit-scrollbar-track { background-color: #f8f9fa; } .related-product-card { display: inline-block; width: 200px; margin-right: 15px; background-color: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); flex-shrink: 0; } .related-product-card img { max-width: 100%; height: 140px; object-fit: contain; border-radius: 5px; margin-bottom: 8px; } .related-product-card h3 { font-size: 0.9em; margin-bottom: 3px; color: #343a40; font-weight: 500; } .related-product-card p { font-size: 0.8em; color: #6c757d; margin-bottom: 5px; } .related-product-card .price { color: #28a745; font-weight: bold; font-size: 0.9em; } </style> </head> <body> <div class="main-product-section"> <div class="main-product-image-area"> <div class="main-product-image-container"> <div class="main-product-image-scroll" id="mainProductImageScroll"> <img src="_______" alt="उत्पाद 1 - स्टाइल 1"> <img src="_______" alt="उत्पाद 1 - स्टाइल 2"> <img src="_______" alt="उत्पाद 1 - स्टाइल 3"> </div> </div> <div class="image-navigation"> <button class="nav-button" onclick="scrollImages(-1)">❮</button> <button class="nav-button" onclick="scrollImages(1)">❯</button> </div> <div class="price-button-area"> <div class="price-section"> <span class="original-price">₹_______</span> <span class="discounted-price">₹_______</span> <span class="discount-badge">_______</span> </div> <div class="action-buttons"> <a href="https://wa.me/918601496305?text=नमस्ते! मैं आपके उत्पाद (_______) को ऑर्डर करना चाहता हूँ।" class="action-button whatsapp-button" target="_blank"> <img src="https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg" alt="WhatsApp" style="width:20px; height:20px; margin-right: 5px;"> WhatsApp पर ऑर्डर करें </a> <a href="_______" class="action-button order-button" onclick="alert('आपका ऑर्डर सफलतापूर्वक प्राप्त हुआ!'); return false;"> अभी ऑर्डर करें </a> </div> </div> </div> <div class="main-product-details"> <h1>प्_______</h1> <p>यह उत्पाद बेहतरीन गुणवत्ता के साथ बनाया गया है। इसमें आधुनिक डिज़ाइन और टिकाऊ सामग्री का उपयोग किया गया है।</p> </div> </div> <div class="related-products-section"> <h2 class="text-center">अन्य रंग</h2> <div class="related-products-gallery"> <div class="related-product-card"> <a href=""> <img src="_______" alt="लाल उत्पाद"></a> </div> <div class="related-product-card"> <a href=""><img src="_______ा" alt="नीला उत्पाद"></a> </div> <div class="related-product-card"> <a href=""><img src="_______ा" alt="हरा उत्पाद"></a> </div> <div class="related-product-card"> <a href=""><img src="_______" alt="पीला उत्पाद"></a> </div> <div class="related-product-card"> <a href=""><img src="_______" alt="गुलाबी उत्पाद"></a> </div> </div> </div> <script> const mainProductImageScroll = document.getElementById('mainProductImageScroll'); const mainProductImages = mainProductImageScroll.querySelectorAll('img'); // const thumbnailContainer = document.getElementById('styleGallery'); // अब इसकी जरूरत नहीं // const thumbnails = thumbnailContainer.querySelectorAll('.style-thumbnail'); // अब इसकी जरूरत नहीं let currentImageIndex = 0; // मुख्य इमेज गैलरी को स्क्रॉल करने के लिए function scrollImages(direction) { currentImageIndex += direction; if (currentImageIndex < 0) { currentImageIndex = mainProductImages.length - 1; } else if (currentImageIndex >= mainProductImages.length) { currentImageIndex = 0; } updateMainImageScroll(); // updateActiveThumbnail(); // अब इसकी जरूरत नहीं } // मुख्य इमेज की स्थिति अपडेट करें function updateMainImageScroll() { const translateX = -currentImageIndex * 100 + '%'; mainProductImageScroll.style.transform = `translateX(${translateX})`; } // थंबनेल पर क्लिक करने पर मुख्य इमेज बदलें (यह फ़ंक्शन अब इस्तेमाल नहीं होगा क्योंकि थंबनेल नहीं हैं) // function changeMainImage(index, clickedThumbnail) { // currentImageIndex = index; // updateMainImageScroll(); // updateActiveThumbnail(clickedThumbnail); // } // सक्रिय थंबनेल को हाइलाइट करें (यह फ़ंक्शन अब इस्तेमाल नहीं होगा) // function updateActiveThumbnail(clickedThumbnail = thumbnails.item(currentImageIndex)) { // thumbnails.forEach(thumb => thumb.classList.remove('active')); // if (clickedThumbnail) { // clickedThumbnail.classList.add('active'); // } // } // पेज लोड होने पर पहली इमेज को सक्रिय दिखाएं (केवल स्क्रॉलिंग के लिए) updateMainImageScroll(); // केवल यह कॉल करें </script> </body> </html>
https://ostist.blogspot.com/2025/06/professional-store.html