-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
376 lines (343 loc) · 12.4 KB
/
Copy pathindex.html
File metadata and controls
376 lines (343 loc) · 12.4 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Pinard app</title>
<link rel="stylesheet" href="styles.css" />
<style>
.store-link {
margin: 26px auto 0;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 0;
}
.store-badge {
height: 54px;
width: auto;
display: block;
}
.carousel-wrap {
margin-top: 28px;
display: flex;
justify-content: center;
}
.manifesto-title {
margin: 0 0 10px;
font-size: clamp(1.35rem, 3.2vw, 1.7rem);
font-weight: 400;
}
h3.manifesto-title {
font-size: clamp(1.08rem, 2.4vw, 1.3rem);
}
.manifesto-text {
margin: 0 0 14px;
color: var(--muted);
font-size: clamp(1rem, 2.6vw, 1.1rem);
line-height: 1.55;
}
.manifesto-list {
margin: 0 0 14px 1.2em;
padding: 0;
color: var(--muted);
font-size: clamp(1rem, 2.6vw, 1.1rem);
line-height: 1.55;
}
.manifesto-list li {
margin-bottom: 8px;
}
.review-bubble {
position: relative;
width: min(560px, 100%);
min-height: 136px;
border-radius: 28px;
background: var(--bubble);
box-shadow: 0 14px 26px -14px var(--bubble-shadow);
padding: 18px 22px 26px;
text-align: left;
transition:
opacity 260ms ease,
transform 260ms ease;
}
.review-bubble::after {
content: "";
position: absolute;
left: 46px;
bottom: -18px;
width: 22px;
height: 18px;
background: var(--bubble);
clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.review-bubble.entering {
opacity: 0;
transform: translateY(10px);
}
.review-header {
display: block;
margin-bottom: 10px;
}
.stars {
position: relative;
display: inline-block;
font-size: 1.05rem;
line-height: 1;
}
.stars-base {
color: #d5dde8;
letter-spacing: 0.14em;
}
.stars-fill {
position: absolute;
left: 0;
top: 0;
color: var(--gold);
white-space: nowrap;
overflow: hidden;
letter-spacing: 0.14em;
}
.review-quote {
margin: 0;
font-size: clamp(1rem, 2.8vw, 1.2rem);
line-height: 1.28;
text-wrap: balance;
color: var(--review-text);
}
.review-quote-text {
font-style: italic;
}
.review-line {
margin-top: 16px;
width: min(58%, 380px);
height: 6px;
border-radius: 999px;
background: linear-gradient(90deg, #d8dfe9 0%, #eef2f8 100%);
}
@media (max-width: 640px) {
.review-bubble {
padding: 16px 16px 22px;
border-radius: 22px;
min-height: 136px;
}
.review-bubble::after {
left: 28px;
bottom: -15px;
width: 19px;
height: 15px;
}
.review-header {
margin-bottom: 9px;
}
.store-badge {
height: 46px;
}
}
</style>
</head>
<body>
<main>
<picture>
<source
srcset="icon-dark.png"
media="(prefers-color-scheme: dark)"
/>
<img
class="app-icon"
src="icon-default.png"
alt="Pinard app icon"
/>
</picture>
<h1>Pinard</h1>
<p class="tagline">
A reliable wine cellar planner that helps you decide what bottle
to drink, where to store it, and what to buy next.
</p>
<a
class="store-link"
href="https://apps.apple.com/app/id6748577579"
target="_blank"
rel="noopener noreferrer"
aria-label="Download Pinard on the App Store"
>
<picture>
<source
srcset="
https://toolbox.marketingtools.apple.com/api/v2/badges/download-on-the-app-store/white/en-us
"
media="(prefers-color-scheme: dark)"
/>
<img
class="store-badge"
src="https://toolbox.marketingtools.apple.com/api/v2/badges/download-on-the-app-store/black/en-us"
alt="Download on the App Store"
/>
</picture>
</a>
<section class="manifesto content-column" aria-label="Manifesto">
<h2 class="manifesto-title">Peak drinking window</h2>
<p class="manifesto-text">
Pinard helps you track the peak drinking window of your
wines so you can drink them at their best.
</p>
<h2 class="manifesto-title">Notebook</h2>
<p class="manifesto-text">
Each wine in your collection has its notebook in Pinard to
store information and tasting notes. Tags and URLs are
automatically surfaced for quick access.
</p>
<h2 class="manifesto-title">Location</h2>
<p class="manifesto-text">
Pinard supports multiple cellars and a straightforward
location helper to help you quickly locate your wine
bottles.
</p>
</section>
<section class="carousel-wrap" aria-live="polite">
<article class="review-bubble entering" id="review-bubble">
<header class="review-header">
<div class="stars" aria-hidden="true">
<span class="stars-base">★★★★★</span>
<span class="stars-fill" id="stars-fill"
>★★★★★</span
>
</div>
</header>
<p class="review-quote">
<span
class="review-quote-text"
id="review-quote"
></span>
</p>
</article>
</section>
<footer class="site-footer">
<a href="privacy-policy.html">Privacy Policy</a>
<br />
The font used on this website comes from
<a
href="https://ia.net/topics/a-typographic-christmas"
target="_blank"
rel="noopener noreferrer"
>iA Writer</a
>.
<br />
🏌
</footer>
</main>
<script>
const reviews = [
{
rating: 5,
quote: "Ros\u00E9 is not real wine and Pinard makes a courageous stand.",
},
{ rating: 5, quote: "The missing iOS stock app." },
{ rating: 1, quote: "Looks like nothing" },
{
rating: 5,
quote: "Compared to my banking app, this is fun.",
},
{ rating: 1, quote: "Does almost nothing." },
{
rating: 1,
quote: "I feel like the app is passive aggressive toward me.",
},
{ rating: 5, quote: "This is absolutely genius!" },
{
rating: 5,
quote: "Makes wine cellar management great again.",
},
{ rating: 1, quote: "French and pretentious." },
{ rating: 4, quote: "Does what it says. Rude about it." },
{ rating: 5, quote: "No funny business, solid app." },
{ rating: 1, quote: "I bet this was vibe-coded." },
{
rating: 2.5,
quote: "I\u2019m too.. *hip*... drunk to review this app...",
},
{
rating: 5,
quote: "My accountant loves it, my wife too, everybody.",
},
{
rating: 5,
quote: "Crashes less than my love life.",
},
{
rating: 5,
quote: "Finally an app that judges me silently.",
},
{
rating: 5,
quote: "UI is cute. So am I.",
},
{
rating: 5,
quote: "Not a single hamburger menu. Respect.",
},
{
rating: 5,
quote: "Downloaded by accident. Stayed for the chaos.",
},
{
rating: 4,
quote: "Glitches add personality.",
},
{
rating: 5,
quote: "Simple, clean, and mildly disrespectful.",
},
{
rating: 4,
quote: "Beautiful design, questionable morals.",
},
{
rating: 3,
quote: "The icon is the best part.",
},
{
rating: 5,
quote: "This app has never sent me any notifications.",
},
{
rating: 5,
quote: "Never begged me to rate it on the App Store",
},
{
rating: 4,
quote: "Solid app. Would recommend to my enemies.",
},
{
rating: 4,
quote: "My drinking habits have spiralled out of control, thanks.",
},
];
function shuffle(list) {
const result = [...list];
for (let i = result.length - 1; i > 0; i -= 1) {
const j = Math.floor(Math.random() * (i + 1));
[result[i], result[j]] = [result[j], result[i]];
}
return result;
}
const queue = shuffle(reviews);
const bubble = document.getElementById("review-bubble");
const quoteEl = document.getElementById("review-quote");
const starsFill = document.getElementById("stars-fill");
let current = 0;
function showReview(review) {
bubble.classList.add("entering");
window.setTimeout(() => {
quoteEl.textContent = review.quote;
starsFill.style.width = `${(review.rating / 5) * 100}%`;
bubble.classList.remove("entering");
}, 150);
}
showReview(queue[current]);
window.setInterval(() => {
current = (current + 1) % queue.length;
showReview(queue[current]);
}, 5760);
</script>
</body>
</html>