From 22237814346e50905b8c4bddeaa563f1b0267426 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Thu, 29 Jul 2021 21:05:45 +0200 Subject: [PATCH] beautify design page --- resources/views/pages/design.twig | 68 +++++++++++++++---------------- 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/resources/views/pages/design.twig b/resources/views/pages/design.twig index f9a87cf8..de8f2458 100644 --- a/resources/views/pages/design.twig +++ b/resources/views/pages/design.twig @@ -34,17 +34,19 @@ {% block content %}
-

{{ block('title') }} {{ themes[themeId]['name'] }}

+

+ {{ block('title') }} {{ themes[themeId]['name'] }} +

Elements small

-
+

Headings small

H4 small

H5 small
H6 small
-
+

Lists

This page should be used when creating and testing new designs to find usability and/or design issues. @@ -62,7 +64,7 @@

{{ linksum|raw }} {{ lipsum }}

-
+

Themes

    {% for id,theme in themes %} @@ -76,7 +78,7 @@
-
+

Tables

@@ -96,7 +98,7 @@
-
+

Navigation Tabs

-
+

Navigation Pills

-
+

Texts

{{ linksum|raw }}
{{ lipsum }} {{ lipsum|replace({'…': '.'}) }} {{ lipsum|replace({'…': '.'}) }} {{ lipsum }}

-
+
{% for color in types %} -
+

{{ color|capitalize }}: {{ linksum|raw }}

{% endfor %} @@ -145,7 +147,7 @@
-
+

Badges

{% for type in types_color %} @@ -153,7 +155,7 @@ {% endfor %}

-
+

Buttons

{% for type in types_buttons %} @@ -163,7 +165,7 @@

-
+

Alerts

@@ -178,13 +180,13 @@
-
+

Cards

{% for type in types %} -
+

{{ type|capitalize }}

@@ -201,53 +203,53 @@
-
+

Forms

-
+
{{ f.input('form-input-text', 'Text', 'text', {'value': 'Value'}) }}
-
+
{{ f.input('form-input-text-hidden-label', 'Hidden label', 'text', {'value': 'Hidden label', 'hide_label': true}) }}
-
+
{{ f.input('form-input-text-disabled', 'Disabled', 'text', {'disabled': true, 'value': 'Value'}) }}
-
+
{{ f.input('form-input-text-readonly', 'Readonly', 'text', {'readonly': true, 'value': 'Value'}) }}
-
+
{{ f.input('form-input-password', 'Password', 'password', {'value': 'Value'}) }}
-
+
{{ f.input('form-input-number', 'Number', 'number', {'value': 42}) }}
-
+
{{ f.textarea('form-input-textarea', 'Textarea', {'rows': 2, 'value': lipsum}) }}
-
+
{{ f.select('form-input-select', {'lorem': 'Ipsum', 'dolor': 'Sit'}, 'Select', 'dolor') }}
-
+
{{ f.button('Button') }}
-
+
Submit button
{{ f.submit() }}
-
+
Checkbox
{{ f.checkbox('form-input-checkbox', 'Checkbox', true) }} {{ f.checkbox('form-input-checkbox-2', 'Checkbox 2') }}
-
+
Radio

Other

-
+

Code

@@ -273,7 +275,7 @@

Macros

base.twig

-
+

angel()

{{ m.angel() }}

@@ -290,8 +292,6 @@

user(user)

{{ m.user(demo_user) }}
{{ m.user(demo_user_2) }}

-
-

button(label, url, type, size)

{{ m.button('Label', '#', 'info', 'sm') }}

@@ -299,7 +299,7 @@

form.twig

-
+

input(name, label, type, opt)

{{ f.input('input-name', 'Label', 'text', {'required': true, 'value': 'Value'}) }}

@@ -322,8 +322,6 @@ {{ f.checkbox('checkbox-name', 'Label', true, 'on') }}

-
-

hidden(name, value)