-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
388 lines (359 loc) · 21 KB
/
Copy pathindex.html
File metadata and controls
388 lines (359 loc) · 21 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
377
378
379
380
381
382
383
384
385
386
387
388
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>liquidframe — pure-CSS iPhone + iOS 26 Safari mockup</title>
<meta name="theme-color" content="#0c0d12">
<link rel="icon" type="image/png" sizes="100x100" href="https://cver.net/cver-logo-small.png">
<link rel="icon" type="image/png" sizes="630x630" href="https://cver.net/cver-logo.png">
<link rel="apple-touch-icon" href="https://cver.net/cver-logo.png">
<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=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="liquidframe.css">
<style>
/* ── Example page chrome only — NOT part of liquidframe.css ── */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
background:
radial-gradient(circle at 15% 15%, rgba(120, 119, 198, 0.18), transparent 40%),
radial-gradient(circle at 85% 80%, rgba(255, 122, 89, 0.14), transparent 40%),
#0c0d12;
color: #e9eaf0;
display: flex;
flex-direction: column;
}
/* Demo content area (header/footer sit full-width above & below) */
.lf-main {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
padding: 3rem 1rem 4rem;
}
/* ── CVER OSS common shell — self-contained (no cross-repo import) ── */
.dd-header {
padding: 1.75rem 2.5rem;
display: flex; justify-content: space-between; align-items: center; gap: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(10px);
}
.dd-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.dd-logo h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.dd-badge {
background: linear-gradient(135deg, #6d6dff, #9b9bff);
color: #fff; font-weight: 700; padding: 0.25rem 0.7rem;
border-radius: 9999px; font-size: 0.85rem;
box-shadow: 0 4px 15px rgba(109, 109, 255, 0.35);
}
.dd-ghlink {
color: #e9eaf0; text-decoration: none; font-weight: 500;
display: flex; align-items: center; gap: 0.5rem;
padding: 0.5rem 1rem; border-radius: 8px;
background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
transition: all 0.2s ease;
}
.dd-ghlink:hover { background: rgba(255, 255, 255, 0.1); border-color: #9b9bff; }
.dd-footer {
display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
padding: 3.5rem 1.5rem 3rem; color: rgba(233, 234, 240, 0.6); font-size: 0.875rem;
border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links {
display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
column-gap: 1rem; row-gap: 0.5rem;
}
.footer-links.secondary { font-size: 0.75rem; }
.footer-links a { color: rgba(233, 234, 240, 0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-links.secondary a { color: rgba(233, 234, 240, 0.4); }
.footer-links.secondary a:hover { color: rgba(233, 234, 240, 0.6); }
.footer-separator { color: rgba(233, 234, 240, 0.35); }
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
content: ""; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0;
background-color: currentColor; transition: width 250ms ease;
}
.link-underline:hover::after { width: 100%; }
.footer-logo { display: inline-block; opacity: 0.9; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 1; }
.footer-logo img { width: 44px; height: 44px; }
.page-head { text-align: center; max-width: 560px; }
.page-head h1 { font-size: 2rem; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.page-head h1 span { color: #9b9bff; }
.page-head p { margin: 0; color: rgba(233, 234, 240, 0.6); line-height: 1.5; }
.controls {
display: flex;
flex-wrap: wrap;
gap: 1.25rem;
justify-content: center;
align-items: center;
}
.control-group { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.control-group > label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(233,234,240,0.45); }
.seg {
display: inline-flex;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 3px;
gap: 2px;
}
.seg button {
border: 0;
background: transparent;
color: rgba(233, 234, 240, 0.7);
font: inherit;
font-size: 0.82rem;
font-weight: 600;
padding: 0.4rem 0.8rem;
border-radius: 7px;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.seg button.active { background: #6d6dff; color: #fff; }
.swatches { display: inline-flex; gap: 0.5rem; }
.swatches button {
width: 26px; height: 26px; border-radius: 50%;
border: 2px solid transparent; cursor: pointer; padding: 0;
transition: transform 0.15s, border-color 0.15s;
}
.swatches button.active { border-color: #fff; transform: scale(1.12); }
/* ── Sample content inside the phone screen (your app would go here) ── */
.demo-page {
min-height: 100%;
display: flex;
flex-direction: column;
color: #fff;
font-family: system-ui, -apple-system, sans-serif;
background: linear-gradient(180deg, #6d6dff 0%, #8e5bd8 55%, #b0479a 100%);
}
.demo-hero {
min-height: 100cqh;
padding: 90px 26px 50px;
display: flex; flex-direction: column; align-items: center; justify-content: center;
text-align: center; gap: 0.6rem;
}
.demo-hero .badge {
width: 64px; height: 64px; border-radius: 18px;
background: rgba(255, 255, 255, 0.18);
display: grid; place-items: center; font-size: 2rem; margin-bottom: 0.6rem;
}
.demo-hero h2 { font-size: 1.5rem; margin: 0; letter-spacing: -0.02em; }
.demo-hero p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.5; }
.demo-belt { background: #2c2350; padding: 56px 22px 64px; }
.demo-belt .tag { font-size: 0.62rem; letter-spacing: 0.25em; color: #b9b3ff; margin: 0 0 1.4rem; font-weight: 700; }
.demo-card {
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px; padding: 18px; margin-bottom: 12px;
}
.demo-card h4 { margin: 0 0 6px; font-size: 1.05rem; }
.demo-card p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.72); line-height: 1.5; }
.demo-footer {
background: #1a1430; padding: 48px 22px calc(40px + var(--sim-safe-bottom));
text-align: center; color: rgba(255,255,255,0.65); font-size: 0.8rem;
display: flex; flex-direction: column; gap: 0.5rem;
}
.ghlink { color: #9b9bff; text-decoration: none; font-weight: 600; }
</style>
</head>
<body>
<header class="dd-header">
<a class="dd-logo" href="https://cver.net/oss/liquidframe">
<h1>liquidframe</h1>
<span class="dd-badge">by cver.net</span>
</a>
<a class="dd-ghlink" href="https://github.com/CVERInc/liquidframe" target="_blank" rel="noopener">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
GitHub
</a>
</header>
<main class="lf-main">
<div class="page-head">
<h1><a href="https://cver.net/oss/liquidframe" style="color:inherit;text-decoration:none"><span>liquidframe</span></a></h1>
<p>A pure-CSS iPhone 16 Pro with realistic iOS 26 "Liquid Glass" Safari chrome.
Swap one class to change the chrome mode. Drop your page into the screen.</p>
</div>
<div class="controls">
<div class="control-group">
<label id="mode-label">Chrome mode</label>
<div class="seg" id="mode-seg" role="group" aria-labelledby="mode-label">
<button type="button" data-mode="compact" class="active" aria-pressed="true">Compact</button>
<button type="button" data-mode="bottom" aria-pressed="false">Bottom</button>
<button type="button" data-mode="top" aria-pressed="false">Top</button>
<button type="button" data-mode="pwa" aria-pressed="false">PWA</button>
</div>
</div>
<div class="control-group">
<label id="frame-label">Titanium</label>
<div class="swatches" id="frame-swatches" role="group" aria-labelledby="frame-label">
<button type="button" data-finish="natural" class="active" style="background:#a69f96" title="Natural" aria-label="Natural" aria-pressed="true"></button>
<button type="button" data-finish="desert" style="background:#c2b29f" title="Desert" aria-label="Desert" aria-pressed="false"></button>
<button type="button" data-finish="black" style="background:#3c3d3a" title="Black" aria-label="Black" aria-pressed="false"></button>
<button type="button" data-finish="white" style="background:#e3e4e5" title="White" aria-label="White" aria-pressed="false"></button>
</div>
</div>
</div>
<!-- ════════════════ liquidframe markup ════════════════ -->
<div class="simulator-container">
<div class="phone-frame chrome-compact" id="phone">
<!-- Physical hardware: protruding side buttons -->
<div class="phone-btn phone-btn-action" title="Action Button"></div>
<div class="phone-btn phone-btn-volup" title="Volume Up"></div>
<div class="phone-btn phone-btn-voldown" title="Volume Down"></div>
<div class="phone-btn phone-btn-power" title="Power Button"></div>
<!-- Dynamic Island -->
<div class="phone-notch"></div>
<div class="phone-viewport" style="--screen-bg:#1a1430;">
<!-- Status bar -->
<div class="status-bar-info">
<div><span data-lf-clock>9:41</span></div>
<div style="display:flex; gap:6px; align-items:center;">
<svg width="19" height="13" viewBox="0 0 24 24" fill="currentColor" style="opacity:0.9;">
<rect x="1" y="16" width="3.5" height="5" rx="0.5"/>
<rect x="6.5" y="12" width="3.5" height="9" rx="0.5"/>
<rect x="12" y="7.5" width="3.5" height="13.5" rx="0.5"/>
<rect x="17.5" y="3" width="3.5" height="18" rx="0.5" opacity="0.3"/>
</svg>
<svg width="18" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="opacity:0.9;">
<path d="M12 20h.01"/><path d="M8.5 16.5a5 5 0 0 1 7 0"/><path d="M5 13a10 10 0 0 1 14 0"/><path d="M1.5 9.5a15 15 0 0 1 21 0"/>
</svg>
<svg width="25" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-left:2px; opacity:0.9;">
<rect x="1" y="5" width="18" height="14" rx="3" ry="3"/>
<line x1="22" y1="10" x2="22" y2="14"/>
<rect x="3" y="7" width="12" height="10" rx="1.5" ry="1.5" fill="currentColor"/>
</svg>
</div>
</div>
<!-- Safari "Top" URL capsule -->
<div class="sim-safari-top-capsule">
<div class="safari-capsule-address-box">
<span class="safari-icon-page-menu">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
</span>
<span class="safari-url">liquidframe.dev</span>
<span class="safari-icon-reload">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/></svg>
</span>
</div>
</div>
<!-- Safari "Bottom" / "Top" liquid bar -->
<div class="sim-safari-bottom-liquid-bar">
<div class="safari-liquid-address-row">
<div class="safari-capsule-address-box">
<span class="safari-icon-page-menu">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
</span>
<span class="safari-url">liquidframe.dev</span>
<span class="safari-icon-reload">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/></svg>
</span>
</div>
</div>
<div class="safari-liquid-buttons-row">
<div class="safari-btn"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg></div>
<div class="safari-btn"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg></div>
<div class="safari-btn"><svg width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"/><polyline points="16 6 12 2 8 6"/><line x1="12" y1="2" x2="12" y2="15"/></svg></div>
<div class="safari-btn"><svg width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg></div>
<div class="safari-btn"><svg width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="13" height="13" rx="2" ry="2"/><path d="M9 21h10a2 2 0 0 0 2-2V9"/></svg></div>
</div>
</div>
<!-- Safari "Compact" 3-capsule bar -->
<div class="sim-safari-compact-bar">
<div class="compact-capsule compact-capsule-circle">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
</div>
<div class="compact-capsule compact-capsule-pill">
<span class="compact-pill-icon"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg></span>
<span class="compact-pill-url">liquidframe.dev</span>
<span class="compact-pill-icon"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/></svg></span>
</div>
<div class="compact-capsule compact-capsule-circle">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>
</div>
</div>
<!-- Bottom safe-area tint band -->
<div class="home-indicator-area"></div>
<!-- Your scrollable page content -->
<div class="phone-screen">
<div class="demo-page">
<section class="demo-hero">
<div class="badge">📱</div>
<h2>Drop your page here</h2>
<p>Everything inside <code>.phone-screen</code> is yours. Scroll to see the chrome stay pinned.</p>
</section>
<section class="demo-belt">
<p class="tag">WHY GLASSFRAME</p>
<div class="demo-card"><h4>Pure CSS</h4><p>No build step, no framework. One stylesheet and a chunk of HTML.</p></div>
<div class="demo-card"><h4>iOS 26 accurate</h4><p>Compact, Bottom, Top and PWA chrome — each with the right safe-area insets.</p></div>
<div class="demo-card"><h4>Themeable</h4><p>Tint the chrome with <code>--chrome-top</code> / <code>--chrome-bot</code> to mock any app.</p></div>
</section>
<footer class="demo-footer">
<div>Built with <a class="ghlink" href="#">liquidframe</a></div>
<div>MIT License</div>
</footer>
</div>
</div>
<!-- Optional scroll hint -->
<div class="scroll-prompt-overlay">
<svg width="24" height="36" viewBox="0 0 24 36" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="30" rx="9" ry="9"/><line class="scroll-wheel" x1="12" y1="8" x2="12" y2="14"/></svg>
<svg class="prompt-arrow" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" style="margin-top:2px;"><polyline points="6 9 12 15 18 9"/></svg>
</div>
</div>
</div>
</div>
</main>
<footer class="dd-footer">
<div class="footer-links">
<a href="https://cver.net/legal/terms" class="link-underline">Terms of Service</a>
<span class="footer-separator" aria-hidden="true">|</span>
<a href="https://cver.net/legal/privacy" class="link-underline">Privacy Policy</a>
<span class="footer-separator" aria-hidden="true">|</span>
<a href="https://cver.net/contact" class="link-underline">Contact Us</a>
</div>
<a href="https://cver.net/" class="footer-logo">
<img src="https://cver.net/cver-logo-small.png" alt="CVER" width="44" height="44" draggable="false">
</a>
<div class="footer-links secondary">
<a href="https://cver.net/about" class="link-underline">CVER.NET © 2011–2026 CVER Inc.</a>
<span class="footer-separator" aria-hidden="true">|</span>
<a href="https://github.com/CVERInc/liquidframe/blob/main/LICENSE" class="link-underline" target="_blank" rel="noopener noreferrer">MIT License</a>
</div>
</footer>
<script type="module">
import { enhance, setChromeMode, setTitanium } from './liquidframe.js';
enhance();
const phone = document.getElementById('phone');
// Reflect the chosen button in both the .active class (styling) and
// aria-pressed (assistive tech), so selection state isn't visual-only.
const selectOne = (group, btn) => {
group.querySelectorAll('button').forEach((b) => {
const on = b === btn;
b.classList.toggle('active', on);
b.setAttribute('aria-pressed', String(on));
});
};
document.getElementById('mode-seg').addEventListener('click', (e) => {
const btn = e.target.closest('button');
if (!btn) return;
setChromeMode(phone, btn.dataset.mode);
selectOne(btn.parentElement, btn);
});
document.getElementById('frame-swatches').addEventListener('click', (e) => {
const btn = e.target.closest('button');
if (!btn) return;
setTitanium(phone, btn.dataset.finish);
selectOne(btn.parentElement, btn);
});
</script>
<!-- CVER OSS house package: zero-config iOS Safari chrome tinting. -->
<script type="module">import 'https://esm.sh/bleedblend@2.1.0/auto';</script>
</body>
</html>