GlowPure — CPA Landing Page Template

A conversion-focused, single-page marketing template for skincare, beauty and wellness offers — with built-in lead capture, urgency mechanics and ad-platform tracking.

HTML5 · CSS3 · Vanilla JS No build step No jQuery Responsive 320px → 4K 575 KB single file Documentation included

The template as shipped — desktop offer band, mobile layout and these docs. More renders are in the screenshots/ folder.

1 · Welcome

Thanks for purchasing GlowPure. This template is built for performance marketers: it is a single landing page engineered around one goal — capturing the lead and pushing the visitor to the offer.

Tip: If you only need to get online fast, use index.html from the package root. Use template/ when you want to edit CSS/JS comfortably.

2 · What's inside

🎯 Conversion focused

Hero, benefits, how-it-works, before/after, reviews, FAQ, offer band, trust badges, footer CTA — the full persuasion stack.

📬 3 lead-capture forms

Hero form, offer-band form and exit-intent popup, all with inline validation and a thank-you modal.

📊 Attribution

UTMs, click_id, aff_id, sub1–sub5, gclid, fbclid, ttclid, referrer and page URL are captured with every lead.

📡 Pixel ready

Meta Pixel, TikTok Pixel and Google Tag Manager — just paste your IDs, no code changes.

⚡ Fast

~575 KB total, fonts and images embedded, 5 image requests, no render-blocking third parties.

🎁 Bonus backend

A dependency-free Python server that stores leads in CSV/JSON and serves a dashboard.

3 · Quick start

Option A — just open it

Double-click index.html (the one-file build). Everything — fonts, images, CSS, JS — is embedded. Leads typed into the forms are queued in localStorage because there is no server.

Option B — upload to any host

  1. Upload index.html to your web host, Netlify drop, Vercel, S3, cPanel — anywhere.
  2. Open template/index.html, set CONFIG.offerUrl in the script block to your affiliate link, then run python3 tools/build.py.
  3. If you edit the source, run python3 tools/build.py to regenerate the one-file build.

Option C — local preview + working lead capture

cd bonus/lead-backend
python3 server.py 8000

# open  http://localhost:8000        → the page
#       http://localhost:8000/leads  → lead dashboard
#       http://localhost:8000/stats  → JSON counters

Requires Python 3.8+ and nothing else — no pip installs.

4 · File structure

GlowPure-v1.0.2/
├── index.html                 ← READY-TO-USE single-file build (start here)
├── template/                  ← editable modular source
│   ├── index.html
│   ├── assets/css/style.css
│   ├── assets/js/main.js
│   ├── assets/fonts/*.woff2   (+ OFL licence)
│   └── assets/img/*.jpg       (demo photos)
├── documentation/
│   └── index.html             ← this file
├── screenshots/               ← full-page renders (desktop, tablet, mobile)
├── preview/                   ← marketplace cover images (1200×900, 590×300, 80×80)
├── LICENSE.txt                ← full licence terms (Codester licence prevails)
├── licenses/                  ← third-party notices: font OFL licences, demo-image notice
├── bonus/lead-backend/
│   ├── server.py
│   └── README.md
├── CHANGELOG.md
└── README.md

5 · Brand & colours

All colours live in one place — the :root block at the top of template/assets/css/style.css (or inside the first <style> tag of the single-file build).

:root{
  --green  : #1d3532;   /* announcement bar        */
  --purple : #571f97;   /* primary CTA + accents   */
  --deep   : #371757;   /* offer band              */
  --gold   : #feee70;   /* secondary CTA + price   */
  --cream  : #f8f1eb;   /* hero background         */
  --sage   : #edf1e2;   /* how-it-works background */
  --ink    : #1c1c1c;   /* headings                */
}
#1d3532
#571f97
#43177c
#371757
#feee70
#f8f1eb
#edf1e2
#fbf7f3

Changing a variable updates every button, badge, icon and section that uses it — no find & replace needed.

6 · Content & copy

