70 lines
2.5 KiB
HTML
70 lines
2.5 KiB
HTML
<!--
|
|
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]}}
|
|
{{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).
|
|
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.
|
|
-->
|
|
<div class="card type-{{lowercase card.type}}">
|
|
|
|
<!-- Full-bleed art + cinematic tint -->
|
|
<div class="art"></div>
|
|
<div class="tint"></div>
|
|
<div class="scan"></div>
|
|
|
|
<!-- Angular neon HUD frame -->
|
|
<div class="neon"></div>
|
|
<span class="tick tl"></span>
|
|
<span class="tick tr"></span>
|
|
|
|
<!-- Top-left: cores (CPU chip) + type glyph -->
|
|
<div class="core"><span class="core-count">{{card.cores}}</span></div>
|
|
<div class="typechip">{{card.type}}</div>
|
|
|
|
<!-- Top-right: unit tab -->
|
|
<div class="unit-tab">AVATAR</div>
|
|
|
|
<!-- Ports badge: hardware capacity (Expansion Slots) -->
|
|
<div class="ports">
|
|
<span class="plug"></span>
|
|
<b>{{card.[expansion-slots]}}</b>
|
|
<i>PORTS</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>
|
|
|
|
<!-- Lower content panel -->
|
|
<div class="lower">
|
|
<h1 class="name">{{card.name}}</h1>
|
|
|
|
<!-- Ability: shown directly under the name, before the description -->
|
|
{{#if card.[ability-name]}}
|
|
<div class="ability">
|
|
<div class="ability-head">
|
|
<span class="ability-name">{{card.[ability-name]}}</span>
|
|
{{#if card.[ability-cost]}}
|
|
<span class="ability-cost" title="Ability RAM cost">
|
|
<b>{{card.[ability-cost]}}</b>
|
|
<i>RAM</i>
|
|
</span>
|
|
{{/if}}
|
|
</div>
|
|
{{#if card.[ability-description]}}
|
|
<div class="ability-desc">{{card.[ability-description]}}</div>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
<!-- Description: bottom of the text section -->
|
|
{{#if card.description}}
|
|
<div class="desc">{{card.description}}</div>
|
|
{{/if}}
|
|
</div>
|
|
|
|
</div>
|