Diff -- /var/www/vhosts/3dshawn.com/affiliate.3dshawn.com/TEMPLATES/store_layouts/megastore.html

O Operator
Diff

/var/www/vhosts/3dshawn.com/affiliate.3dshawn.com/TEMPLATES/store_layouts/megastore.html

added on local at 2026-07-01 13:47:53

Added
+94
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 9aeeefaccbb4
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: Megastore
3 Horizontal scrolling rows by category. Netflix-style browsing.
4===================================================================== -->
5
6<style>
7:root { $theme_css_vars }
8.ms-row { display:flex; gap:12px; overflow-x:auto; padding:4px 32px 14px; scroll-snap-type:x mandatory; scrollbar-width:thin; }
9.ms-row::-webkit-scrollbar { height:6px; }
10.ms-row::-webkit-scrollbar-thumb { background:var(--col-border-2); border-radius:3px; }
11.ms-tile { flex:0 0 220px; scroll-snap-align:start; background:var(--col-surface-1); border:1px solid var(--col-border); border-radius:8px; overflow:hidden; text-decoration:none; transition:transform 0.15s, border-color 0.15s; }
12.ms-tile:hover { transform:scale(1.04); border-color:var(--col-accent); }
13.ms-tile .img { aspect-ratio:16/10; background-size:cover; background-position:center; }
14</style>
15
16[if:$preview_banner]
17<div style="position:sticky;top: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>
18[/if]
19
20<header style="background:var(--col-bg-2);padding:16px 32px;display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--col-border);position:sticky;top:0;z-index:50;flex-wrap:wrap">
21 <a href="/store.cgi?id=$store_id" style="display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0">
22 <div class="brand-mark" style="background:linear-gradient(130deg, var(--col-accent), var(--col-accent-bright));width:32px;height:32px;font-size:12px">$store_initials</div>
23 <span style="font-family:var(--font-display);font-size:18px;font-weight:800;color:var(--col-text);letter-spacing:-0.01em">$store_name</span>
24 </a>
25 <div style="flex:1;display:flex;justify-content:center;min-width:0">$store_search_form</div>
26 <nav style="display:flex;gap:18px;margin-left:18px;flex-wrap:wrap">
27 <a href="/store.cgi?id=$store_id" style="font-size:13px;color:var(--col-text-2);font-weight:500;text-decoration:none">Home</a>
28 [loop:@nav_pages]
29 <a href="$loop1.href" style="font-size:13px;color:var(--col-text-2);font-weight:500;text-decoration:none">$loop1.title</a>
30 [/loop]
31 </nav>
32 <div style="display:inline-flex;gap:8px;align-items:center;margin-left:8px">$store_signin_link $store_cart_link</div>
33</header>
34
35[if:$is_specific_page]
36 [if:$page_not_found]<section style="padding:120px 32px;text-align:center"><h1 class="hero-title" style="font-size:48px">Page not found</h1></section>[/if]
37 [if:!$page_not_found]<section style="padding:60px 32px;max-width:900px;margin:0 auto"><h1 class="hero-title" style="font-size:42px">$page_title</h1><div class="text-secondary" style="font-size:16px;line-height:1.7;margin-top:18px;white-space:pre-wrap">$page_body</div></section>[/if]
38[/if]
39
40[if:!$is_specific_page]
41<!-- Hero billboard -->
42<section style="position:relative;height:60vh;min-height:380px;background:url('/assets/images/[$featured_product.image_idx].webp') center/cover;display:flex;align-items:flex-end">
43 <div style="position:absolute;inset:0;background:linear-gradient(0deg, var(--col-bg) 0%, rgba(0,0,0,0) 70%)"></div>
44 <div style="position:relative;z-index:2;padding:40px 32px;max-width:800px">
45 <span style="font-size:11px;letter-spacing:3px;text-transform:uppercase;color:var(--col-accent-bright);font-weight:700">Trending now</span>
46 <h1 style="font-family:var(--font-display);font-size:clamp(40px,6vw,72px);font-weight:800;line-height:1;color:var(--col-text);margin:14px 0">$featured_product.title</h1>
47 <p style="font-size:16px;color:var(--col-text-2);max-width:500px;margin-bottom:20px">$store_tagline</p>
48 <div style="display:flex;gap:10px"><a href="#" class="btn btn-primary btn-lg">Add to cart</a><a href="#shop" class="btn btn-secondary btn-lg">Browse all</a></div>
49 </div>
50</section>
51
52<!-- Category rows: same products shown 3 times, themed differently -->
53<section id="new" style="padding:32px 0 8px">
54 <h2 style="font-family:var(--font-display);font-size:22px;color:var(--col-text);padding:0 32px;margin:0 0 8px">New this week</h2>
55 <div class="ms-row">
56 [loop:@products]
57 <a href="/listing_details.cgi?id=$loop1.id" class="ms-tile">
58 <div class="img" style="background-image:url('$loop1.hero_image')"></div>
59 <div style="padding:10px"><div style="font-size:13px;font-weight:600;color:var(--col-text)">$loop1.title</div><div style="display:flex;justify-content:space-between;margin-top:4px"><span style="font-size:13px;font-weight:700;color:var(--col-accent-bright)">$loop1.price</span><span style="font-size:11px;color:var(--col-text-3)">$loop1.rating_n</span></div></div>
60 </a>
61 [/loop]
62 </div>
63</section>
64
65<section id="minis" style="padding:24px 0 8px">
66 <h2 style="font-family:var(--font-display);font-size:22px;color:var(--col-text);padding:0 32px;margin:0 0 8px">Best sellers</h2>
67 <div class="ms-row">
68 [loop:@products]
69 <a href="/listing_details.cgi?id=$loop1.id" class="ms-tile">
70 <div class="img" style="background-image:url('$loop1.hero_image')"></div>
71 <div style="padding:10px"><div style="font-size:13px;font-weight:600;color:var(--col-text)">$loop1.title</div><div style="display:flex;justify-content:space-between;margin-top:4px"><span style="font-size:13px;font-weight:700;color:var(--col-accent-bright)">$loop1.price</span><span style="font-size:11px;color:var(--col-text-3)">$loop1.rating_n</span></div></div>
72 </a>
73 [/loop]
74 </div>
75</section>
76
77<section id="terrain" style="padding:24px 0 32px">
78 <h2 style="font-family:var(--font-display);font-size:22px;color:var(--col-text);padding:0 32px;margin:0 0 8px">Featured collections</h2>
79 <div class="ms-row">
80 [loop:@products]
81 <a href="/listing_details.cgi?id=$loop1.id" class="ms-tile">
82 <div class="img" style="background-image:url('$loop1.hero_image')"></div>
83 <div style="padding:10px"><div style="font-size:13px;font-weight:600;color:var(--col-text)">$loop1.title</div><div style="display:flex;justify-content:space-between;margin-top:4px"><span style="font-size:13px;font-weight:700;color:var(--col-accent-bright)">$loop1.price</span><span style="font-size:11px;color:var(--col-text-3)">$loop1.rating_n</span></div></div>
84 </a>
85 [/loop]
86 </div>
87</section>
88[/if]
89
90$pagination_html
91
92<footer style="background:var(--col-bg-2);border-top:1px solid var(--col-border);padding:24px 32px;text-align:center">
93 <div class="text-xs text-dim" style="letter-spacing:1.5px;text-transform:uppercase">$store_name &middot; powered by affiliate.3dshawn.com</div>
94</footer>