A collection of six static HTML page templates controlled by a separate "Brain" system via URL parameters. All pages are built with vanilla HTML, CSS, and JavaScript—no frameworks, no CMS, no page builders.
Brain Pages is a parameter-driven template system where:
- The Brain (AI + human commands) outputs URLs with parameters
- Pages respond by dynamically updating content based on those parameters
- All content injection happens client-side via vanilla JavaScript
- No backend logic required for content display
This architecture enables rapid campaign launches without redesigning pages or modifying code.
Purpose: Lead capture for free trials and early access
Features:
- Hero section with dynamic headline, subheadline, and image
- Lead capture form with name, email, and phone fields
- Dynamic offer text and CTA button
- Automatic redirect to thank-you page with form data
Dynamic Fields:
h– Main headlines– Subheadlineo– Offer descriptioncta– Button textimg– Hero image URLcampaign– Tracking label
Example URL:
pages/landing.html?h=Unlock%20Your%20Potential&s=Join%20thousands%20succeeding&o=Free%2014-day%20trial&cta=Start%20Free%20Trial&img=https://example.com/hero.jpg&campaign=facebook_nov
Purpose: Confirmation and onboarding after free trial signup
Features:
- Personalized confirmation with user's name
- Next steps instructions
- Email verification guidance
- Dynamic CTA for account access
Dynamic Fields:
h– Confirmation headlines– Subheadlineo– Offer/instruction textcta– Next action button textname– User's name (from form submission)email– User's email (from form submission)campaign– Tracking label
Example URL:
pages/landing-thankyou.html?name=John%20Doe&email=john@example.com&h=Thank%20You&campaign=facebook_nov
Purpose: Sell paid programs, events, or courses
Features:
- Hero section with product headline and image
- Offer stack (benefits list)
- Dynamic pricing display
- Purchase form with payment method selection
- Automatic redirect to sales thank-you page
Dynamic Fields:
h– Product headlines– Subheadlineo– Offer descriptionprice– Price or payment textcta– Purchase button textimg– Product image URLcampaign– Tracking label
Example URL:
pages/sales.html?h=Premium%20Masterclass&s=Everything%20you%20need&o=Limited%20spots%20available&price=$297&cta=Enroll%20Now&img=https://example.com/product.jpg&campaign=email_list
Purpose: Post-purchase confirmation and onboarding
Features:
- Personalized welcome message
- Purchase confirmation details
- Access instructions with login credentials
- Onboarding checklist
- Money-back guarantee messaging
Dynamic Fields:
h– Welcome headlines– Onboarding subheadlineo– Access instructionscta– Dashboard access button textprice– Purchase amount (for confirmation)name– Customer's nameemail– Customer's emailcampaign– Tracking label
Example URL:
pages/sales-thankyou.html?name=Jane%20Smith&email=jane@example.com&price=$297&h=Welcome%20to%20Premium&campaign=email_list
Purpose: Evergreen video-based sales page for high-ticket offers
Features:
- Video player with auto-embed conversion (YouTube, Vimeo)
- Urgency messaging with countdown
- Social proof testimonials
- FAQ section
- Price and CTA prominently displayed
- Automatic form submission to thank-you page
Dynamic Fields:
h– Webinar titles– Promise/benefit headlinevideo– Video URL (YouTube, Vimeo, or embed)o– Offer/urgency textprice– Special webinar pricecta– Enrollment button textscore– Urgency message (e.g., "Offer expires in 24 hours")campaign– Tracking label
Example URL:
pages/webinar.html?h=Exclusive%20Webinar&s=Learn%20insider%20secrets&video=https://www.youtube.com/watch?v=dQw4w9WgXcQ&price=$197&score=Offer%20expires%20in%2024%20hours&cta=Get%20Access&campaign=linkedin
Purpose: Online course completion with quiz and certificate trigger
Features:
- Video lesson player with auto-embed conversion
- 5-question multiple-choice assessment
- Dynamic passing score threshold
- Pass/fail result display
- Certificate of completion (frontend only)
- Retry functionality for failed attempts
Dynamic Fields:
h– Course/lesson titles– Lesson descriptionvideo– Lesson video URLo– Lesson overview textscore– Passing score threshold (e.g., "70%")campaign– Tracking label
Example URL:
pages/course.html?h=Module%201:%20Foundations&s=Complete%20the%20lesson&video=https://youtu.be/abc123&score=75%&campaign=course_001
All templates use the same unified parameter schema:
| Parameter | Key | Type | Description | Example |
|---|---|---|---|---|
| Headline | h |
string | Main page heading | h=Welcome%20Today |
| Subheadline | s |
string | Secondary heading / subtitle | s=Discover%20Success |
| Offer Text | o |
string | Offer description or promise | o=Limited%20time%20only |
| CTA Text | cta |
string | Call-to-action button text | cta=Get%20Started |
| Hero Image | img |
URL | Hero image URL | img=https://example.com/hero.jpg |
| Video URL | video |
URL | YouTube, Vimeo, or embed URL | video=https://youtu.be/abc123 |
| Price | price |
string | Price or payment text | price=$297 |
| Passing Score | score |
string | Required passing score for quizzes | score=80% |
| Campaign Label | campaign |
string | Tracking / campaign identifier | campaign=facebook_ad |
- No new parameters may be added without approval
- All parameters are optional—pages use sensible defaults if not provided
- URL encoding required for spaces and special characters (e.g., space =
%20) - XSS protection is built-in; all user input is sanitized
The Brain system outputs a URL with parameters:
https://brainpages.example.com/pages/landing.html?h=New%20Headline&s=New%20Subheadline&cta=New%20Button&campaign=campaign_001
The user clicks the link or is redirected to the page.
The controller.js script:
- Extracts URL parameters
- Sanitizes values to prevent XSS
- Finds all elements with
data-injectattributes - Replaces default content with parameter values
The page renders with the Brain-provided content in real-time.
The campaign parameter is logged for analytics integration.
- HTML: Pure static markup
- CSS: Mobile-first responsive design
- JavaScript: Vanilla ES6 (no frameworks)
- Dependencies: None
brain-pages/
├── pages/
│ ├── landing.html # Lead capture
│ ├── landing-thankyou.html # Lead confirmation
│ ├── sales.html # Product sales
│ ├── sales-thankyou.html # Purchase confirmation
│ ├── webinar.html # Video sales page
│ └── course.html # Course + assessment
├── css/
│ └── style.css # Global styles
├── js/
│ └── controller.js # URL parameter controller
├── index.html # Template hub & documentation
└── README.md # This file
Each template uses data-inject attributes to mark dynamic content:
<h1 data-inject="h">Default Headline</h1>
<p data-inject="s">Default Subheadline</p>
<a href="#" class="btn" data-inject="cta">Default Button Text</a>
<img src="" data-inject="img" alt="Hero">The controller.js finds these elements and replaces their content:
const elements = document.querySelectorAll('[data-inject]');
elements.forEach(el => {
const key = el.getAttribute('data-inject');
const value = this.get(key); // Get from URL or defaults
el.textContent = value; // Update content
});The controller automatically converts video URLs:
-
YouTube watch URL → embed URL
https://youtube.com/watch?v=abc123→https://www.youtube.com/embed/abc123
-
YouTube short URL → embed URL
https://youtu.be/abc123→https://www.youtube.com/embed/abc123
-
Vimeo URL → embed URL
https://vimeo.com/123456→https://player.vimeo.com/video/123456
Brain Pages can be deployed to any static hosting service:
- Netlify (recommended)
- Cloudflare Pages
- GitHub Pages
- AWS S3 + CloudFront
- Any web server (Apache, Nginx, etc.)
-
Netlify:
npm install -g netlify-cli netlify deploy --prod --dir=.
-
Cloudflare Pages:
- Connect your Git repository
- Set build command: (leave empty)
- Set publish directory:
/
-
Manual Upload:
- Upload all files to your web server
- Ensure proper MIME types for
.jsand.cssfiles
- Zero build process required
- Instant deployment (no compilation)
- Lightweight (~50KB total, uncompressed)
- Fast load times (all static files)
- CDN-friendly (cache everything)
Brain Command:
Generate landing page for Q1 lead campaign
Brain Output:
https://brainpages.example.com/pages/landing.html?h=Transform%20Your%20Business%20in%202024&s=Join%20the%20revolution&o=Free%20access%20for%20early%20adopters&cta=Get%20Early%20Access&img=https://cdn.example.com/q1-hero.jpg&campaign=q1_leadgen
Result: Landing page displays custom headline, subheadline, offer, and CTA—all without editing HTML.
Brain Command:
Launch sales page on Facebook, Email, and LinkedIn with different CTAs
Brain Output:
Facebook:
pages/sales.html?h=Limited%20Offer&s=Premium%20Access&price=$197&cta=Claim%20Spot&campaign=facebook_jan
Email:
pages/sales.html?h=Exclusive%20for%20Subscribers&s=VIP%20pricing&price=$147&cta=Enroll%20Now&campaign=email_jan
LinkedIn:
pages/sales.html?h=Professional%20Development&s=Career%20advancement&price=$197&cta=Learn%20More&campaign=linkedin_jan
Result: Same page, different messaging per channel—all tracked separately.
Brain Command:
Create evergreen webinar sales sequence
Brain Output:
Step 1 – Webinar Page:
pages/webinar.html?h=Exclusive%20Masterclass&s=Learn%20the%20secrets&video=https://youtu.be/abc123&price=$197&cta=Enroll%20Now&campaign=webinar_funnel
Step 2 – Thank You (auto-redirect after form):
pages/sales-thankyou.html?name={user_name}&email={user_email}&h=Welcome%20to%20the%20Masterclass&campaign=webinar_funnel
Result: Complete funnel, no page redesign needed.
A: No. This is an execution-only system. Layouts are fixed. The Brain controls content only via parameters.
A: No. The parameter schema is locked. Only the 10 defined parameters are supported.
A: The campaign parameter is logged to the browser console and can be integrated with Google Analytics or other tracking systems. Backend integration is out of scope.
A: Yes. The css/style.css file can be modified to match your branding. However, the HTML structure cannot be changed.
A: All templates are mobile-first responsive. They adapt to all screen sizes automatically.
A: Forms automatically redirect to thank-you pages with form data in URL parameters. Backend processing (email, CRM, etc.) is out of scope.
A: Yes. The controller logs campaign data to the console. You can integrate Google Analytics or other tracking systems by adding the script to the page header.
A: All pages include proper meta tags and semantic HTML. SEO optimization is supported but not included in scope.
A: No. This is a static system. No backend required.
Issue: URL parameters aren't being injected into the page.
Solution:
- Verify the parameter key is correct (h, s, o, cta, img, video, price, score, campaign)
- Check that the URL is properly encoded (spaces =
%20) - Verify the
controller.jsfile is loaded (check browser console) - Clear browser cache and reload
Issue: Video embed isn't displaying.
Solution:
- Verify the video URL is correct
- Supported formats: YouTube watch URL, YouTube short URL, Vimeo URL, or direct embed URL
- Check that the video is public (not private or restricted)
- Try a different video URL to test
Issue: Form submission doesn't redirect to thank-you page.
Solution:
- Verify all required fields are filled
- Check browser console for JavaScript errors
- Verify the thank-you page URL is correct
- Clear browser cache and try again
✅ Six fully functional templates ✅ Unified JavaScript controller ✅ Mobile-responsive design ✅ XSS protection ✅ Video embed auto-conversion ✅ Campaign tracking support ✅ Complete documentation
❌ Backend logic (email, CRM, database) ❌ Certificate email automation ❌ Payment processing ❌ Analytics setup ❌ Custom design changes ❌ Page layout modifications ❌ New parameter additions
Possible future updates (out of current scope):
- A/B testing framework
- Advanced analytics integration
- Multi-language support
- Dark mode theme
- Additional template types
Brain Pages is proprietary software. All rights reserved.
Brain Pages v1.0
- Release Date: January 2024
- Status: Production Ready
- All 6 templates live and tested
- Deploy to Netlify/Cloudflare Pages
- Test with example URL:
https://your-domain.com/pages/landing.html?h=Test&s=Headline&cta=Click%20Me&campaign=test - Verify parameters are injected
- Share URLs with your Brain system
- Monitor campaign tracking
For questions or issues, refer to the project documentation or contact your development team.