You are an expert Front-End Developer and CRO (Conversion Rate Optimization) specialist.
Create a complete, modern, professional, mobile-first one-product landing page using only HTML, CSS and vanilla JavaScript.
IMPORTANT RULES
• Everything must be contained inside ONE SINGLE HTML FILE.
• Do not use Bootstrap.
• Do not use Tailwind.
• Do not use React.
• Do not use jQuery.
• Do not use external CSS frameworks.
• Use only HTML, CSS and Vanilla JavaScript.
• The code must be clean, organized and commented.
• The landing page must be lightweight and optimized for Meta Ads traffic.
• Fast loading.
• SEO optimized.
• Fully responsive.
• Mobile-first.
• No horizontal scrolling.
• Accessibility friendly.
----------------------------------------------------
CONFIGURATION
----------------------------------------------------
At the beginning of JavaScript create ONE editable object.
const PRODUCT_CONFIG = {
name: "[PRODUCT NAME]",
price: [PRICE],
oldPrice: [OLD PRICE OR 0],
currency: "MAD",
shortDescription:
"[SHORT DESCRIPTION]",
whatsappNumber:
"[PHONE WITHOUT +]",
country:
"[COUNTRY]",
defaultQuantity:1,
images:[
"[IMAGE LINK 1]",
"[IMAGE LINK 2]",
"[IMAGE LINK 3]",
"[IMAGE LINK 4]"
],
specifications:[
"Specification 1",
"Specification 2",
"Specification 3"
]
};
Use this object everywhere.
No duplicated values.
----------------------------------------------------
PAGE STRUCTURE
----------------------------------------------------
1 Announcement Bar
Examples:
🚚 Livraison partout au Maroc
⭐ Paiement à la livraison
📞 Assistance WhatsApp
----------------------------------------------------
2 Hero Section
Large premium product image.
Product name.
Price.
Old price (only if >0)
Short description.
CTA button:
Commander sur WhatsApp
Secondary CTA:
Voir les détails
Show trust badges:
✔ Paiement à la livraison
✔ Livraison rapide
✔ Produit de qualité
----------------------------------------------------
3 Product Gallery
Large image.
Thumbnail slider.
Previous / Next arrows.
Touch swipe support.
Lazy loading.
Smooth fade animation.
----------------------------------------------------
4 Benefits Section
4 premium cards.
Use icons made with inline SVG.
Example:
High Quality
Easy to Use
Fast Delivery
Customer Satisfaction
----------------------------------------------------
5 Specifications
Simple cards.
Only use provided specifications.
Do NOT invent specifications.
----------------------------------------------------
6 Usage Instructions
Display only if relevant.
Otherwise automatically hide this section.
----------------------------------------------------
7 Why Choose This Product
Modern icon cards.
Short persuasive text.
----------------------------------------------------
8 Order Form
Fields:
Name
Phone
City
Address
Quantity (+ / - buttons)
Live total price calculation.
Validation.
Required fields.
----------------------------------------------------
9 WhatsApp Button
Generate automatically:
Hello, I want to order:
Product:
[PRODUCT NAME]
Price:
[PRICE]
Quantity:
{quantity}
Total:
{total}
Customer name:
{name}
Phone:
{phone}
City:
{city}
Address:
{address}
Open
https://wa.me/
with encoded message.
----------------------------------------------------
10 Sticky Mobile CTA
Visible only on mobile.
Contains
Price
Order Button
----------------------------------------------------
11 Footer
Simple.
Copyright.
----------------------------------------------------
DESIGN
----------------------------------------------------
Premium ecommerce style.
White background.
Blue gradient accents.
Rounded cards.
Soft shadows.
Large spacing.
Beautiful typography.
Modern buttons.
Smooth hover effects.
Smooth scrolling.
Glassmorphism where appropriate.
Professional appearance.
----------------------------------------------------
ANIMATIONS
----------------------------------------------------
Fade-in on scroll.
Hover animations.
Button ripple effect.
Smooth image transitions.
Counter animation for quantity.
----------------------------------------------------
SEO
----------------------------------------------------
Include:
meta description
meta keywords
canonical
Open Graph
Twitter Card
robots
theme-color
----------------------------------------------------
SCHEMA
----------------------------------------------------
Add JSON-LD Product Schema.
Include:
name
image
description
offers
price
currency
availability
----------------------------------------------------
PERFORMANCE
----------------------------------------------------
Use loading="lazy"
Use CSS variables.
Minimize DOM operations.
No unnecessary JavaScript.
No libraries.
----------------------------------------------------
ACCESSIBILITY
----------------------------------------------------
Labels.
ARIA attributes.
Keyboard navigation.
Alt text.
Focus styles.
----------------------------------------------------
MOBILE
----------------------------------------------------
Large buttons.
Easy touch targets.
Sticky bottom CTA.
Responsive typography.
----------------------------------------------------
CONVERSION OPTIMIZATION
----------------------------------------------------
Include:
Urgency badge
Stock indicator
Secure order badges
Delivery badge
Money-saving badge
Animated CTA
Visible WhatsApp button
Persistent mobile CTA
Trust indicators
----------------------------------------------------
OUTPUT
----------------------------------------------------
Return ONLY the final HTML code.
Do not explain anything.
Do not wrap inside markdown.
The page must be immediately usable after saving as:
index.html