WhatWhere
Announcement bar text.announce — top of <body>
Logo & navigationheader.site → .brand, .menu
Headline, sub-headline, bullet benefitssection.hero → h1, .lead, .benefits
Ingredient blocks.ing-grid — five .ing items
How-it-works steps.steps — four .step blocks
Testimonials.rev-grid — three .rev cards
FAQ questions & answers#faq → .faq-item
Prices & discount.price-box + CONFIG.discountCode
Social-proof toastsproofs[] array in main.js
Compliance: the copy is demo content. Replace claims, testimonials, prices and before/after photos with substantiated, legally approved material for your market before you advertise.

7 · Replacing images

Demo photos live in template/assets/img/. Swap the files, keep the filenames, and you're done — or point the src attributes at your own assets.

FileUsed inRecommended size
hero-model.jpghero (right side)≈ 620 × 1110 px, portrait
serum-bottle.jpghero + offer band≈ 760 × 760 px, square, transparent-friendly
before.jpg / after.jpgbefore/after block≈ 620 × 340 px each

Ingredient icons and trust badges are inline SVG — recolour them with the CSS stroke attribute or swap in your own icons.

If you use the single-file build, re-generate it after changing images:

python3 tools/build.py    # rebuilds index.html from template/ (css, js, fonts, images)

8 · Configuration (CONFIG)

Everything you normally need to touch lives in one object at the top of template/assets/js/main.js (or the <script> block in the one-file build):

const CONFIG = {
  leadEndpoint : '/api/lead',      // where leads are POSTed
  offerUrl     : '#offer',         // ← your affiliate / CPA network link
  gtmId        : '',               // 'GTM-ABC1234'
  fbPixelId    : '',               // '123456789012345'
  fbEvent      : 'Lead',
  tiktokPixelId: '',               // 'CXXXXXXXXXXXXXXXXX'
  discountCode : 'GLOW50'
};
KeyWhat it does
leadEndpointURL receiving the JSON lead. Use the bundled Python backend, a serverless function, or a form service such as Formspree / Getform / Web3Forms.
offerUrlDestination of the thank-you modal button and every “Order Now” CTA. External links open in a new tab automatically.
gtmIdLoads Google Tag Manager. Leave empty to disable.
fbPixelId / fbEventLoads Meta Pixel and fires the named standard event on submit.
tiktokPixelIdLoads TikTok Pixel and fires SubmitForm.
discountCodeCode shown in the thank-you modal and inline success messages.

9 · Countdown & urgency

The offer band runs a rolling countdown. To change its length, edit the highlighted value:

const total = 48 * 3600 * 1000;   // ← 48 hours, in milliseconds
const start = Date.now() - (14 * 3600 + 36 * 60 + 21) * 1000;  // initial display

It wraps automatically when it reaches zero, so the page always looks “live”. For a fixed deadline instead, replace the block with a target date:

const total = new Date('2026-12-31T23:59:59').getTime() - Date.now();

The exit-intent popup fires once per session when the cursor leaves the top of the viewport (desktop only), or after 45 s if the visitor has scrolled past 45 % of the page.

10 · FAQ accordion

Add or remove items by copying a block — no JavaScript changes required:

<div class="faq-item">
  <button class="faq-q">Your question?<span class="ic">+</span></button>
  <div class="faq-a"><p>Your answer.</p></div>
</div>

11 · Lead capture

Three forms share one handler (hookLead()). Each validates the email, POSTs the payload, fires conversion events and opens the thank-you modal.

FormElement IDRecorded as
Hero#heroFormsource: "hero"
Offer band#offerFormsource: "offer-band"
Exit-intent popup#exitFormsource: "exit-intent"

Payload

{
  "email": "visitor@example.com",
  "source": "hero",
  "ts": "2026-10-18T09:12:44.001Z",
  "utm_source": "facebook", "utm_medium": "cpc", "utm_campaign": "serum-launch",
  "click_id": "abc123", "sub1": "aff-9", "gclid": "…", "fbclid": "…",
  "page_url": "https://…", "referrer": "https://…"
}
Offline safety net: if the endpoint cannot be reached (for example when the file is opened directly from disk), the lead is stored in localStorage under glowpure_leads and the visitor still sees the success state.

Using a form service instead

leadEndpoint : 'https://formspree.io/f/YOUR_FORM_ID'

The code sends JSON; Formspree, Getform and Web3Forms all accept it. For Google Sheets, point it at an Apps Script Web App URL.

12 · Bonus Python backend

