From 5f00cf0eddc74c59c2a9425d5b4a5b1014dd1f93 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Thu, 3 Nov 2022 20:29:52 -0400 Subject: [PATCH] Modified styles for the app to look better --- assets/styles/gargoyle.scss | 68 ++++++++++++++++++++++++++++++------- views/index.twig | 16 ++++++--- views/item/add.twig | 6 ++-- views/item/view.twig | 18 +++++++--- views/layout.twig | 2 +- 5 files changed, 83 insertions(+), 27 deletions(-) diff --git a/assets/styles/gargoyle.scss b/assets/styles/gargoyle.scss index 0925fd8..441675c 100644 --- a/assets/styles/gargoyle.scss +++ b/assets/styles/gargoyle.scss @@ -1,5 +1,7 @@ -$primary-color: orange; +$primary-color: orangered; $primary-color-highlight: darken($primary-color, 10%); +$box-shadow-1: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); +$box-shadow-2: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); $nav-bar-height: 60px; @@ -8,6 +10,29 @@ body{ background: lightgrey; } +a{ + color: $primary-color; + transition: all 230ms ease-in-out; + + &:hover{ + color: $primary-color-highlight; + } +} + +.button.button-primary, +button.button-primary, +input[type="button"].button-primary, +input[type="reset"].button-primary, +input[type="submit"].button-primary{ + background-color: $primary-color; + color: white; + transition: all 230ms ease-in-out; + + &:hover{ + background-color: $primary-color-highlight; + } +} + .container.fluid{ max-width: 100%; } @@ -19,7 +44,7 @@ body{ width: 100%; height: $nav-bar-height; background: #212121; - box-shadow: 0 2px 1px rgba(0, 0, 0, .25); + box-shadow: $box-shadow-1; color: white; .nav-bar-left{ @@ -36,26 +61,43 @@ body{ .site-logo, .nav-link a{ - padding: 9px 12px; + padding: 10px 12px; font-size: 2.5rem; + text-decoration: none; } .site-logo{ + padding-left: 35px; font-weight: bold; } - - .nav-link a{ - color: $primary-color; - transition: all 230ms ease-in-out; - - &:hover{ - color: $primary-color-highlight; - } - } } #main-content{ margin-top: 25px; - padding: 15px 25px; + padding: 20px 32px; background: white; + box-shadow: $box-shadow-2; +} + +#record-actions{ + p{ + margin-bottom: 0; + font-size: 2rem; + } +} + +#item-header{ + margin-bottom: 25px; + + h1{ + margin-bottom: 7px; + } + + .item-added-date, + .item-updated-date{ + margin-bottom: 5px; + color: #666; + font-size: 1.6rem; + font-style: italic; + } } diff --git a/views/index.twig b/views/index.twig index f7083be..eb97e2d 100644 --- a/views/index.twig +++ b/views/index.twig @@ -11,22 +11,28 @@ -
+
+
+ +
+
+

Recently updated records:

+
+
+
diff --git a/views/item/add.twig b/views/item/add.twig index 078b8fc..86575ec 100644 --- a/views/item/add.twig +++ b/views/item/add.twig @@ -1,6 +1,6 @@ {% extends 'layout.twig' %} -{% block title %}Create Item{% endblock %} +{% block title %}Add New Item{% endblock %} {% block content %} @@ -17,7 +17,7 @@
- +
@@ -65,7 +65,7 @@ - + diff --git a/views/item/view.twig b/views/item/view.twig index 785e7ca..1931636 100644 --- a/views/item/view.twig +++ b/views/item/view.twig @@ -5,9 +5,11 @@ {% block content %} -
+

{{ item.name }}

+

Item added at: {{ item.createdAt }}

+

Last updated at: {{ item.updatedAt }}

@@ -16,18 +18,24 @@
- + + + - + + - + + + - + +
NameProduct nameSerial numberSKU Number Manufacturer TypeCreated dateSellerPurchase date
{{ item.name }}{{ item.manufacturer }}{{ item.serialNumber ? item.serialNumber : 'N/a' }}{{ item.skuNumber ? item.skuNumber : 'N/a' }}{{ item.manufacturer ? item.manufacturer : 'N/a' }} {{ item.type }}{{ item.createdAt | date("m/d/Y h:i:s A") }}{{ item.purchasedFrom ? item.purchasedFrom : 'N/a' }}{{ item.purchasedAt | date("m/d/Y h:i:s A") }}
diff --git a/views/layout.twig b/views/layout.twig index e7dae38..b5263d0 100644 --- a/views/layout.twig +++ b/views/layout.twig @@ -25,7 +25,7 @@ -
+
{% block content %}{% endblock %}