Spaces:
Running
Running
Download index.html from dreepj/monetization-toolkit: direct link, hf CLI and curl.
- Browser
- Download file 39.9 kB
-
https://huggingface.co/spaces/dreepj/monetization-toolkit/resolve/main/index.html
- Command line
-
hf download hf://spaces/dreepj/monetization-toolkit/index.html
-
curl -L -o index.html https://huggingface.co/spaces/dreepj/monetization-toolkit/resolve/main/index.html
39.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Localized Monetization Toolkit</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Navigation --> | |
| <nav class="bg-white shadow-lg border-b-2 border-pink-500"> | |
| <div class="max-w-7xl mx-auto px-4"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0"> | |
| <h1 class="text-xl font-bold text-gray-800">Monetization Toolkit</h1> | |
| </div> | |
| <div class="hidden md:ml-6 md:flex md:space-x-8"> | |
| <a href="#dashboard" class="nav-btn text-gray-700 hover:text-pink-600 px-3 py-2 rounded-md text-sm font-medium"> | |
| Dashboard | |
| </a> | |
| <a href="#ab-testing" class="nav-btn text-gray-700 hover:text-pink-600 px-3 py-2 rounded-md text-sm font-medium"> | |
| A/B Testing | |
| </a> | |
| <a href="#rewarded-ads" class="nav-btn text-gray-700 hover:text-pink-600 px-3 py-2 rounded-md text-sm font-medium"> | |
| Rewarded Ads | |
| </a> | |
| <a href="#microtransactions" class="nav-btn text-gray-700 hover:text-pink-600 px-3 py-2 rounded-md text-sm font-medium"> | |
| Microtransactions | |
| </a> | |
| <a href="#localization" class="nav-btn text-gray-700 hover:text-pink-600 px-3 py-2 rounded-md text-sm font-medium"> | |
| Localization | |
| </a> | |
| <a href="#analytics" class="nav-btn text-gray-700 hover:text-pink-600 px-3 py-2 rounded-md text-sm font-medium"> | |
| Analytics | |
| </a> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <select id="region-select" class="border border-gray-300 rounded-md px-3 py-1 text-sm"> | |
| <option value="global">Global</option> | |
| <option value="us">US</option> | |
| <option value="eu">EU</option> | |
| <option value="asia">Asia</option> | |
| <option value="latam">LATAM</option> | |
| </select> | |
| <button class="bg-teal-500 hover:bg-teal-600 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors"> | |
| Settings | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Main Content --> | |
| <main class="max-w-7xl mx-auto py-6 px-4"> | |
| <!-- Dashboard Section --> | |
| <section id="dashboard" class="content-section"> | |
| <div class="mb-8"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-2">Monetization Dashboard</h2> | |
| <p class="text-gray-600">Real-time overview of your monetization performance</p> | |
| </div> | |
| <!-- KPI Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="bg-white rounded-lg shadow p-6 border-l-4 border-pink-500"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-600">Daily Revenue</p> | |
| <p class="text-2xl font-bold text-gray-900" id="daily-revenue">$2,847</p> | |
| </div> | |
| <div class="p-3 bg-pink-100 rounded-full"> | |
| <i data-feather="dollar-sign" class="h-6 w-6 text-pink-600"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex items-center text-sm"> | |
| <span class="text-green-600 font-medium">+12.5%</span> | |
| <span class="text-gray-600 ml-1">vs yesterday</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6 border-l-4 border-teal-500"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-600">Active Users</p> | |
| <p class="text-2xl font-bold text-gray-900" id="active-users">15,234</p> | |
| </div> | |
| <div class="p-3 bg-teal-100 rounded-full"> | |
| <i data-feather="users" class="h-6 w-6 text-teal-600"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex items-center text-sm"> | |
| <span class="text-green-600 font-medium">+8.2%</span> | |
| <span class="text-gray-600 ml-1">vs yesterday</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6 border-l-4 border-pink-500"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-600">Conversion Rate</p> | |
| <p class="text-2xl font-bold text-gray-900" id="conversion-rate">3.24%</p> | |
| </div> | |
| <div class="p-3 bg-pink-100 rounded-full"> | |
| <i data-feather="trending-up" class="h-6 w-6 text-pink-600"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex items-center text-sm"> | |
| <span class="text-green-600 font-medium">+0.3%</span> | |
| <span class="text-gray-600 ml-1">vs yesterday</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6 border-l-4 border-teal-500"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-600">ARPU</p> | |
| <p class="text-2xl font-bold text-gray-900" id="arpu">$0.187</p> | |
| </div> | |
| <div class="p-3 bg-teal-100 rounded-full"> | |
| <i data-feather="target" class="h-6 w-6 text-teal-600"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex items-center text-sm"> | |
| <span class="text-green-600 font-medium">+5.1%</span> | |
| <span class="text-gray-600 ml-1">vs yesterday</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-4">Revenue Trends</h3> | |
| <canvas id="revenue-chart"></canvas> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-4">User Acquisition</h3> | |
| <canvas id="user-chart"></canvas> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- A/B Testing Section --> | |
| <section id="ab-testing" class="content-section hidden"> | |
| <div class="mb-8"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-2">A/B Testing Manager</h2> | |
| <p class="text-gray-600">Optimize monetization through controlled experiments</p> | |
| </div> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> | |
| <!-- Active Tests --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Active Tests</h3> | |
| </div> | |
| <div class="p-6"> | |
| <div class="space-y-4"> | |
| <div class="border rounded-lg p-4"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h4 class="font-medium text-gray-900">Ad Placement Optimization</h4> | |
| <span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">Running</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mb-3">Testing top vs. bottom ad placement for rewarded videos</p> | |
| <div class="grid grid-cols-2 gap-4 text-sm"> | |
| <div> | |
| <span class="text-gray-600">Control (A):</span> | |
| <span class="font-medium">$1.23 ARPU</span> | |
| </div> | |
| <div> | |
| <span class="text-gray-600">Variant (B):</span> | |
| <span class="font-medium">$1.47 ARPU</span> | |
| <span class="text-green-600 text-xs">+19.5%</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border rounded-lg p-4"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h4 class="font-medium text-gray-900">Pricing Strategy</h4> | |
| <span class="px-2 py-1 bg-yellow-100 text-yellow-800 text-xs rounded-full">Testing</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mb-3">Regional pricing optimization for Asia market</p> | |
| <div class="grid grid-cols-2 gap-4 text-sm"> | |
| <div> | |
| <span class="text-gray-600">Original:</span> | |
| <span class="font-medium">2.8% conversion</span> | |
| </div> | |
| <div> | |
| <span class="text-gray-600">Regional:</span> | |
| <span class="font-medium">3.1% conversion</span> | |
| <span class="text-green-600 text-xs">+10.7%</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Create New Test --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Create New Test</h3> | |
| </div> | |
| <div class="p-6"> | |
| <form id="ab-test-form" class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Test Name</label> | |
| <input type="text" class="w-full border border-gray-300 rounded-md px-3 py-2" placeholder="Enter test name"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Test Type</label> | |
| <select class="w-full border border-gray-300 rounded-md px-3 py-2"> | |
| <option>Ad Placement</option> | |
| <option>Pricing</option> | |
| <option>Reward Amount</option> | |
| <option>Ad Frequency</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Target Region</label> | |
| <select class="w-full border border-gray-300 rounded-md px-3 py-2"> | |
| <option>Global</option> | |
| <option>US</option> | |
| <option>EU</option> | |
| <option>Asia</option> | |
| <option>LATAM</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Hypothesis</label> | |
| <textarea class="w-full border border-gray-300 rounded-md px-3 py-2" rows="3" placeholder="What do you expect to learn?"></textarea> | |
| </div> | |
| <button type="submit" class="w-full bg-pink-500 hover:bg-pink-600 text-white py-2 px-4 rounded-md font-medium transition-colors"> | |
| Launch Test | |
| </button> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Rewarded Ads Section --> | |
| <section id="rewarded-ads" class="content-section hidden"> | |
| <div class="mb-8"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-2">Rewarded Ads Manager</h2> | |
| <p class="text-gray-600">Non-intrusive monetization through user value exchange</p> | |
| </div> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8"> | |
| <!-- Ad Performance --> | |
| <div class="lg:col-span-2 bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Ad Performance</h3> | |
| </div> | |
| <div class="p-6"> | |
| <canvas id="ads-performance-chart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Ad Settings --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Ad Settings</h3> | |
| </div> | |
| <div class="p-6 space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Frequency Cap</label> | |
| <select class="w-full border border-gray-300 rounded-md px-3 py-2"> | |
| <option>1 ad per 5 minutes</option> | |
| <option>1 ad per 10 minutes</option> | |
| <option>1 ad per 15 minutes</option> | |
| <option>No limit</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Placement</label> | |
| <div class="space-y-2"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded border-gray-300 text-pink-600" checked> | |
| <span class="ml-2 text-sm text-gray-700">Between levels</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded border-gray-300 text-pink-600" checked> | |
| <span class="ml-2 text-sm text-gray-700">Pause menu</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded border-gray-300 text-pink-600"> | |
| <span class="ml-2 text-sm text-gray-700">Game over screen</span> | |
| </label> | |
| </div> | |
| </div> | |
| <button class="w-full bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-md font-medium transition-colors"> | |
| Save Settings | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Reward Catalog --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Reward Catalog</h3> | |
| </div> | |
| <div class="p-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> | |
| <div class="border rounded-lg p-4"> | |
| <div class="flex items-center justify-between mb-2"> | |
| <h4 class="font-medium text-gray-900">Extra Lives</h4> | |
| <span class="text-sm text-gray-600">30 sec</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mb-3">Watch 1 ad to continue playing</p> | |
| <div class="flex justify-between text-sm"> | |
| <span class="text-gray-600">Completion: 89%</span> | |
| <span class="text-green-600 font-medium">+15% retention</span> | |
| </div> | |
| </div> | |
| <div class="border rounded-lg p-4"> | |
| <div class="flex items-center justify-between mb-2"> | |
| <h4 class="font-medium text-gray-900">Double Coins</h4> | |
| <span class="text-sm text-gray-600">15 min</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mb-3">Watch 1 ad for 2x coin earning</p> | |
| <div class="flex justify-between text-sm"> | |
| <span class="text-gray-600">Completion: 76%</span> | |
| <span class="text-green-600 font-medium">+23% engagement</span> | |
| </div> | |
| </div> | |
| <div class="border rounded-lg p-4"> | |
| <div class="flex items-center justify-between mb-2"> | |
| <h4 class="font-medium text-gray-900">Premium Skin</h4> | |
| <span class="text-sm text-gray-600">1 day</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mb-3">Watch 3 ads for temporary premium access</p> | |
| <div class="flex justify-between text-sm"> | |
| <span class="text-gray-600">Completion: 45%</span> | |
| <span class="text-green-600 font-medium">+8% conversion</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Microtransactions Section --> | |
| <section id="microtransactions" class="content-section hidden"> | |
| <div class="mb-8"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-2">Microtransactions</h2> | |
| <p class="text-gray-600">Region-compliant, user-friendly purchasing options</p> | |
| </div> | |
| <!-- Currency Management --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Virtual Currency</h3> | |
| </div> | |
| <div class="p-6"> | |
| <div class="space-y-4"> | |
| <div class="flex justify-between items-center p-4 border rounded-lg"> | |
| <div> | |
| <h4 class="font-medium text-gray-900">Coins Pack</h4> | |
| <p class="text-sm text-gray-600">Starter pack - 500 coins</p> | |
| </div> | |
| <div class="text-right"> | |
| <p class="font-bold text-gray-900">$0.99</p> | |
| <p class="text-sm text-gray-600">Best seller</p> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center p-4 border rounded-lg border-pink-200 bg-pink-50"> | |
| <div> | |
| <h4 class="font-medium text-gray-900">Value Pack - 2,500 coins</h4> | |
| <p class="text-sm text-gray-600">Most popular - 25% bonus</p> | |
| </div> | |
| <div class="text-right"> | |
| <p class="font-bold text-gray-900">$4.99</p> | |
| <p class="text-sm text-green-600">+25% bonus</p> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center p-4 border rounded-lg"> | |
| <div> | |
| <h4 class="font-medium text-gray-900">Mega Pack - 6,000 coins</h4> | |
| <p class="text-sm text-gray-600">Best value - 50% bonus</p> | |
| </div> | |
| <div class="text-right"> | |
| <p class="font-bold text-gray-900">$9.99</p> | |
| <p class="text-sm text-green-600">+50% bonus</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Purchase Analytics --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Purchase Analytics</h3> | |
| </div> | |
| <div class="p-6"> | |
| <canvas id="purchase-chart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Regional Pricing --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Regional Pricing</h3> | |
| </div> | |
| <div class="p-6"> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Region</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Base Price</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Adjusted Price</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Compliance</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Conversion</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">United States</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$4.99</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$4.99</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Compliant</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">4.2%</td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Europe (EU)</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">€4.99</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">€4.49</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Compliant</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">3.8%</td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Asia</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$4.99</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$2.99</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Compliant</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">5.7%</td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Latin America</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$4.99</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$1.99</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Compliant</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">6.3%</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Localization Section --> | |
| <section id="localization" class="content-section hidden"> | |
| <div class="mb-8"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-2">Localization Settings</h2> | |
| <p class="text-gray-600">Culturally appropriate monetization across regions</p> | |
| </div> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6"> | |
| <!-- Language & Cultural Settings --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Regional Preferences</h3> | |
| </div> | |
| <div class="p-6 space-y-4"> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Region</label> | |
| <select class="w-full border border-gray-300 rounded-md px-3 py-2"> | |
| <option>United States</option> | |
| <option>United Kingdom</option> | |
| <option>Germany</option> | |
| <option>France</option> | |
| <option>Japan</option> | |
| <option>South Korea</option> | |
| <option>Brazil</option> | |
| <option>Mexico</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Currency</label> | |
| <select class="w-full border border-gray-300 rounded-md px-3 py-2"> | |
| <option>USD ($)</option> | |
| <option>EUR (€)</option> | |
| <option>GBP (£)</option> | |
| <option>JPY (¥)</option> | |
| <option>KRW (₩)</option> | |
| <option>BRL (R$)</option> | |
| <option>MXN ($)</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Cultural Considerations</label> | |
| <div class="space-y-2"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded border-gray-300 text-pink-600" checked> | |
| <span class="ml-2 text-sm text-gray-700">Avoid gambling imagery</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded border-gray-300 text-pink-600" checked> | |
| <span class="ml-2 text-sm text-gray-700">Respect local holidays</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded border-gray-300 text-pink-600"> | |
| <span class="ml-2 text-sm text-gray-700">Use local payment methods</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded border-gray-300 text-pink-600" checked> | |
| <span class="ml-2 text-sm text-gray-700">GDPR compliant</span> | |
| </label> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Content Localization --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Content Localization</h3> | |
| </div> | |
| <div class="p-6 space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Ad Copy</label> | |
| <textarea class="w-full border border-gray-300 rounded-md px-3 py-2" rows="3" placeholder="Watch an ad to continue playing"></textarea> | |
| <p class="text-xs text-gray-500 mt-1">Localized for each region</p> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Purchase Confirmation</label> | |
| <textarea class="w-full border border-gray-300 rounded-md px-3 py-2" rows="2" placeholder="Confirm your purchase"></textarea> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Error Messages</label> | |
| <div class="space-y-2"> | |
| <input type="text" class="w-full border border-gray-300 rounded-md px-3 py-2" placeholder="Payment failed message"> | |
| <input type="text" class="w-full border border-gray-300 rounded-md px-3 py-2" placeholder="Ad loading error message"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Analytics Section --> | |
| <section id="analytics" class="content-section hidden"> | |
| <div class="mb-8"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-2">Analytics Dashboard</h2> | |
| <p class="text-gray-600">Comprehensive insights into monetization performance</p> | |
| </div> | |
| <!-- Time Range Selector --> | |
| <div class="mb-6"> | |
| <div class="flex space-x-2"> | |
| <button onclick="updateTimeRange('7d')" class="time-range-btn bg-pink-500 text-white px-4 py-2 rounded-md text-sm">7 Days</button> | |
| <button onclick="updateTimeRange('30d')" class="time-range-btn bg-gray-200 text-gray-700 px-4 py-2 rounded-md text-sm">30 Days</button> | |
| <button onclick="updateTimeRange('90d')" class="time-range-btn bg-gray-200 text-gray-700 px-4 py-2 rounded-md text-sm">90 Days</button> | |
| </div> | |
| </div> | |
| <!-- Analytics Charts --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-4">Revenue by Source</h3> | |
| <canvas id="revenue-source-chart"></canvas> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-4">User Retention</h3> | |
| <canvas id="retention-chart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Detailed Metrics --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-900">Detailed Metrics</h3> | |
| </div> | |
| <div class="p-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <div class="text-center"> | |
| <div class="text-3xl font-bold text-pink-600 mb-2">2.8M</div> | |
| <div class="text-sm text-gray-600">Total Ad Views</div> | |
| <div class="text-xs text-green-600 mt-1">+15% vs last period</div> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-3xl font-bold text-teal-600 mb-2">$0.42</div> | |
| <div class="text-sm text-gray-600">Average Ad Revenue</div> | |
| <div class="text-xs text-green-600 mt-1">+8% vs last period</div> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-3xl font-bold text-pink-600 mb-2">87%</div> | |
| <div class="text-sm text-gray-600">User Satisfaction</div> | |
| <div class="text-xs text-green-600 mt-1">+3% vs last period</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- Ad Modal --> | |
| <div id="ad-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"> | |
| <div class="bg-white rounded-lg p-8 max-w-md w-full mx-4"> | |
| <div class="text-center"> | |
| <div class="mb-4"> | |
| <i data-feather="play-circle" class="h-16 w-16 text-pink-500 mx-auto"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-2">Watch Ad to Continue</h3> | |
| <p class="text-gray-600 mb-6">Get 3 extra lives by watching a 30-second ad</p> | |
| <div class="space-y-3"> | |
| <button id="watch-ad-btn" class="w-full bg-pink-500 hover:bg-pink-600 text-white py-3 px-4 rounded-md font-medium transition-colors"> | |
| Watch Ad | |
| </button> | |
| <button onclick="closeAdModal()" class="w-full bg-gray-200 hover:bg-gray-300 text-gray-700 py-2 px-4 rounded-md font-medium transition-colors"> | |
| Skip | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Purchase Modal --> | |
| <div id="purchase-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"> | |
| <div class="bg-white rounded-lg p-8 max-w-md w-full mx-4"> | |
| <div class="text-center"> | |
| <div class="mb-4"> | |
| <i data-feather="shopping-cart" class="h-16 w-16 text-teal-500 mx-auto"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-2">Complete Purchase</h3> | |
| <p class="text-gray-600 mb-4">Value Pack - 2,500 Coins</p> | |
| <div class="bg-pink-50 border border-pink-200 rounded-lg p-4 mb-6"> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-gray-700">Original Price:</span> | |
| <span class="text-gray-500 line-through">$6.99</span> | |
| </div> | |
| <div class="flex justify-between items-center font-bold"> | |
| <span class="text-gray-900">Sale Price:</span> | |
| <span class="text-pink-600">$4.99</span> | |
| </div> | |
| <div class="text-sm text-green-600 mt-1">You save $2.00 (29% off)</div> | |
| </div> | |
| <div class="space-y-3"> | |
| <button id="complete-purchase-btn" class="w-full bg-teal-500 hover:bg-teal-600 text-white py-3 px-4 rounded-md font-medium transition-colors"> | |
| Complete Purchase | |
| </button> | |
| <button onclick="closePurchaseModal()" class="w-full bg-gray-200 hover:bg-gray-300 text-gray-700 py-2 px-4 rounded-md font-medium transition-colors"> | |
| Cancel | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script src="script.js"></script> | |
| <script>feather.replace();</script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |