ebook / index.html
Saad4web's picture
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.
e716234 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unlock Free Rewards on Google Play - Get Your Free Guide</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
}
</style>
</head>
<body class="bg-gradient-to-br from-blue-50 to-green-50 min-h-screen">
<!-- Header Section -->
<header class="container mx-auto px-4 py-8 text-center">
<h1 class="text-3xl md:text-4xl font-bold text-blue-800 mb-4">Unlock Free Rewards on Google Play!</h1>
<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>
</header>
<!-- Hero Section -->
<main class="container mx-auto px-4 py-8">
<div class="flex flex-col md:flex-row items-center justify-center gap-8">
<!-- Ebook Image -->
<div class="w-full md:w-1/3 flex justify-center">
<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">
</div>
<!-- Benefits List -->
<div class="w-full md:w-1/2">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">What You'll Learn:</h2>
<ul class="space-y-4">
<li class="flex items-start">
<i data-feather="check-circle" class="text-green-500 mr-3 mt-1"></i>
<span class="text-gray-700">Step-by-step guide to joining the program</span>
</li>
<li class="flex items-start">
<i data-feather="check-circle" class="text-green-500 mr-3 mt-1"></i>
<span class="text-gray-700">Hidden ways to earn points for free</span>
</li>
<li class="flex items-start">
<i data-feather="check-circle" class="text-green-500 mr-3 mt-1"></i>
<span class="text-gray-700">How to level up to Gold and Platinum tiers fast</span>
</li>
<li class="flex items-start">
<i data-feather="check-circle" class="text-green-500 mr-3 mt-1"></i>
<span class="text-gray-700">Maximize the value of your points with smart redemptions</span>
</li>
</ul>
<!-- CTA Button -->
<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">
Download Your Free Guide
</button>
</div>
</div>
</main>
<!-- Content Locker Modal -->
<div id="lockerModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
<div class="bg-white rounded-2xl p-6 m-4 max-w-md w-full shadow-2xl">
<h3 class="text-2xl font-bold text-gray-800 mb-4">Complete a Quick Offer to Unlock</h3>
<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>
<div class="space-y-4 mb-6">
<div class="border border-gray-200 rounded-xl p-4 hover:bg-gray-50 cursor-pointer transition-colors">
<h4 class="font-semibold text-gray-800">Install a Free App</h4>
<p class="text-sm text-gray-600">Quick and easy - takes less than 2 minutes</p>
</div>
<div class="border border-gray-200 rounded-xl p-4 hover:bg-gray-50 cursor-pointer transition-colors">
<h4 class="font-semibold text-gray-800">Take a Short Survey</h4>
<p class="text-sm text-gray-600">Share your opinion and help brands improve</p>
</div>
</div>
<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">
I Have Completed an Offer
</button>
</div>
</div>
<script>
// Initialize feather icons
feather.replace();
// Content locker functionality
let isUnlocked = false;
const downloadBtn = document.getElementById('downloadBtn');
const lockerModal = document.getElementById('lockerModal');
const completeOfferBtn = document.getElementById('completeOfferBtn');
// Handle download button click
downloadBtn.addEventListener('click', function() {
if (!isUnlocked) {
// Show the content locker modal
lockerModal.classList.remove('hidden');
} else {
// Download the guide (mock implementation)
window.location.href = 'https://example.com/ebook_download.pdf';
// Alternative mock implementation:
// alert('Your download is starting!');
}
});
// Handle offer completion
completeOfferBtn.addEventListener('click', function() {
// Hide the modal
lockerModal.classList.add('hidden');
// Unlock the download
isUnlocked = true;
// Update button text and style
downloadBtn.textContent = 'Download Now';
downloadBtn.classList.remove('bg-green-500', 'hover:bg-green-600');
downloadBtn.classList.add('bg-blue-500', 'hover:bg-blue-600');
// Show success message (optional)
alert('Thank you! Your guide is now unlocked.');
});
// Close modal when clicking outside
lockerModal.addEventListener('click', function(e) {
if (e.target === lockerModal) {
lockerModal.classList.add('hidden');
}
});
</script>
</body>
</html>