From 6520cdbcf035ce5029555c299051dd7d53044d9e Mon Sep 17 00:00:00 2001 From: sthag Date: Thu, 12 Mar 2026 21:38:48 +0100 Subject: [PATCH] feat: Add login to layouts - Add articles - Change order of articles - Add id attributes like in components - Add login example --- source/screens/demo/layouts.liquid | 109 ++++++++++++++++------------- source/style/demo.scss | 1 + source/style/modules/_login.scss | 28 ++++++++ 3 files changed, 91 insertions(+), 47 deletions(-) create mode 100644 source/style/modules/_login.scss diff --git a/source/screens/demo/layouts.liquid b/source/screens/demo/layouts.liquid index 37da17e..958c545 100644 --- a/source/screens/demo/layouts.liquid +++ b/source/screens/demo/layouts.liquid @@ -15,7 +15,7 @@ order: 4

Die Elemente werden fortlaufend komplexer

-

Bereiche (sections)

+

Bereiche (sections)

section

section.overflow>div.float_space_left>img^p+p>br+a.lineLink
@@ -169,46 +169,9 @@ order: 4 - -

Interaktiv (interactive)

-

input

-
- - - - - -
-

form

-
-

Show me a - - Sorted by - - - - Matching - - -

-
- -

Gruppierung (grouping)

+
+
+

Gruppierung (grouping)

p

p.txt_right+p.txt_center+p.txt_left

Rechts

@@ -248,8 +211,15 @@ order: 4

Eingerückter Inhalt


- -

Tabellen

+
+
+

Eingebettet

+
+ {% render 'hippie/partials/placeholder-flag.liquid', type: '', width: '128', desc: 'Fahne von Interaktionsweise' %} +
+
+
+

Tabellen (tabular data)

table.link>thead>tr>th{ }+th{ab / zy}+th{neu / alt}^^(tbody>tr>td.icon[rowspan="2"]>img[width=16 height=16]^+td.link>span{name}+a[target=_blank]{url}^+td[rowspan="2"]{yyy-mm-dd}^tr>td.text>div.shorten{beschreibung})*2
@@ -290,12 +260,57 @@ order: 4 - -

Eingebettet

-
- {% render 'hippie/partials/placeholder-flag.liquid', type: '', width: '128', desc: 'Fahne von Interaktionsweise' %} +
+
+

Formulare (forms)

+

form

+
+

Show me a + + Sorted by + + + + Matching + + +

+
+ +
+
+

Anmeldung

+ + +
+
+

input

+
+ + + + +
+
+

Interaktiv (interactive)

+
{% endblock %} diff --git a/source/style/demo.scss b/source/style/demo.scss index 43d9cbd..85090ad 100644 --- a/source/style/demo.scss +++ b/source/style/demo.scss @@ -16,4 +16,5 @@ @use "modules/start"; @use "modules/clock"; @use "modules/game"; +@use "modules/login"; // @use "modules/YOUR-MODULE/YOUR-FILES"; diff --git a/source/style/modules/_login.scss b/source/style/modules/_login.scss new file mode 100644 index 0000000..3382d86 --- /dev/null +++ b/source/style/modules/_login.scss @@ -0,0 +1,28 @@ +@use "sass:color"; +@use "../hippie-style/hippie"; + +form[name="login"] { + display: flex; + align-items: center; + justify-content: center; + + & > div { + padding: hippie.$space_double; + background-color: color.adjust(hippie.basic_color(echo), $alpha: -0.4); + + p { + margin-top: 0; + color: hippie.$color_brightest; + } + + & > input { + display: block; + width: 100%; + margin-inline: 0; + } + + input:first-of-type { + margin-bottom: hippie.$space_basic; + } + } +} \ No newline at end of file