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

O Operator
Diff

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

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

Added
+109
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 94d802c9685a
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: Dense Workshop
3 Compact, technical, lots of products visible at once. Sparse decoration.
4 Best for functional/utility prints, prolific creators with deep catalogs.
5===================================================================== -->
6
7<style>:root { $theme_css_vars }</style>
8
9[if:$preview_banner]
10<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:8px 14px;text-align:center;font-size:12px;color:#93c5fd;font-weight:600">
11 $preview_banner
12</div>
13[/if]
14
15<header style="border-bottom:1px solid var(--col-border);padding:10px 18px;display:flex;align-items:center;gap:14px;background:var(--col-bg-2);font-family:var(--font-mono,ui-monospace,monospace);flex-wrap:wrap">
16 <a href="/store.cgi?id=$store_id" style="display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0">
17 <div class="brand-mark" style="background:linear-gradient(130deg, var(--col-accent), var(--col-accent-bright));width:28px;height:28px;font-size:11px">$store_initials</div>
18 <span style="font-size:14px;font-weight:700;color:var(--col-text);letter-spacing:0.5px">$store_name</span>
19 <span style="color:var(--col-text-3);font-size:11px">::</span>
20 <span style="color:var(--col-text-3);font-size:11px">$product_count items</span>
21 </a>
22 <nav style="display:flex;gap:18px;align-items:center;flex-wrap:wrap">
23 [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]
24 </nav>
25 <div style="flex:1;display:flex;justify-content:center;min-width:0">$store_search_form</div>
26 <div style="display:inline-flex;gap:8px;align-items:center;margin-left:8px">$store_signin_link $store_cart_link</div>
27</header>
28
29[if:$is_specific_page]
30 [if:$page_not_found]
31 <section style="padding:60px 24px;text-align:center;max-width:600px;margin:0 auto;font-family:var(--font-mono,monospace)">
32 <h1 style="font-size:32px;color:var(--col-text)">404 :: page not found</h1>
33 <a href="/store.cgi?id=$store_id" class="btn btn-primary btn-sm" style="margin-top:16px">/home</a>
34 </section>
35 [/if]
36 [if:!$page_not_found]
37 <section style="padding:40px 24px;max-width:900px;margin:0 auto;font-family:var(--font-mono,monospace)">
38 <h1 style="font-size:32px;color:var(--col-text)">$page_title</h1>
39 <div style="font-size:14px;line-height:1.7;color:var(--col-text-2);margin-top:18px;white-space:pre-wrap">$page_body</div>
40 </section>
41 [/if]
42[/if]
43
44[if:!$is_specific_page]
45<!-- Compact intro strip -- keeps the dense vibe but fills the page top -->
46<section style="background:var(--col-bg-2);padding:36px 18px;border-bottom:1px solid var(--col-border);font-family:var(--font-mono,ui-monospace,monospace)">
47 <div style="max-width:1400px;margin:0 auto;display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap">
48 <div>
49 <div style="font-size:11px;letter-spacing:3px;text-transform:uppercase;color:var(--col-accent-bright);font-weight:700;margin-bottom:8px">/// the workshop</div>
50 <h1 style="font-size:32px;color:var(--col-text);font-weight:700;margin:0;line-height:1.2;font-family:inherit">$store_name</h1>
51 <p style="font-size:13px;color:var(--col-text-2);margin:8px 0 0;max-width:600px">&#9655; $store_tagline</p>
52 </div>
53 <div style="display:flex;gap:24px;font-size:11px;color:var(--col-text-3)">
54 <span>items: <span style="color:var(--col-text)">$product_count</span></span>
55 <span>updated: <span style="color:var(--col-text)">today</span></span>
56 </div>
57 </div>
58</section>
59
60<!-- Filter bar -->
61<section style="padding:12px 18px;border-bottom:1px solid var(--col-border);display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:var(--col-bg)">
62 <a href="#" class="btn btn-secondary btn-sm">All</a>
63 <a href="#" class="btn btn-ghost btn-sm">Miniatures</a>
64 <a href="#" class="btn btn-ghost btn-sm">Terrain</a>
65 <a href="#" class="btn btn-ghost btn-sm">Bundles</a>
66 <a href="#" class="btn btn-ghost btn-sm">Bases</a>
67 <a href="#" class="btn btn-ghost btn-sm">Accessories</a>
68 <span style="margin-left:auto;color:var(--col-text-3);font-size:12px;font-family:var(--font-mono,monospace)">sort: newest</span>
69</section>
70
71<!-- Dense grid -->
72<section id="shop" style="padding:18px;max-width:1600px;margin:0 auto">
73 [if:$has_products]
74 <div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px">
75 [loop:@products]
76 <a href="/listing_details.cgi?id=$loop1.id" style="text-decoration:none;background:var(--col-surface-1);border:1px solid var(--col-border);border-radius:4px;overflow:hidden;transition:border-color 0.1s;display:flex;flex-direction:column">
77 <div style="aspect-ratio:1;background:url('$loop1.hero_image') center/cover"></div>
78 <div style="padding:8px;font-family:var(--font-mono,ui-monospace,monospace);flex:1;display:flex;flex-direction:column;gap:4px">
79 <div style="font-size:12px;color:var(--col-text);font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">$loop1.title</div>
80 <div style="display:flex;justify-content:space-between;align-items:center;margin-top:auto">
81 <span style="font-size:13px;color:var(--col-accent-bright);font-weight:700">$loop1.price</span>
82 <span style="font-size:10px;color:var(--col-text-3)">#$loop1.id</span>
83 </div>
84 </div>
85 </a>
86 [/loop]
87 $pagination_html
88 </div>
89 [/if]
90
91 [if:!$has_products]
92 <div style="min-height:40vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;font-family:var(--font-mono,monospace);color:var(--col-text-2);border:1px dashed var(--col-border);border-radius:6px;background:var(--col-bg-2)">
93 <div style="font-size:24px;color:var(--col-text);margin-bottom:8px">// no items yet</div>
94 <div style="font-size:13px;color:var(--col-text-3);max-width:400px;text-align:center;line-height:1.6">add items from the creator dashboard to populate this catalog. each new release will appear here automatically.</div>
95 </div>
96 [/if]
97</section>
98
99<!-- Tiny about strip -->
100<section id="about" style="padding:24px 18px;background:var(--col-bg-2);border-top:1px solid var(--col-border);font-family:var(--font-mono,ui-monospace,monospace);font-size:13px;color:var(--col-text-2);max-width:1000px;margin:0 auto">
101 <div style="color:var(--col-accent-bright);font-size:11px;letter-spacing:2px;text-transform:uppercase;margin-bottom:6px">// readme</div>
102 $store_about
103</section>
104[/if]
105
106<footer style="border-top:1px solid var(--col-border);padding:14px 18px;font-family:var(--font-mono,ui-monospace,monospace);font-size:11px;color:var(--col-text-3);display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px">
107 <span>$store_name :: $product_count items</span>
108 <span>powered by shop.3dshawn.com</span>
109</footer>