Added card and portal modules

This commit is contained in:
Stephan Hagedorn 2021-03-14 21:47:11 +01:00
parent 32215de810
commit f7dd7c93e3
9 changed files with 365 additions and 65 deletions

View file

@ -1,62 +1,66 @@
{
"demoadditionallinks": [
{
"href": "demo.html",
"text": "Index"
},
{
"href": "demo/intro.html",
"text": "Intro"
},
{
"href": "demo/elements.html",
"text": "Elements"
},
{
"href": "demo/examples.html",
"text": "Examples"
}
],
"demolinks": [
{
"href": "demo/blank.html",
"text": "Blank"
},
{
"href": "demo/card.html",
"text": "Card"
},
{
"href": "demo/maintenance.html",
"text": "Maintenance"
},
{
"href": "demo/error/304.html",
"text": "304"
},
{
"href": "demo/error/400.html",
"text": "400"
},
{
"href": "demo/error/401.html",
"text": "401"
},
{
"href": "demo/error/403.html",
"text": "403"
},
{
"href": "demo/error/404.html",
"text": "404"
},
{
"href": "demo/error/408.html",
"text": "408"
},
{
"href": "demo/error/500.html",
"text": "500"
}
]
}
"demoadditionallinks": [
{
"href": "demo.html",
"text": "Index"
},
{
"href": "demo/intro.html",
"text": "Intro"
},
{
"href": "demo/elements.html",
"text": "Elements"
},
{
"href": "demo/examples.html",
"text": "Examples"
}
],
"demolinks": [
{
"href": "demo/blank.html",
"text": "Blank"
},
{
"href": "demo/card.html",
"text": "Card"
},
{
"href": "demo/portal.html",
"text": "Portal"
},
{
"href": "demo/maintenance.html",
"text": "Maintenance"
},
{
"href": "demo/error/304.html",
"text": "304"
},
{
"href": "demo/error/400.html",
"text": "400"
},
{
"href": "demo/error/401.html",
"text": "401"
},
{
"href": "demo/error/403.html",
"text": "403"
},
{
"href": "demo/error/404.html",
"text": "404"
},
{
"href": "demo/error/408.html",
"text": "408"
},
{
"href": "demo/error/500.html",
"text": "500"
}
]
}

View file

@ -0,0 +1,31 @@
<!-- gates.macro -->
{% macro list(name, url, image, links) %}
<article class="portal__entry">
<section>
<h2>
<a class="a_discreet" href="{{ url }}">{{ name }}</a>
</h2>
<a class="portal__link portal__link--{{ name | slug }}" href="{{ url }}">
<img src="{{ image.src }}" alt="{{ image.alt }}"/>
</a>
{% if links %}
<ul class="portal__list">
{% for link in links %}
<li>
<a href="{{ link.href }}"><img src="{{ link.img }}" width="16" height="16"/>{{ link.name }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</section>
</article>
{% endmacro %}
{% macro simple(name, url) %}
<article class="portal__entry">
<section>
<h2>
<a class="a_discreet" href="{{ url }}">{{ name }}</a>
</h2>
</section>
</article>
{% endmacro %}