diff --git a/database.db b/database.db index aa6b3e9..43ae369 100644 Binary files a/database.db and b/database.db differ diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..fd0bd4a --- /dev/null +++ b/static/style.css @@ -0,0 +1,70 @@ +body { + font-family: Arial, Helvetica, sans-serif; + background-color: #f4f6f9; + margin: 0; + padding: 0; +} + +.container { + width: 80%; + margin: 40px auto; + background: white; + padding: 25px; + border-radius: 10px; + box-shadow: 0 4px 12px rgba(0,0,0,0.1); +} + +h1, h2, h3 { + margin-top: 0; +} + +table { + width: 100%; + border-collapse: collapse; + margin-top: 20px; +} + +thead { + background-color: #2c3e50; + color: white; +} + +th, td { + padding: 12px; + text-align: left; +} + +tr:nth-child(even) { + background-color: #f2f2f2; +} + +input { + padding: 6px; + border-radius: 5px; + border: 1px solid #ccc; +} + +button { + background-color: #3498db; + color: white; + border: none; + padding: 8px 14px; + border-radius: 6px; + cursor: pointer; + transition: 0.2s; +} + +button:hover { + background-color: #2980b9; +} + +a { + text-decoration: none; + color: #3498db; +} + +.header { + display: flex; + justify-content: space-between; + align-items: center; +} \ No newline at end of file diff --git a/templates/admin.html b/templates/admin.html index cdad970..ad50940 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -1,22 +1,37 @@ -

Admin Panel

+ + + + Admin Panel + + + +
+
+

Admin Panel

+
+ Logged in as {{ session["user"] }} | + Logout +
+
-

Add Toner

- - - +

Add Toner

+ + + -

Update Inventory

- - - - - - - - - -
NameQuantityUpdate
+

Inventory

+ + + + + + + + + +
TonerQuantityUpdate
+
-Logout - - \ No newline at end of file + + + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 173423d..2321c26 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,19 +2,32 @@ Toner Inventory + -

Toner Inventory

- - - - - - - - -
NameQuantity
+
+
+

Toner Inventory

- + {% if session.get("user") %} +
+ Logged in as {{ session["user"] }} | + Logout +
+ {% endif %} +
+ + + + + + + + + +
TonerQuantity
+
+ + \ No newline at end of file diff --git a/templates/login.html b/templates/login.html index 5816176..81bae9b 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,6 +1,18 @@ -
-

Admin Login

- - - -
\ No newline at end of file + + + + Login + + + +
+

Admin Login

+ +
+ + + +
+
+ + \ No newline at end of file