added on local at 2026-07-01 13:47:55
| 1 | <!-- ===================================================================== | |
| 2 | LAYOUT: Trading Cards | |
| 3 | TCG-style cards with stat blocks, rarity, mana costs. | |
| 4 | ===================================================================== --> | |
| 5 | ||
| 6 | <style> | |
| 7 | :root { $theme_css_vars } | |
| 8 | .tc-card { background: linear-gradient(180deg, var(--col-surface-2) 0%, var(--col-surface-1) 100%); border: 2px solid var(--col-accent); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 0 1px var(--col-bg) inset; text-decoration:none; display:flex; flex-direction:column; transition: transform 0.15s; position:relative; } | |
| 9 | .tc-card:hover { transform: translateY(-4px) rotate(-0.5deg); } | |
| 10 | .tc-card .top { display:flex; justify-content:space-between; align-items:center; padding: 8px 12px; background: var(--col-accent); color:#fff; font-family: var(--font-mono,monospace); font-size:11px; letter-spacing:1px; text-transform:uppercase; font-weight:700; } | |
| 11 | .tc-card .img { aspect-ratio: 4/3; background-size: cover; background-position: center; border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(0,0,0,0.3); } | |
| 12 | .tc-card .body { padding: 12px; flex:1; display:flex; flex-direction:column; gap:8px; } | |
| 13 | .tc-card .name { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--col-text); letter-spacing:-0.01em; line-height:1.1; } | |
| 14 | .tc-card .stats { display:flex; gap:6px; flex-wrap:wrap; font-family:var(--font-mono,monospace); font-size:10px; } | |
| 15 | .tc-stat { background: var(--col-bg-2); border: 1px solid var(--col-border); padding: 3px 8px; border-radius: 4px; color: var(--col-text-2); } | |
| 16 | .tc-stat strong { color: var(--col-accent-bright); } | |
| 17 | .tc-card .footer { padding:10px 12px; border-top:1px solid var(--col-border); display:flex; justify-content:space-between; align-items:center; background:var(--col-bg-2); font-family:var(--font-mono,monospace); font-size:11px; } | |
| 18 | .tc-card .price { color: var(--col-accent-bright); font-weight: 800; font-size: 14px; } | |
| 19 | .tc-card .rarity { font-size:9px; letter-spacing:2px; text-transform:uppercase; color:#fff; background:var(--col-accent-deep); padding:2px 6px; border-radius:3px; } | |
| 20 | </style> | |
| 21 | ||
| 22 | [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] | |
| 23 | ||
| 24 | <header style="background:var(--col-bg-2);padding:16px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--col-border);flex-wrap:wrap"> | |
| 25 | <a href="/store.cgi?id=$store_id" style="display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0"> | |
| 26 | <div class="brand-mark" style="background:linear-gradient(130deg, var(--col-accent), var(--col-accent-bright))">$store_initials</div> | |
| 27 | <span style="font-family:var(--font-display);font-size:22px;font-weight:800;color:var(--col-text);letter-spacing:-0.02em">$store_name</span> | |
| 28 | </a> | |
| 29 | <nav style="display:flex;gap:18px;align-items:center;flex-wrap:wrap"> | |
| 30 | [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] | |
| 31 | </nav> | |
| 32 | <div style="flex:1;display:flex;justify-content:center;min-width:0">$store_search_form</div> | |
| 33 | <div style="display:flex;gap:10px;align-items:center"><span style="font-family:var(--font-mono,monospace);font-size:11px;color:var(--col-text-3);letter-spacing:2px;text-transform:uppercase">Set 1 · $product_count cards</span></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 | [if:$is_specific_page] | |
| 38 | [if:$page_not_found]<section style="padding:120px 32px;text-align:center"><h1 class="hero-title" style="font-size:48px">Card not in this set.</h1></section>[/if] | |
| 39 | [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] | |
| 40 | [/if] | |
| 41 | ||
| 42 | [if:!$is_specific_page] | |
| 43 | <section style="padding:32px 28px 8px;text-align:center;max-width:900px;margin:0 auto"> | |
| 44 | <div style="font-family:var(--font-mono,monospace);font-size:11px;letter-spacing:4px;text-transform:uppercase;color:var(--col-accent-bright);font-weight:700">First Edition · Set I</div> | |
| 45 | <h1 style="font-family:var(--font-display);font-size:clamp(36px,5vw,56px);font-weight:800;color:var(--col-text);margin:8px 0 6px;letter-spacing:-0.02em">$store_name Card Set</h1> | |
| 46 | <p style="font-size:14px;color:var(--col-text-2);max-width:600px;margin:0 auto">$store_tagline</p> | |
| 47 | </section> | |
| 48 | ||
| 49 | <section id="shop" style="padding:32px 28px;max-width:1400px;margin:0 auto"> | |
| 50 | <div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px"> | |
| 51 | [loop:@products] | |
| 52 | <a href="/listing_details.cgi?id=$loop1.id" class="tc-card"> | |
| 53 | <div class="top"> | |
| 54 | <span>No. $loop1.id</span> | |
| 55 | <span>★ $loop1.rating_n</span> | |
| 56 | </div> | |
| 57 | <div class="img" style="background-image:url('$loop1.hero_image')"></div> | |
| 58 | <div class="body"> | |
| 59 | <div class="name">$loop1.title</div> | |
| 60 | <div class="stats"> | |
| 61 | <span class="tc-stat">PWR <strong>+$loop1.id</strong></span> | |
| 62 | <span class="tc-stat">DEF <strong>+9</strong></span> | |
| 63 | <span class="tc-stat">SPD <strong>+5</strong></span> | |
| 64 | </div> | |
| 65 | </div> | |
| 66 | <div class="footer"> | |
| 67 | <span class="rarity">RARE</span> | |
| 68 | <span class="price">$loop1.price</span> | |
| 69 | </div> | |
| 70 | </a> | |
| 71 | [/loop] | |
| 72 | $pagination_html | |
| 73 | </div> | |
| 74 | </section> | |
| 75 | ||
| 76 | <section id="about" style="background:var(--col-bg-2);padding:48px 28px;border-top:1px solid var(--col-border)"> | |
| 77 | <div style="max-width:760px;margin:0 auto;text-align:center"> | |
| 78 | <h2 style="font-family:var(--font-display);font-size:32px;color:var(--col-text);font-weight:800">About the set</h2> | |
| 79 | <p style="font-size:15px;color:var(--col-text-2);line-height:1.8;margin-top:14px">$store_about</p> | |
| 80 | </div> | |
| 81 | </section> | |
| 82 | [/if] | |
| 83 | ||
| 84 | <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 · first edition · powered by affiliate.3dshawn.com</div></footer> |