bonus/lead-backend/server.py is a ~200-line, dependency-free server:

RoutePurpose
POST /api/leadstores a lead (validates the email, returns {"ok":true})
GET /leadsHTML dashboard with the most recent leads
GET /leads.csvCSV download
GET /statsJSON counters, handy for uptime checks
python3 server.py 8000        # or any port
python3 server.py 80          # needs admin rights
Lead dashboard

The bundled lead dashboard at /leads.

Before going public: the dashboard has no authentication — put it behind HTTP basic auth, an IP allow-list, or keep it on localhost only.

13 · Pixels & analytics

Fill in the IDs in CONFIG and tracking starts automatically. These events are pushed to dataLayer (available to GTM/GA4 even without a pixel installed):

EventFires whenPayload
generate_leada form is submitted successfullyform_source, lead_email
cta_clickany CTA button is clickedcta_text
exit_intent_shownthe exit popup appears—

Meta Pixel additionally fires PageView and CONFIG.fbEvent (default Lead); TikTok fires SubmitForm.

14 · Deployment

HostHow
cPanel / shared hostingUpload index.html into public_html. Done.
NetlifyDrag the folder onto Netlify Drop, or connect the repo.
Vercelvercel deploy — no configuration needed (static output).
GitHub PagesPush the folder, enable Pages on the branch root.
WordPressUpload via FTP and link to it, or paste the <body> markup into a blank page template.
CPA network / trackerUpload as a custom landing page; keep the relative asset paths or use the single-file build.
The single-file build needs no companion files — ideal for hosts, trackers or clients that only accept one HTML file.

15 · QA & browser support

Every release is checked automatically (tools/qa.py, headless Chromium):

Browser support: current Chrome, Edge, Firefox, Safari (desktop + iOS) and Android Chrome. The layout uses CSS Grid, Flexbox, clamp(), aspect-ratio and IntersectionObserver — all widely supported since 2021.

16 · Licence & credits

Your licence. Your use of this template is governed solely by the Codester licence you purchased (Regular Licence or Extended Licence), together with Codester's terms as shown on the item page. Nothing in this package grants rights beyond that licence: there is no "unlimited use", no "unlimited client projects" and no unlimited end products — how many end products you may build, and whether you may use it for clients, is determined by the Codester licence you bought. If any text in this documentation, the README or another file conflicts with the licence you purchased on Codester, the Codester licence prevails.
AssetLicence
The template itselfGoverned by the licence you purchased on Codester — see ../LICENSE.txt (package root) for the full terms and for the direct-sale tiers that apply only outside marketplaces.
Playfair Display, Inter (embedded webfonts)SIL Open Font License 1.1 — see ../licenses/fonts-OFL.txt
Demo photographsPlaceholder only — not licensed for end products, replace before launch. See ../licenses/demo-images.txt
IconsHand-drawn inline SVG, free to use as part of the template
Bonus backendMIT — see section 8 of ../LICENSE.txt (package root)

17 · Support

Support is included with every purchase and covers installation, configuration and defect correction for the template as delivered. No purchase code, licence key or other proof of purchase is required to ask for help.

How to reach support

To get a faster answer, include

What support covers

Support does not cover custom feature development, third-party service integrations beyond what is documented, or issues caused by your own modifications or by your hosting environment.

Response time: typically within 1–2 business days, Monday to Friday. Please check this documentation first — most questions are answered above.

18 · Changelog

v1.0.2 — 2026-10-18
  • Licensing clarified: use is governed solely by the Codester licence
    purchased; unlimited-use / unlimited-client-project wording removed.
  • Licence moved to the package root (LICENSE.txt) and every reference to it
    corrected so no link points at a missing file.
  • Demo placeholder links removed from the page footer.

v1.0.1 — 2026-10-18
  • Support section rewritten: no order / licence code required.
  • Codester buyers reach support through the item page — no separate
    purchase-code verification.

v1.0.0 — 2026-10-18
  • First public release
  • Single-file build + modular source
  • Lead capture (3 forms), Python backend + dashboard
  • Meta / TikTok / GTM tracking, UTM + click-ID attribution
  • Countdown, exit-intent popup, social-proof toasts, FAQ accordion
  • Documentation, screenshots and marketplace preview kit