Diff -- /var/www/vhosts/3dshawn.com/affiliate.3dshawn.com/TEMPLATES/store_layouts/postcard.html
Diff
/var/www/vhosts/3dshawn.com/affiliate.3dshawn.com/TEMPLATES/store_layouts/postcard.html
added on local at 2026-07-01 13:47:53
Added
+80
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 776ce4bc4cc4
to 776ce4bc4cc4
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.| 1 | <!-- ===================================================================== | |
| 2 | LAYOUT: Postcard | |
| 3 | Zine / handmade vibe. Decorative borders, scrappy energy. | |
| 4 | ===================================================================== --> | |
| 5 | ||
| 6 | <style> | |
| 7 | :root { $theme_css_vars } | |
| 8 | .pc-card { background:var(--col-surface-1); border:2px dashed var(--col-border-2); border-radius:8px; padding:8px; transition:transform 0.15s; text-decoration:none; display:block; position:relative; } | |
| 9 | .pc-card:hover { transform: rotate(-1deg) scale(1.02); border-color:var(--col-accent); } | |
| 10 | .pc-card:nth-child(2n):hover { transform: rotate(1deg) scale(1.02); } | |
| 11 | .pc-stamp { position:absolute; top:-8px; right:12px; background:var(--col-accent); color:#fff; font-size:10px; font-weight:800; padding:4px 8px; border-radius:3px; letter-spacing:1px; text-transform:uppercase; transform:rotate(8deg); } | |
| 12 | </style> | |
| 13 | ||
| 14 | [if:$preview_banner] | |
| 15 | <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> | |
| 16 | [/if] | |
| 17 | ||
| 18 | <header style="background:var(--col-bg-2);padding:18px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:3px dashed var(--col-border-2);flex-wrap:wrap"> | |
| 19 | <a href="/store.cgi?id=$store_id" style="display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0"> | |
| 20 | <div class="brand-mark" style="background:linear-gradient(130deg, var(--col-accent), var(--col-accent-bright));border-radius:50%;border:3px solid var(--col-bg)">$store_initials</div> | |
| 21 | <div> | |
| 22 | <div style="font-family:var(--font-display);font-size:22px;font-weight:800;color:var(--col-text);transform:rotate(-1deg)">$store_name</div> | |
| 23 | <div style="font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--col-text-3)">a tiny shop</div> | |
| 24 | </div> | |
| 25 | </a> | |
| 26 | <nav style="display:flex;gap:18px;align-items:center;flex-wrap:wrap"> | |
| 27 | [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] | |
| 28 | </nav> | |
| 29 | <div style="flex:1;display:flex;justify-content:center;min-width:0">$store_search_form</div> | |
| 30 | <nav style="display:flex;gap:14px;align-items:center"> | |
| 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:80px 32px;text-align:center"><h1 class="hero-title" style="font-size:48px;transform:rotate(-2deg)">oops, not here!</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;transform:rotate(-1deg)">$page_title</h1><div class="text-secondary" style="font-size:16px;line-height:1.8;margin-top:18px;white-space:pre-wrap">$page_body</div></section>[/if] | |
| 38 | [/if] | |
| 39 | ||
| 40 | [if:!$is_specific_page] | |
| 41 | <!-- Hero: scrappy hand-drawn feel --> | |
| 42 | <section style="padding:48px 28px 24px;max-width:1200px;margin:0 auto;text-align:center"> | |
| 43 | <div style="display:inline-block;background:var(--col-accent);color:#fff;padding:5px 14px;border-radius:999px;font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:700;transform:rotate(-2deg);margin-bottom:14px">~ a little zine of $product_count designs ~</div> | |
| 44 | <h1 style="font-family:var(--font-display);font-size:clamp(40px,6vw,72px);font-weight:800;color:var(--col-text);line-height:1.05;margin:0;letter-spacing:-0.02em">handmade designs<br><span style="color:var(--col-accent-bright);transform:rotate(-1deg);display:inline-block">made with love</span></h1> | |
| 45 | <p style="font-size:16px;color:var(--col-text-2);margin-top:18px;max-width:520px;margin-left:auto;margin-right:auto;font-style:italic">$store_tagline</p> | |
| 46 | </section> | |
| 47 | ||
| 48 | <!-- Catalog: postcard cards with decorative borders --> | |
| 49 | <section id="shop" style="padding:48px 28px;max-width:1300px;margin:0 auto"> | |
| 50 | <div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px"> | |
| 51 | [loop:@products] | |
| 52 | <a href="/listing_details.cgi?id=$loop1.id" class="pc-card"> | |
| 53 | <span class="pc-stamp">No. $loop1.id</span> | |
| 54 | <div style="aspect-ratio:1;background:url('$loop1.hero_image') center/cover;border-radius:4px;border:1px solid var(--col-border)"></div> | |
| 55 | <div style="padding:12px 6px 6px;text-align:center"> | |
| 56 | <div style="font-family:var(--font-display);font-size:16px;font-weight:700;color:var(--col-text)">$loop1.title</div> | |
| 57 | <div style="display:flex;justify-content:center;align-items:center;gap:10px;margin-top:6px"> | |
| 58 | <span style="font-size:14px;font-weight:700;color:var(--col-accent-bright)">$loop1.price</span> | |
| 59 | <span style="color:var(--col-text-3);font-size:12px">♥ $loop1.rating_n</span> | |
| 60 | </div> | |
| 61 | </div> | |
| 62 | </a> | |
| 63 | [/loop] | |
| 64 | $pagination_html | |
| 65 | </div> | |
| 66 | </section> | |
| 67 | ||
| 68 | <!-- About: scrap of paper feel --> | |
| 69 | <section id="about" style="padding:60px 28px;background:var(--col-bg-2);border-top:3px dashed var(--col-border-2);border-bottom:3px dashed var(--col-border-2)"> | |
| 70 | <div style="max-width:680px;margin:0 auto;background:var(--col-surface-1);border:1px solid var(--col-border);padding:32px;border-radius:6px;transform:rotate(-0.5deg)"> | |
| 71 | <div style="font-size:11px;letter-spacing:3px;text-transform:uppercase;color:var(--col-accent-bright);font-weight:700;text-align:center;margin-bottom:8px">~ hi, i'm $store_name ~</div> | |
| 72 | <p style="font-size:15px;color:var(--col-text-2);line-height:1.8;text-align:center">$store_about</p> | |
| 73 | </div> | |
| 74 | </section> | |
| 75 | [/if] | |
| 76 | ||
| 77 | <footer style="padding:24px 28px;text-align:center"> | |
| 78 | <div style="font-family:var(--font-display);font-size:18px;font-weight:700;color:var(--col-text);transform:rotate(-1deg);display:inline-block">$store_name</div> | |
| 79 | <div class="text-xs text-dim" style="letter-spacing:2px;text-transform:uppercase;margin-top:6px">~ powered by affiliate.3dshawn.com ~</div> | |
| 80 | </footer> |