Diff -- /var/www/vhosts/3dshawn.com/affiliate.3dshawn.com/TEMPLATES/store_layouts/pinterest.html
Diff
/var/www/vhosts/3dshawn.com/affiliate.3dshawn.com/TEMPLATES/store_layouts/pinterest.html
added on local at 2026-07-01 13:47:53
Added
+69
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 237fe18752d6
to 237fe18752d6
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.| 1 | <!-- ===================================================================== | |
| 2 | LAYOUT: Pinterest | |
| 3 | Masonry grid with always-visible captions. Save-and-share feel. | |
| 4 | ===================================================================== --> | |
| 5 | ||
| 6 | <style> | |
| 7 | :root { $theme_css_vars } | |
| 8 | .pn-grid { column-count: 4; column-gap: 14px; padding: 24px; max-width: 1500px; margin: 0 auto; } | |
| 9 | @media (max-width: 1100px) { .pn-grid { column-count: 3; } } | |
| 10 | @media (max-width: 750px) { .pn-grid { column-count: 2; } } | |
| 11 | .pn-pin { display:block; break-inside: avoid; margin-bottom: 14px; background: var(--col-surface-1); border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; } | |
| 12 | .pn-pin:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); } | |
| 13 | .pn-pin img { width: 100%; display: block; } | |
| 14 | .pn-pin .meta { padding: 12px 14px; } | |
| 15 | .pn-save { position: absolute; top: 10px; right: 10px; background: var(--col-accent); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity 0.15s; } | |
| 16 | .pn-pin:hover .pn-save { opacity: 1; } | |
| 17 | .pn-pin > div:first-child { position: relative; } | |
| 18 | </style> | |
| 19 | ||
| 20 | [if:$preview_banner]<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>[/if] | |
| 21 | ||
| 22 | <header style="background:var(--col-bg);padding:18px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--col-border);flex-wrap:wrap"> | |
| 23 | <a href="/store.cgi?id=$store_id" style="display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0"> | |
| 24 | <div class="brand-mark" style="background:linear-gradient(130deg, var(--col-accent), var(--col-accent-bright));border-radius:50%">$store_initials</div> | |
| 25 | <span style="font-family:var(--font-display);font-size:22px;font-weight:700;color:var(--col-text)">$store_name</span> | |
| 26 | </a> | |
| 27 | <nav style="display:flex;gap:18px;align-items:center;flex-wrap:wrap"> | |
| 28 | [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] | |
| 29 | </nav> | |
| 30 | <div style="flex:1;display:flex;justify-content:center;min-width:0">$store_search_form</div> | |
| 31 | <div style="display:inline-flex;gap:8px;align-items:center;margin-left:8px">$store_signin_link $store_cart_link</div> | |
| 32 | </header> | |
| 33 | ||
| 34 | [if:$is_specific_page] | |
| 35 | [if:$page_not_found]<section style="padding:120px 32px;text-align:center"><h1 class="hero-title" style="font-size:48px">No pin here</h1></section>[/if] | |
| 36 | [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] | |
| 37 | [/if] | |
| 38 | ||
| 39 | [if:!$is_specific_page] | |
| 40 | <section style="padding:32px 28px 8px;text-align:center;max-width:900px;margin:0 auto"> | |
| 41 | <h1 style="font-family:var(--font-display);font-size:clamp(32px,4vw,48px);font-weight:700;color:var(--col-text);margin:0">Ideas from $store_name</h1> | |
| 42 | <p style="font-size:14px;color:var(--col-text-2);margin-top:8px">$store_tagline · $product_count pins</p> | |
| 43 | </section> | |
| 44 | ||
| 45 | <section id="shop" class="pn-grid"> | |
| 46 | [loop:@products] | |
| 47 | <a href="/listing_details.cgi?id=$loop1.id" class="pn-pin"> | |
| 48 | <div> | |
| 49 | <img src="$loop1.hero_image" alt="$loop1.title" loading="lazy"> | |
| 50 | <span class="pn-save">Save</span> | |
| 51 | </div> | |
| 52 | <div class="meta"> | |
| 53 | <div style="font-family:var(--font-display);font-size:15px;font-weight:700;color:var(--col-text);margin-bottom:6px">$loop1.title</div> | |
| 54 | <div style="display:flex;justify-content:space-between;align-items:center"><span style="font-size:14px;font-weight:700;color:var(--col-accent-bright)">$loop1.price</span><span style="font-size:11px;color:var(--col-text-3)">$loop1.rating_n saves</span></div> | |
| 55 | </div> | |
| 56 | </a> | |
| 57 | [/loop] | |
| 58 | $pagination_html | |
| 59 | </section> | |
| 60 | ||
| 61 | <section id="about" style="background:var(--col-bg-2);padding:48px 28px;border-top:1px solid var(--col-border)"> | |
| 62 | <div style="max-width:760px;margin:0 auto;text-align:center"> | |
| 63 | <h2 style="font-family:var(--font-display);font-size:28px;color:var(--col-text)">About this board</h2> | |
| 64 | <p style="font-size:15px;color:var(--col-text-2);line-height:1.8;margin-top:14px">$store_about</p> | |
| 65 | </div> | |
| 66 | </section> | |
| 67 | [/if] | |
| 68 | ||
| 69 | <footer style="border-top:1px solid var(--col-border);padding:18px 28px;text-align:center"><div class="text-xs text-dim" style="letter-spacing:1.5px;text-transform:uppercase">$store_name · powered by affiliate.3dshawn.com</div></footer> |