Please create a complete, single-file HTML landing page for an ebook titled "A Beginner's Guide to Google Play Points." The goal of this page is to promote the guide and gate the download behind a mock content locker to simulate a CPA offer.
Browse filesThe landing page must be a single HTML file with all CSS (using Tailwind via CDN) and JavaScript embedded within it. The design should be clean, modern, fully responsive, and mobile-first, using a friendly color palette and rounded corners.
Landing Page Content and Structure:
Header Section:
Headline: A compelling, benefit-driven headline like "Unlock Free Rewards on Google Play! Get Your Free Guide."
Sub-headline: A brief, clear description of the ebook: "Your complete guide to earning, leveling up, and maximizing your Google Play Points."
Hero Section:
Ebook Image: Use a placeholder image URL for an ebook cover (e.g., https://placehold.co/300x400/22c55e/ffffff?text=Ebook+Cover) to visually represent the guide.
Benefit List: A bulleted list highlighting the key benefits of the ebook, such as:
"Step-by-step guide to joining the program."
"Hidden ways to earn points for free."
"How to level up to Gold and Platinum tiers fast."
"Maximize the value of your points with smart redemptions."
Call to Action (CTA) Section:
A prominent, visually distinct button labeled "Download Your Free Guide."
This button should be "locked" initially. When a user clicks it, do not download the file immediately.
Content Locker Functionality (JavaScript):
When the "Download Your Free Guide" button is clicked, a modal or pop-up should appear on top of the landing page.
This modal should have a title like "Complete a Quick Offer to Unlock."
Inside the modal, provide a short text explanation: "To get your free guide, please complete one of the sponsored offers below. This helps us continue to provide valuable content for free."
Create a placeholder for a list of "offers." You can use mock buttons or text links for this, for example:
[Mock Offer 1: Install a Free App]
[Mock Offer 2: Take a Short Survey]
Add a final button labeled "I Have Completed an Offer."
When the "I Have Completed an Offer" button is clicked, the modal should close.
The original "Download Your Free Guide" button should then change its behavior. When clicked again, it should now direct the user to a mock download URL (e.g., https://example.com/ebook_download.pdf). For the purpose of this mock-up, a simple alert() or console message confirming the "download" is also acceptable if a direct link is not feasible.
Technical and Design Requirements:
Use a modern, clean font like "Inter."
Ensure all elements have soft, rounded corners using Tailwind classes (e.g., rounded-lg).
The layout should be centered on the page and adapt gracefully to different screen sizes.
Add comments in the HTML to explain the different sections and in the JavaScript to explain the logic of the content locker. - Initial Deployment
- README.md +7 -5
- index.html +134 -18
- prompts.txt +31 -0
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: ebook
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
@@ -1,19 +1,135 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Unlock Free Rewards on Google Play - Get Your Free Guide</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 11 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 12 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 13 |
+
<style>
|
| 14 |
+
body {
|
| 15 |
+
font-family: 'Inter', sans-serif;
|
| 16 |
+
}
|
| 17 |
+
</style>
|
| 18 |
+
</head>
|
| 19 |
+
<body class="bg-gradient-to-br from-blue-50 to-green-50 min-h-screen">
|
| 20 |
+
<!-- Header Section -->
|
| 21 |
+
<header class="container mx-auto px-4 py-8 text-center">
|
| 22 |
+
<h1 class="text-3xl md:text-4xl font-bold text-blue-800 mb-4">Unlock Free Rewards on Google Play!</h1>
|
| 23 |
+
<p class="text-lg md:text-xl text-gray-600 max-w-2xl mx-auto">Your complete guide to earning, leveling up, and maximizing your Google Play Points.</p>
|
| 24 |
+
</header>
|
| 25 |
+
|
| 26 |
+
<!-- Hero Section -->
|
| 27 |
+
<main class="container mx-auto px-4 py-8">
|
| 28 |
+
<div class="flex flex-col md:flex-row items-center justify-center gap-8">
|
| 29 |
+
<!-- Ebook Image -->
|
| 30 |
+
<div class="w-full md:w-1/3 flex justify-center">
|
| 31 |
+
<img src="https://placehold.co/300x400/22c55e/ffffff?text=Ebook+Cover" alt="Google Play Points Guide" class="rounded-2xl shadow-xl w-full max-w-xs">
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
<!-- Benefits List -->
|
| 35 |
+
<div class="w-full md:w-1/2">
|
| 36 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-6">What You'll Learn:</h2>
|
| 37 |
+
<ul class="space-y-4">
|
| 38 |
+
<li class="flex items-start">
|
| 39 |
+
<i data-feather="check-circle" class="text-green-500 mr-3 mt-1"></i>
|
| 40 |
+
<span class="text-gray-700">Step-by-step guide to joining the program</span>
|
| 41 |
+
</li>
|
| 42 |
+
<li class="flex items-start">
|
| 43 |
+
<i data-feather="check-circle" class="text-green-500 mr-3 mt-1"></i>
|
| 44 |
+
<span class="text-gray-700">Hidden ways to earn points for free</span>
|
| 45 |
+
</li>
|
| 46 |
+
<li class="flex items-start">
|
| 47 |
+
<i data-feather="check-circle" class="text-green-500 mr-3 mt-1"></i>
|
| 48 |
+
<span class="text-gray-700">How to level up to Gold and Platinum tiers fast</span>
|
| 49 |
+
</li>
|
| 50 |
+
<li class="flex items-start">
|
| 51 |
+
<i data-feather="check-circle" class="text-green-500 mr-3 mt-1"></i>
|
| 52 |
+
<span class="text-gray-700">Maximize the value of your points with smart redemptions</span>
|
| 53 |
+
</li>
|
| 54 |
+
</ul>
|
| 55 |
+
|
| 56 |
+
<!-- CTA Button -->
|
| 57 |
+
<button id="downloadBtn" class="mt-8 w-full bg-green-500 hover:bg-green-600 text-white font-semibold py-4 px-6 rounded-xl shadow-lg transition-all duration-300 transform hover:scale-105">
|
| 58 |
+
Download Your Free Guide
|
| 59 |
+
</button>
|
| 60 |
+
</div>
|
| 61 |
+
</div>
|
| 62 |
+
</main>
|
| 63 |
+
|
| 64 |
+
<!-- Content Locker Modal -->
|
| 65 |
+
<div id="lockerModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
|
| 66 |
+
<div class="bg-white rounded-2xl p-6 m-4 max-w-md w-full shadow-2xl">
|
| 67 |
+
<h3 class="text-2xl font-bold text-gray-800 mb-4">Complete a Quick Offer to Unlock</h3>
|
| 68 |
+
<p class="text-gray-600 mb-6">To get your free guide, please complete one of the sponsored offers below. This helps us continue to provide valuable content for free.</p>
|
| 69 |
+
|
| 70 |
+
<div class="space-y-4 mb-6">
|
| 71 |
+
<div class="border border-gray-200 rounded-xl p-4 hover:bg-gray-50 cursor-pointer transition-colors">
|
| 72 |
+
<h4 class="font-semibold text-gray-800">Install a Free App</h4>
|
| 73 |
+
<p class="text-sm text-gray-600">Quick and easy - takes less than 2 minutes</p>
|
| 74 |
+
</div>
|
| 75 |
+
<div class="border border-gray-200 rounded-xl p-4 hover:bg-gray-50 cursor-pointer transition-colors">
|
| 76 |
+
<h4 class="font-semibold text-gray-800">Take a Short Survey</h4>
|
| 77 |
+
<p class="text-sm text-gray-600">Share your opinion and help brands improve</p>
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<button id="completeOfferBtn" class="w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold py-3 px-4 rounded-xl transition-colors">
|
| 82 |
+
I Have Completed an Offer
|
| 83 |
+
</button>
|
| 84 |
+
</div>
|
| 85 |
+
</div>
|
| 86 |
+
|
| 87 |
+
<script>
|
| 88 |
+
// Initialize feather icons
|
| 89 |
+
feather.replace();
|
| 90 |
+
|
| 91 |
+
// Content locker functionality
|
| 92 |
+
let isUnlocked = false;
|
| 93 |
+
const downloadBtn = document.getElementById('downloadBtn');
|
| 94 |
+
const lockerModal = document.getElementById('lockerModal');
|
| 95 |
+
const completeOfferBtn = document.getElementById('completeOfferBtn');
|
| 96 |
+
|
| 97 |
+
// Handle download button click
|
| 98 |
+
downloadBtn.addEventListener('click', function() {
|
| 99 |
+
if (!isUnlocked) {
|
| 100 |
+
// Show the content locker modal
|
| 101 |
+
lockerModal.classList.remove('hidden');
|
| 102 |
+
} else {
|
| 103 |
+
// Download the guide (mock implementation)
|
| 104 |
+
window.location.href = 'https://example.com/ebook_download.pdf';
|
| 105 |
+
// Alternative mock implementation:
|
| 106 |
+
// alert('Your download is starting!');
|
| 107 |
+
}
|
| 108 |
+
});
|
| 109 |
+
|
| 110 |
+
// Handle offer completion
|
| 111 |
+
completeOfferBtn.addEventListener('click', function() {
|
| 112 |
+
// Hide the modal
|
| 113 |
+
lockerModal.classList.add('hidden');
|
| 114 |
+
|
| 115 |
+
// Unlock the download
|
| 116 |
+
isUnlocked = true;
|
| 117 |
+
|
| 118 |
+
// Update button text and style
|
| 119 |
+
downloadBtn.textContent = 'Download Now';
|
| 120 |
+
downloadBtn.classList.remove('bg-green-500', 'hover:bg-green-600');
|
| 121 |
+
downloadBtn.classList.add('bg-blue-500', 'hover:bg-blue-600');
|
| 122 |
+
|
| 123 |
+
// Show success message (optional)
|
| 124 |
+
alert('Thank you! Your guide is now unlocked.');
|
| 125 |
+
});
|
| 126 |
+
|
| 127 |
+
// Close modal when clicking outside
|
| 128 |
+
lockerModal.addEventListener('click', function(e) {
|
| 129 |
+
if (e.target === lockerModal) {
|
| 130 |
+
lockerModal.classList.add('hidden');
|
| 131 |
+
}
|
| 132 |
+
});
|
| 133 |
+
</script>
|
| 134 |
+
</body>
|
| 135 |
</html>
|
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Please create a complete, single-file HTML landing page for an ebook titled "A Beginner's Guide to Google Play Points." The goal of this page is to promote the guide and gate the download behind a mock content locker to simulate a CPA offer.
|
| 2 |
+
The landing page must be a single HTML file with all CSS (using Tailwind via CDN) and JavaScript embedded within it. The design should be clean, modern, fully responsive, and mobile-first, using a friendly color palette and rounded corners.
|
| 3 |
+
Landing Page Content and Structure:
|
| 4 |
+
Header Section:
|
| 5 |
+
Headline: A compelling, benefit-driven headline like "Unlock Free Rewards on Google Play! Get Your Free Guide."
|
| 6 |
+
Sub-headline: A brief, clear description of the ebook: "Your complete guide to earning, leveling up, and maximizing your Google Play Points."
|
| 7 |
+
Hero Section:
|
| 8 |
+
Ebook Image: Use a placeholder image URL for an ebook cover (e.g., https://placehold.co/300x400/22c55e/ffffff?text=Ebook+Cover) to visually represent the guide.
|
| 9 |
+
Benefit List: A bulleted list highlighting the key benefits of the ebook, such as:
|
| 10 |
+
"Step-by-step guide to joining the program."
|
| 11 |
+
"Hidden ways to earn points for free."
|
| 12 |
+
"How to level up to Gold and Platinum tiers fast."
|
| 13 |
+
"Maximize the value of your points with smart redemptions."
|
| 14 |
+
Call to Action (CTA) Section:
|
| 15 |
+
A prominent, visually distinct button labeled "Download Your Free Guide."
|
| 16 |
+
This button should be "locked" initially. When a user clicks it, do not download the file immediately.
|
| 17 |
+
Content Locker Functionality (JavaScript):
|
| 18 |
+
When the "Download Your Free Guide" button is clicked, a modal or pop-up should appear on top of the landing page.
|
| 19 |
+
This modal should have a title like "Complete a Quick Offer to Unlock."
|
| 20 |
+
Inside the modal, provide a short text explanation: "To get your free guide, please complete one of the sponsored offers below. This helps us continue to provide valuable content for free."
|
| 21 |
+
Create a placeholder for a list of "offers." You can use mock buttons or text links for this, for example:
|
| 22 |
+
[Mock Offer 1: Install a Free App]
|
| 23 |
+
[Mock Offer 2: Take a Short Survey]
|
| 24 |
+
Add a final button labeled "I Have Completed an Offer."
|
| 25 |
+
When the "I Have Completed an Offer" button is clicked, the modal should close.
|
| 26 |
+
The original "Download Your Free Guide" button should then change its behavior. When clicked again, it should now direct the user to a mock download URL (e.g., https://example.com/ebook_download.pdf). For the purpose of this mock-up, a simple alert() or console message confirming the "download" is also acceptable if a direct link is not feasible.
|
| 27 |
+
Technical and Design Requirements:
|
| 28 |
+
Use a modern, clean font like "Inter."
|
| 29 |
+
Ensure all elements have soft, rounded corners using Tailwind classes (e.g., rounded-lg).
|
| 30 |
+
The layout should be centered on the page and adapt gracefully to different screen sizes.
|
| 31 |
+
Add comments in the HTML to explain the different sections and in the JavaScript to explain the logic of the content locker.
|