This repository has been archived on 2026-05-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cardmaker/resources/cards/card.vm
T

108 lines
3.3 KiB
Plaintext

<!DOCTYPE html>
<link rel="stylesheet" href="card.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/2.0.46/css/materialdesignicons.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
#macro(figure $card)
#if($card.figure_source == "material-icons")
<!--https://material.io/icons/-->
<i class="material-icons figure">$escape_html($card.figure)</i>
#elseif($card.figure_source == "mdi")
<!--https://materialdesignicons.com/-->
<i class="mdi mdi-$escape_html($card.figure)"></i>
#elseif($card.figure_source == "fa")
<!--http://fontawesome.io/icons/-->
<i class="fa fa-$escape_html($card.figure)"></i>
#elseif($card.figure_source == "svg")
<!--/cards/svg-->
<img class="svg" src="/svg/${escape_html($card.figure)}.svg">
<!--<div class="svg" style="background-image:url('/svg/${escape_html($card.figure)}.svg');"></div>-->
## #include("${card.figure}.svg") **
#end
#end
#macro(specialFlags $card)
#if($card.has_flag("mastery"))
<big>
&#x274F; &#x274F; &#x274F; &#x274F; &#x274F;
&#x274F; &#x274F; &#x274F; &#x274F; &#x274F;
</big>
#end
#if($card.has_flag("pokehum"))
<big>
Name: ______________
</big>
#end
#end
<title>Cards</title>
#foreach($card in $cards)
<article #if($card.effects) class="effects"#end onclick="location.href='creator?filename=$escape_html($card.filename)'">
<h1>
$escape_html($card.title)
</h1>
<figure>
#figure($card)
</figure>
#if($card.effects)
<ul>
#foreach($item in $card.effects)
#if($item)
<li>$escape_html($item)</li>
#end
#end
</ul>
#end
<main>
$escape_html($card.description)
#if($card.steps)
<ol>
#foreach($item in $card.steps)
#if($item)
<li>$escape_html($item)</li>
#end
#end
</ol>
#end
#if($card.flags)
<div class="bottom">
<small>
-
#foreach($flag in $card.flags)
#if(!$flag && $foreach.hasNext)
- <br> -
#else
$escape_html($flag.capitalize())#if($foreach.hasNext), #end
#end
#end
-
</small>
<br>
#specialFlags($card)
</div>
#end
</main>
<div class="cost">$escape_html($card.cost)</div>
#if($card.power)
<div class="power">$escape_html($card.power)</div>
#end
#if($card.cp)
<div class="cp">$escape_html($card.cp)</div>
#elseif($card.gp)
<div class="gp">$escape_html($card.gp)</div>
#end
</article>
#end
#if($was_saved)
<center style="font-size: 1.3em;position: absolute; bottom:0; width: 100%;">
The card has been saved
</center>
#end
#if($was_deleted)
<center style="position: absolute; bottom:0; width: 100%;">
The card has been removed from storage
</center>
#end