Diff -- /var/www/vhosts/3dshawn.com/shop.3dshawn.com/TEMPLATES/store_layouts/reel.html

O Operator
Diff

/var/www/vhosts/3dshawn.com/shop.3dshawn.com/TEMPLATES/store_layouts/reel.html

added on local at 2026-07-01 22:10:04

Added
+86
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 96225df9d56f
Restore this content →
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
1<!-- =====================================================================
2 LAYOUT: Reel
3 Full-page vertical scroll. One product per snap, story-style.
4===================================================================== -->
5
6<style>
7:root { $theme_css_vars }
8.rl-reel { scroll-snap-type: y mandatory; overflow-y: auto; height: 100vh; }
9.rl-section { scroll-snap-align: start; min-height: 100vh; position: relative; display: flex; align-items: flex-end; padding: 48px; background-size: cover; background-position: center; }
10.rl-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--col-bg) 0%, rgba(0,0,0,0) 60%); pointer-events: none; }
11.rl-content { position: relative; z-index: 2; max-width: 700px; }
12.rl-nav { position: fixed; right: 32px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; }
13.rl-nav span { width: 4px; height: 28px; background: var(--col-text-3); border-radius: 2px; opacity: 0.5; transition: all 0.2s; }
14.rl-nav span:first-child { background: var(--col-accent); opacity: 1; height: 40px; }
15</style>
16
17[if:$preview_banner]<div style="position:fixed;top:0;left:0;right:0;z-index:9999;background:#0a0e1c;border-bottom:1px solid rgba(59,130,246,0.40);box-shadow:0 4px 16px rgba(0,0,0,0.55);padding:10px 20px;text-align:center;font-size:13px;color:#93c5fd;font-weight:600">$preview_banner</div>[/if]
18
19[if:$is_specific_page]
20 [if:$page_not_found]<section style="padding:120px 32px;text-align:center;min-height:100vh;display:flex;flex-direction:column;justify-content:center"><h1 class="hero-title" style="font-size:64px">Lost in the reel</h1><a href="/store.cgi?id=$store_id" class="btn btn-primary btn-lg" style="margin-top:24px;align-self:center;flex-shrink:0">Back home</a></section>[/if]
21 [if:!$page_not_found]<section style="padding:80px 32px;max-width:900px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;justify-content:center"><h1 class="hero-title" style="font-size:56px">$page_title</h1><div class="text-secondary" style="font-size:17px;line-height:1.8;margin-top:24px;white-space:pre-wrap">$page_body</div></section>[/if]
22[/if]
23
24[if:!$is_specific_page]
25<header style="padding:18px 32px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(180deg, var(--col-bg) 0%, transparent 100%);flex-wrap:wrap">
26 <a href="/store.cgi?id=$store_id" style="display:flex;align-items:center;gap:10px;text-decoration:none">
27 <div class="brand-mark" style="background:linear-gradient(130deg, var(--col-accent), var(--col-accent-bright));width:36px;height:36px;font-size:13px">$store_initials</div>
28 <span style="font-family:var(--font-display);font-size:18px;font-weight:700;color:var(--col-text)">$store_name</span>
29 </a>
30 <nav style="display:flex;gap:18px;align-items:center;flex-wrap:wrap">
31 [loop:@nav_pages]<a href="$loop1.href" style="font-size:13px;color:var(--col-text-2);font-weight:600;text-decoration:none">$loop1.title</a>[/loop]
32 </nav>
33 <div style="flex:1;display:flex;justify-content:center;min-width:0">$store_search_form</div>
34 <div style="display:inline-flex;gap:8px;align-items:center;margin-left:8px">$store_signin_link $store_cart_link</div>
35</header>
36
37<aside class="rl-nav">
38 <span></span>
39 <span></span>
40 <span></span>
41 <span></span>
42 <span></span>
43</aside>
44
45<div class="rl-reel" id="shop">
46
47 <!-- Cover slide -->
48 <section class="rl-section" style="background-image:url('/assets/images/[$featured_product.image_idx].webp')">
49 <div class="rl-content">
50 <span style="font-size:11px;letter-spacing:4px;text-transform:uppercase;color:var(--col-accent-bright);font-weight:700">The reel &middot; $product_count releases</span>
51 <h1 style="font-family:var(--font-display);font-size:clamp(56px,9vw,140px);font-weight:800;color:var(--col-text);line-height:0.9;letter-spacing:-0.04em;margin:14px 0 18px">$store_name.</h1>
52 <p style="font-size:18px;color:var(--col-text-2);line-height:1.5;max-width:480px">$store_tagline</p>
53 <div style="margin-top:32px;font-family:var(--font-mono);font-size:12px;color:var(--col-text-3);letter-spacing:2px;text-transform:uppercase">&darr; scroll to browse</div>
54 </div>
55 </section>
56
57 <!-- One product per snap section -->
58 [loop:@products]
59 <section class="rl-section" style="background-image:url('$loop1.hero_image')">
60 <div class="rl-content">
61 <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:3px;text-transform:uppercase;color:var(--col-accent-bright);font-weight:700">Release / $loop1.id</span>
62 <h2 style="font-family:var(--font-display);font-size:clamp(48px,7vw,96px);font-weight:800;color:var(--col-text);line-height:0.95;letter-spacing:-0.03em;margin:14px 0 18px">$loop1.title</h2>
63 <div style="display:flex;gap:18px;align-items:baseline;margin-bottom:24px;flex-wrap:wrap">
64 <span style="font-size:36px;font-weight:800;color:var(--col-accent-bright)">$loop1.price</span>
65 <span style="color:var(--col-text-3);font-size:14px">$loop1.rating_n early buyers</span>
66 </div>
67 <div style="display:flex;gap:10px"><a href="/listing_details.cgi?id=$loop1.id" class="btn btn-primary btn-lg">Get it</a><a href="#" class="btn btn-secondary btn-lg">Details</a></div>
68 </div>
69 </section>
70 [/loop]
71 $pagination_html
72
73 <!-- About slide -->
74 <section id="about" class="rl-section" style="background:var(--col-bg-2)">
75 <div class="rl-content" style="max-width:760px">
76 <span style="font-size:11px;letter-spacing:4px;text-transform:uppercase;color:var(--col-accent-bright);font-weight:700">The studio</span>
77 <h2 style="font-family:var(--font-display);font-size:clamp(40px,5vw,72px);font-weight:800;color:var(--col-text);line-height:1;letter-spacing:-0.03em;margin:14px 0 24px">About $store_name.</h2>
78 <p style="font-size:17px;color:var(--col-text-2);line-height:1.8">$store_about</p>
79 </div>
80 </section>
81
82 <footer style="padding:48px 32px;text-align:center;background:var(--col-bg)">
83 <div class="text-xs text-dim" style="letter-spacing:2px;text-transform:uppercase">$store_name &middot; powered by shop.3dshawn.com</div>
84 </footer>
85</div>
86[/if]