rule change
This commit is contained in:
parent
62b2b9feca
commit
5d771eed1b
9 changed files with 199 additions and 75 deletions
|
|
@ -189,7 +189,7 @@
|
|||
position: absolute;
|
||||
z-index: 5;
|
||||
right: 22px;
|
||||
top: 214px;
|
||||
top: 322px;
|
||||
writing-mode: vertical-rl;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
|
|
@ -332,3 +332,60 @@
|
|||
margin-top: 2px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* ----- Health badge (damage to destroy) — same chassis as PORTS, with a pulse line ----- */
|
||||
.health {
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
top: 204px;
|
||||
right: 30px;
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
|
||||
background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dk) 100%);
|
||||
box-shadow: 0 0 16px var(--accent);
|
||||
}
|
||||
.health::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 3px;
|
||||
clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
|
||||
background: linear-gradient(160deg, #12181f 0%, #0a0e13 100%);
|
||||
}
|
||||
/* heartbeat trace above the number */
|
||||
.health .pulse {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 56px;
|
||||
height: 16px;
|
||||
margin-bottom: 2px;
|
||||
background: var(--accent);
|
||||
filter: drop-shadow(0 0 6px var(--accent));
|
||||
clip-path: polygon(
|
||||
0 46%, 24% 46%, 32% 12%, 44% 88%, 54% 0, 62% 62%, 68% 46%, 100% 46%,
|
||||
100% 62%, 66% 62%, 58% 90%, 52% 30%, 44% 100%, 32% 40%, 26% 62%, 0 62%
|
||||
);
|
||||
}
|
||||
.health b {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-size: 40px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
text-shadow: 0 0 10px var(--accent), 0 2px 3px #000;
|
||||
}
|
||||
.health i {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-style: normal;
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 3px;
|
||||
margin-top: 2px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
<!--
|
||||
Avatar-Front template — full-bleed cyber HUD unit card
|
||||
Card size: 750 x 1050 px (2.5in x 3.5in @ 300 DPI)
|
||||
Attributes: {{card.name}} {{card.image}} {{card.cores}} {{card.type}} {{card.description}} {{card.[expansion-slots]}}
|
||||
Attributes: {{card.name}} {{card.image}} {{card.cores}} {{card.health}} {{card.type}} {{card.description}} {{card.[expansion-slots]}}
|
||||
{{card.[ability-name]}} {{card.[ability-cost]}} {{card.[ability-description]}}
|
||||
Cores = CPU-core chip (top-left), accent driven by Type (V/B/G/P).
|
||||
Expansion Slots = number of hardware ports (shown on the gold PORTS badge).
|
||||
Expansion Slots = number of hardware ports (shown on the PORTS badge, top-right).
|
||||
Health = damage that destroys the Avatar (HEALTH badge with a pulse line, under PORTS).
|
||||
Ability = the Avatar's activated power: name + RAM cost chip, then its rules text.
|
||||
Text section order (top to bottom): name, ability, description.
|
||||
The gold expansion bus (bottom) mirrors the Hardware card edge connector — hardware plugs in here.
|
||||
|
|
@ -35,6 +36,13 @@
|
|||
<i>PORTS</i>
|
||||
</div>
|
||||
|
||||
<!-- Health badge: damage it takes to destroy this Avatar -->
|
||||
<div class="health">
|
||||
<span class="pulse"></span>
|
||||
<b>{{card.health}}</b>
|
||||
<i>HEALTH</i>
|
||||
</div>
|
||||
|
||||
<!-- Edge micro-text -->
|
||||
<div class="vcode">FILES-TCG · SD01</div>
|
||||
<div class="vcredit">{{#if (eq card.type "V")}}VIRUS{{/if}}{{#if (eq card.type "B")}}BUG{{/if}}{{#if (eq card.type "G")}}GLITCH{{/if}}{{#if (eq card.type "P")}}PATCH{{/if}}-CLASS UNIT</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue