files-tcg/card-template.html
2026-10-01 17:20:33 -04:00

155 lines
3.4 KiB
HTML

<!--
Cider front-card template — "tech" theme
Card size: 2.5in x 3.5in poker (750 x 1050 px @ 300 DPI)
Attributes used: {{name}} {{image}} {{bandwidth}} {{cores}} {{description}}
-->
<div class="card">
<!-- Top stat badges -->
<div class="stat bandwidth" title="Bandwidth (Gb)">
<span class="stat-value">{{bandwidth}}</span>
<span class="stat-label">Gb</span>
</div>
<div class="stat cores" title="Cores / Power">
<span class="stat-value">{{cores}}</span>
<span class="stat-label">CORES</span>
</div>
<!-- Name banner -->
<div class="name-banner">
<h1 class="name">{{name}}</h1>
</div>
<!-- Art -->
<div class="art-frame">
<img class="art" src="{{image}}" alt="{{name}}" />
</div>
<!-- Description / text box -->
<div class="text-box">
<p class="description">{{description}}</p>
</div>
</div>
<style>
/* ----- Card shell ----- */
.card {
position: relative;
width: 750px;
height: 1050px;
box-sizing: border-box;
padding: 36px;
border-radius: 36px;
overflow: hidden;
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
color: #e8f0ff;
background:
radial-gradient(120% 90% at 50% -10%, #1b2a4a 0%, #0c1220 55%, #070b14 100%);
border: 6px solid #2f4d7a;
}
/* Subtle circuit-grid overlay */
.card::before {
content: "";
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(80,160,255,0.06) 1px, transparent 1px),
linear-gradient(90deg, rgba(80,160,255,0.06) 1px, transparent 1px);
background-size: 42px 42px;
pointer-events: none;
}
/* ----- Stat badges ----- */
.stat {
position: absolute;
top: 30px;
width: 118px;
height: 118px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 50%;
z-index: 3;
box-shadow: 0 6px 18px rgba(0,0,0,0.45);
border: 4px solid rgba(255,255,255,0.85);
}
.stat-value {
font-size: 52px;
font-weight: 800;
line-height: 1;
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.stat-label {
font-size: 18px;
font-weight: 700;
letter-spacing: 2px;
margin-top: 4px;
opacity: 0.9;
}
.bandwidth {
left: 30px;
background: radial-gradient(circle at 35% 30%, #4aa3ff, #0b57c9 70%);
color: #eaf4ff;
}
.cores {
right: 30px;
background: radial-gradient(circle at 35% 30%, #ff7a4a, #c9350b 70%);
color: #fff2ec;
}
/* ----- Name banner ----- */
.name-banner {
position: relative;
margin: 6px 130px 0; /* clear the two badges */
z-index: 2;
text-align: center;
}
.name {
margin: 0;
font-size: 40px;
font-weight: 800;
letter-spacing: 1px;
line-height: 1.05;
text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
/* ----- Art frame ----- */
.art-frame {
position: relative;
margin-top: 24px;
height: 520px;
border-radius: 20px;
overflow: hidden;
border: 4px solid #2f4d7a;
background: #05070d;
z-index: 1;
}
.art {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* ----- Text box ----- */
.text-box {
position: relative;
margin-top: 24px;
padding: 22px 26px;
min-height: 190px;
border-radius: 18px;
background: rgba(9, 16, 30, 0.85);
border: 3px solid #2f4d7a;
z-index: 2;
}
.description {
margin: 0;
font-size: 26px;
line-height: 1.4;
color: #d6e2f5;
}
</style>