From eb569b2a6c4b0704162c804574d16b9207986c4e Mon Sep 17 00:00:00 2001
From: daMustermann
Date: Sat, 11 Jan 2025 23:15:19 +0100
Subject: [PATCH] Enhance UI: Improve card and item templates with additional
styling and layout adjustments
---
templates/index.html | 9 +++++++++
templates/item.html | 29 ++++++++++++++++++++++++++---
2 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/templates/index.html b/templates/index.html
index c19ebe0..e05aac1 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -94,15 +94,24 @@
background-color: var(--card-background);
border-color: var(--border-color);
margin-bottom: 10px;
+ border-radius: 10px;
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+ transition: background-color 0.3s, box-shadow 0.3s;
}
.card-body {
color: var(--text-primary);
+ padding: 20px;
}
.card-title a {
color: var(--text-primary);
text-decoration: none;
+ transition: color 0.3s;
+ }
+
+ .card-title a:hover {
+ color: var(--text-color-hover);
}
.form-control {
diff --git a/templates/item.html b/templates/item.html
index 6f657e4..02bd184 100644
--- a/templates/item.html
+++ b/templates/item.html
@@ -51,6 +51,23 @@
border-radius: 8px;
border: 1px solid var(--border-color);
margin-top: 20px;
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+ }
+
+ .item-title {
+ font-size: 2rem;
+ font-weight: bold;
+ margin-bottom: 20px;
+ }
+
+ .item-description {
+ font-size: 1.2rem;
+ margin-bottom: 20px;
+ }
+
+ .item-details {
+ font-size: 1rem;
+ color: var(--text-secondary);
}
.btn-primary {
@@ -96,9 +113,15 @@ {{ item.title }}
Location: {{ item.location }}
Quantity:
-
-
-
+
Created at: {{ item.created_at.strftime('%Y-%m-%d %H:%M') }}
Back to Inventory