Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (59 loc) · 3.34 KB
/
Copy pathindex.html
File metadata and controls
65 lines (59 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#fff8f5">
<title>PawColor — Personalized Cat Coloring Book</title>
<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=Fredoka:wght@400;500;600&family=Outfit:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="https://telegram.org/js/telegram-web-app.js"></script>
</head>
<body>
<main class="app-shell">
<section id="formView">
<header class="hero">
<div class="brand-mark" aria-hidden="true">🐾</div>
<p class="eyebrow">PAWCOLOR</p>
<h1>Turn Your Cat into a Coloring Masterpiece 🎨</h1>
<p class="subtitle">Upload 3 photos and we'll turn your favorite cat into a magical personalized coloring book.</p>
</header>
<form id="bookForm" novalidate>
<section class="card">
<label class="field-label" for="catName">What's your cat's name?</label>
<input id="catName" name="cat_name" type="text" maxlength="40" autocomplete="off" placeholder="e.g. Luna" required>
</section>
<section class="card">
<div class="upload-heading">
<div>
<label class="field-label" for="photos">Add 3 photos of your cat</label>
<p class="field-help">Choose clear photos showing your cat's face and body.</p>
</div>
<span id="photoCount" class="count-badge">0 / 3</span>
</div>
<label id="uploadZone" class="upload-zone" for="photos">
<span class="upload-icon" aria-hidden="true">📸</span>
<span class="upload-title">Tap to choose your photos</span>
<span class="upload-hint">Exactly 3 images • JPG, PNG or WEBP</span>
</label>
<input id="photos" type="file" accept="image/jpeg,image/png,image/webp" multiple required>
<div id="previewGrid" class="preview-grid" aria-live="polite"></div>
<p id="errorMessage" class="error-message" role="alert"></p>
</section>
<button id="submitBtn" class="primary-button" type="submit">
<span>Create My Coloring Book</span><span aria-hidden="true">✨</span>
</button>
<p class="privacy-note">Your photos are sent securely to the PawColor automation to create your personalized book.</p>
</form>
</section>
<section id="loaderView" class="loader-screen hidden" aria-live="polite">
<div class="magic-orbit" aria-hidden="true">🐱</div>
<h2>The magic is happening…</h2>
<p>We're creating your personalized coloring book. You can close this Mini App — your finished book will arrive here in Telegram in a few minutes.</p>
</section>
</main>
<script src="script.js"></script>
</body>
</html>