From 6ae411c83b3c32da55822d784db8533f457c77e4 Mon Sep 17 00:00:00 2001 From: sthag Date: Sun, 8 Mar 2026 18:18:54 +0100 Subject: [PATCH] feat: Update intro and placeholder - Change intro from njk to liquid - New svg content for brand shortcode - New style for brand in ui --- .eleventy.js | 52 ++++--- .../screens/demo/examples/game/intro.liquid | 138 ++++++++++++++++++ source/screens/demo/examples/game/intro.njk | 138 ------------------ source/style/modules/_game.scss | 9 -- source/style/ui.scss | 13 +- 5 files changed, 181 insertions(+), 169 deletions(-) create mode 100644 source/screens/demo/examples/game/intro.liquid delete mode 100644 source/screens/demo/examples/game/intro.njk diff --git a/.eleventy.js b/.eleventy.js index 407553c..673656e 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -60,27 +60,39 @@ export default async function (eleventyConfig) { eleventyConfig.addPairedShortcode("brand", function (content, attrClass = 'brand', direction = 'first') { const logo = ` - - - - - + width="100%" + height="100%" + viewBox="0 0 512 512" + preserveAspectRatio="xMidYMid meet"> + + + + + + + + `; let output = ''; switch (direction) { diff --git a/source/screens/demo/examples/game/intro.liquid b/source/screens/demo/examples/game/intro.liquid new file mode 100644 index 0000000..4e245b2 --- /dev/null +++ b/source/screens/demo/examples/game/intro.liquid @@ -0,0 +1,138 @@ +--- +title: Intro +tags: +- game +--- + +{% assign pageId = "init" %} +{% assign bodyClass = 'body_intro' -%} +{% layout 'hippie/app.liquid' %} + +{% block body %} +
+
+
+ I +
+
+
+
+
0%
+
+
+
+ + {% brand 'brand' %} +

Marke

+ {% endbrand %} +

Powered by

+ +
+
+

Agreement

+

This needs to be seen and acknowledged.
So an interaction must be made to continue.

+
+
+
+
Hello World!
+

Only left mouse click or any key

+
+{% endblock %} + +{%- block script %} +{{ block.super -}} + + +{% endblock %} \ No newline at end of file diff --git a/source/screens/demo/examples/game/intro.njk b/source/screens/demo/examples/game/intro.njk deleted file mode 100644 index fbcb692..0000000 --- a/source/screens/demo/examples/game/intro.njk +++ /dev/null @@ -1,138 +0,0 @@ ---- -title: Intro -tags: - - game ---- - -{% set pageId = "init" %} -{% set bodyClass = "body_intro" %} - -{% extends "hippie/_app_frame.njk" %} -{% import "hippie/macros/_placeholder.njk" as ph %} - -{% block body %} -
-
-
- I -
-
-
-
-
0%
-
-
-
- - {{ ph.brand('brand') }} -

Powered by

- -
-
-

Agreement

-

This needs to be seen and acknowledged.
So an interaction must be made to continue.

-
-
-
-
Hello World!
-

Only left mouse click or any key

-
-{% endblock %} - -{%- block script %} - {{ super() }} - - -{% endblock %} \ No newline at end of file diff --git a/source/style/modules/_game.scss b/source/style/modules/_game.scss index 690a4e9..6d49400 100644 --- a/source/style/modules/_game.scss +++ b/source/style/modules/_game.scss @@ -21,16 +21,7 @@ & > svg { height: 32px; width: 32px; - - rect, circle, path { - stroke: black !important; - } } - - p { - - } - ; } } } \ No newline at end of file diff --git a/source/style/ui.scss b/source/style/ui.scss index 8c802c7..f1a3dcb 100644 --- a/source/style/ui.scss +++ b/source/style/ui.scss @@ -124,6 +124,15 @@ $space_gui_half: hippie.$space_half; .brand { text-align: center; + svg { + height: 128px; + width: 128px; + + rect, circle, path { + stroke: white !important; + } + } + img { display: inline-block; width: 128px; @@ -131,7 +140,7 @@ $space_gui_half: hippie.$space_half; background-color: white; } - *+h1 { + * + h1 { margin-top: hippie.$space_small; margin-bottom: hippie.$space_large; } @@ -170,7 +179,7 @@ $space_gui_half: hippie.$space_half; background-color: hippie.$color_back_basic; transition: background-color 4s; - &:hover>.mouse-overlay { + &:hover > .mouse-overlay { background-color: transparent !important; transition: background-color hippie.$duration_basic hippie.$timing_basic 0s !important; }