Initial PoC commit

This commit is contained in:
Fenix
2026-01-28 20:39:59 -08:00
commit 94811ca7c1
18 changed files with 1831 additions and 0 deletions

102
credits.html Normal file
View File

@@ -0,0 +1,102 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Credits &amp; Rewards Pen2Post</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="journal.css">
</head>
<body>
<div class="notes-container">
<div class="top-buttons">
<button class="floating-button" onclick="goBackToApp()" aria-label="Back to app">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path fill="currentColor" d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</svg>
</button>
</div>
<main class="page-main">
<h1>Credits &amp; Rewards</h1>
<p class="text-muted">
One credit equals one page processed. Use this screen to see your balance, daily gifts, and ways to earn or buy more.
</p>
<section>
<h2>Your credits</h2>
<div class="card">
<p>
<strong>Current balance:</strong>
<span id="credit-balance"></span> credits
</p>
<p>
<strong>Daily gift:</strong>
<span id="daily-gift-status">Available once per day.</span>
</p>
<p>
<strong>Streak bonus:</strong>
<span id="streak-status">Keep a 5day streak to earn bonus credits.</span>
</p>
</div>
</section>
<section>
<h2>Get more credits</h2>
<div class="card card-info">
<h3>Earn free credits</h3>
<p>
Watch a short rewarded ad to earn a small number of extra credits each day.
</p>
<button type="button" class="btn-primary" onclick="onWatchAd()">
Watch ad to earn credits
</button>
<p class="text-muted">
Limited number of rewarded ads per day. Availability may vary by region and network.
</p>
</div>
<div class="card card-warn">
<h3>Buy credits</h3>
<p>
When you need more pages for older notebooks or big projects you can buy a onetime credit pack.
No subscriptions or automatic renewals.
</p>
<div class="credits-pack-list">
<button type="button" class="btn-outline" onclick="onBuyPack('note-taker')">
<strong>Note Taker</strong> 25 credits
</button>
<button type="button" class="btn-outline" onclick="onBuyPack('writer')">
<strong>Writer</strong> 150 credits
</button>
<button type="button" class="btn-outline" onclick="onBuyPack('archivist')">
<strong>Archivist</strong> 500 credits
</button>
</div>
<p class="text-muted">
All purchases are handled securely by the app store on your device.
Prices are shown there in your local currency.
</p>
</div>
</section>
<section>
<h2>How credits and rewards work</h2>
<ul class="section-list">
<li>Every processed page uses one credit.</li>
<li>You get a small daily gift so you can keep a regular journaling habit.</li>
<li>Using the app several days in a row can unlock streak bonuses.</li>
<li>You can mix free credits, adearned credits, and paid bundles.</li>
</ul>
</section>
</main>
</div>
<script src="journal.js"></script>
</body>
</html>