From e0e28209c628508bfa0deb3f7c739674d634c22f Mon Sep 17 00:00:00 2001 From: Janis M Date: Wed, 30 Mar 2022 14:09:08 +0200 Subject: [PATCH] added fixed footer --- static/css/style.css | 9 ++++++--- views/account.ejs | 1 + views/index.ejs | 7 ------- views/login.ejs | 1 + views/order.ejs | 42 ++++++++++++++++++++++-------------------- views/product.ejs | 2 +- views/register.ejs | 1 + views/search.ejs | 8 +++++++- 8 files changed, 39 insertions(+), 32 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 1a25b05..267164f 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -5,8 +5,11 @@ } html,body{ - min-height: 100% !important; - height: 100%; + height: 100% !important; + display: flex; + min-height: 100vh; + flex-direction: column; + justify-content: space-between; } h1, h2{ @@ -51,7 +54,7 @@ h1, h2{ margin-left:auto; margin-right:auto; padding-top:10px; - padding-bottom: 20px; + padding-bottom: 100px; } @media only screen and (max-width: 1030px) { diff --git a/views/account.ejs b/views/account.ejs index a0212b3..51b1c20 100644 --- a/views/account.ejs +++ b/views/account.ejs @@ -46,6 +46,7 @@ + <%- include('partials/footer'); %> \ No newline at end of file diff --git a/views/index.ejs b/views/index.ejs index 8c4dce4..16719c3 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -16,13 +16,6 @@ background-color: white; } - body { - display: flex; - min-height: 100vh; - flex-direction: column; - justify-content: space-between; - } - .grid-container { display: flex; gap: 20px; diff --git a/views/login.ejs b/views/login.ejs index 9ae9b60..6d50bfa 100644 --- a/views/login.ejs +++ b/views/login.ejs @@ -26,5 +26,6 @@ Sie haben keinen Account? + <%- include('partials/footer'); %> \ No newline at end of file diff --git a/views/order.ejs b/views/order.ejs index ffc9b17..03fc246 100644 --- a/views/order.ejs +++ b/views/order.ejs @@ -6,27 +6,29 @@ <%- include('partials/header'); %> -
-

Ihre Bestellung

-

<%- error %>

- -
-

Produktname: <%= product.name %>

-

Stückpreis: <%= product.price.toFixed(2) %> €

-

Anzahl: <%= quantity %>

-
-

Gesamtpreis: <%= (quantity * product.price).toFixed(2) %> €

+
+

Ihre Bestellung

+

<%- error %>

+ +
+

Produktname: <%= product.name %>

+

Stückpreis: <%= product.price.toFixed(2) %> €

+

Anzahl: <%= quantity %>

+
+

Gesamtpreis: <%= (quantity * product.price).toFixed(2) %> €

+
+ + +
+ + + + + +
- - -
- - - - - -
- + + <%- include('partials/footer'); %> \ No newline at end of file diff --git a/views/product.ejs b/views/product.ejs index 8d6e6bb..a8792a8 100644 --- a/views/product.ejs +++ b/views/product.ejs @@ -89,6 +89,6 @@ <% } %>
- + <%- include('partials/footer'); %> \ No newline at end of file diff --git a/views/register.ejs b/views/register.ejs index 5d9c7b2..5f95baa 100644 --- a/views/register.ejs +++ b/views/register.ejs @@ -93,6 +93,7 @@ Sie haben bereits einen Account? + <%- include('partials/footer'); %> diff --git a/views/search.ejs b/views/search.ejs index 66a4fac..344a7c8 100644 --- a/views/search.ejs +++ b/views/search.ejs @@ -7,7 +7,6 @@
<%- include('partials/header'); %>
-