diff --git a/.eleventy.js b/.eleventy.js index 673656e..152f256 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -35,7 +35,8 @@ export default async function (eleventyConfig) { name: 'Vorname Nachname', address: 'Straße Nr., PLZ Ort', phone: '+49 (0)101 1337 48', - mail: 'name@domain.tld' + mail: 'name@domain.tld', + domain: 'https://domain.tld' }, debugMode: true, legacyMode: false diff --git a/source/screens/demo/examples/card.liquid b/source/screens/demo/examples/card.liquid new file mode 100644 index 0000000..dbe560b --- /dev/null +++ b/source/screens/demo/examples/card.liquid @@ -0,0 +1,69 @@ +--- +title: Card +tags: +- demoExample +--- +{% assign pageClass = "html_card" %} +{% layout 'hippie/simple.liquid' %} + +{% block body %} +
+
+ {% render 'hippie/partials/placeholder-flag.liquid', type: '', id: 'flag' %} + {% comment %}Background flag dithered{% endcomment %} +
+
+
+

Titel
und Beschreibung

+

{% text hippie.placeholders.name %}

+

+ {% link hippie.placeholders.mail, '', '', 'card_address' %}
+ {% link hippie.placeholders.domain, 'site.tld', '', 'decent' %} + · + {% text hippie.placeholders.address, '', 'decent' %}

+
+
+{% endblock %} + +{% block script %} + +{% endblock %} \ No newline at end of file diff --git a/source/screens/demo/examples/card.njk b/source/screens/demo/examples/card.njk deleted file mode 100644 index e05818d..0000000 --- a/source/screens/demo/examples/card.njk +++ /dev/null @@ -1,83 +0,0 @@ ---- -title: Card -tags: - - demoExample ---- -{% set pageId = page.fileSlug %} -{% set pageClass = "html_card" %} - -{% extends "demo/_default.njk" %} -{% import "hippie/macros/_placeholder.njk" as ph %} - -{% block title %}{{ title }} -{% endblock %} - -{% block head %} - {{ super() }} -{% endblock %} - -{% block body %} - - -
-
- {{ ph.flag('svg', '', 'flag', '') }} - {# Background flag dithered #} -
-
-
-

Titel
und Beschreibung

-

{{ ph.name() }}

-

- {{ ph.email('card_address') }}
- {{ ph.link('decent', 'site.tld') }} - · - {{ ph.address('decent') }}

-
-
-{% endblock %} - -{% block script %} - -{% endblock %} \ No newline at end of file diff --git a/source/style/modules/card/_card_module.scss b/source/style/modules/card/_card_module.scss index 5244c7f..86ab09c 100644 --- a/source/style/modules/card/_card_module.scss +++ b/source/style/modules/card/_card_module.scss @@ -32,7 +32,7 @@ // text-align: center; } - & > div { + & > main { position: relative; padding: 64px 64px 24px 64px; border: 1px solid #FFF; diff --git a/source/templates/hippie/partials/placeholder-flag.liquid b/source/templates/hippie/partials/placeholder-flag.liquid index 280a48c..6b6b048 100644 --- a/source/templates/hippie/partials/placeholder-flag.liquid +++ b/source/templates/hippie/partials/placeholder-flag.liquid @@ -14,7 +14,7 @@ {% endcomment %} - {% if desc != '' %} + {% if desc %} {{ desc }} {% endif %}