diff --git a/old/card.html.j2 b/old/card.html.j2 new file mode 100644 index 0000000..b3f4397 --- /dev/null +++ b/old/card.html.j2 @@ -0,0 +1,86 @@ +{% if not embeddable -%} + + +{% include 'card_headers.html' %} + +Card - {{card.title}} + +{% endif -%} + + +{% macro figure_layer(figure) -%} + {%- set figure_style %}{% filter cull_whitespace %} + {% if figure.opacity!=1 %}opacity: {{figure.opacity}};{% endif %} + {% if figure.color!=1 %}color: {{figure.color}};{% endif %} + transform: + {% if figure.offset|any %}translate({{figure.offset[0]*100}}%, {{figure.offset[1]*100}}%){% endif %} + {% if figure.rotation %}rotate({{figure.rotation}}deg){% endif %} + {% if figure.flip_x %}scaleX(-1){% endif %} + {% if figure.flip_y %}scaleY(-1){% endif %} + {% if figure.scale!=1 %}scale({{figure.scale}}){% endif %} + ; + {% endfilter %}{% endset -%} + +
+ {%- if figure.type == "material-icons" -%} + {#- https://material.io/icons/ -#} + {{figure.name}} + {%- elif figure.type == "mdi" -%} + {#- https://materialdesignicons.com/ -#} + + {%- elif figure.type == "fa" -%} + {#- http://fontawesome.io/icons/ -#} + + {%- elif figure.type == "lnr" -%} + {#- https://linearicons.com/free -#} + + {%- elif figure.type == "svg" -%} + {#- /cards/svg -#} + + {%- elif figure.type == "img" -%} + {#- /cards/img -#} + + {%- endif -%} +
+{%- endmacro -%} + +
+
{{card.title}}
+
+ {% for figure in card.figures -%} + {{figure_layer(figure)}} + {% endfor %} +
+ + + {%- for cost in card.costs %} +
+ {%- if cost.split()|length == 2 and cost.split()[0].isnumeric() %} + {{cost.split()[0]}}
+ {{cost.split()[1]}} + {% else %} + {{cost}} + {% endif %} +
+ {%- endfor %} +
+
+
"{{card.flavor}}"
+
{{card.description|markdown|safe}}
+ + {%- if card.steps %} + + {%- endif %} + +
+
+ +{#-
{{card}}
-#} diff --git a/old/card_header.html.j2 b/old/card_header.html.j2 new file mode 100644 index 0000000..7e5f9b6 --- /dev/null +++ b/old/card_header.html.j2 @@ -0,0 +1,10 @@ + + +{% macro async() -%} +media="none" onload="if(media!='all')media='all'" +{%- endmacro -%} + + + + +