From 1f521ec1d28926eaad55d75e66841bfdf19db45d Mon Sep 17 00:00:00 2001 From: Shiro-Nek0 Date: Thu, 26 Feb 2026 22:33:38 -0300 Subject: [PATCH] colors and prompts fix --- static/styleIndex.css | 130 --------- static/styleLogin.css | 98 ------- templates/index.html | 629 +++++++++++++++++++++++++++++++++++------- templates/login.html | 116 ++++++-- 4 files changed, 629 insertions(+), 344 deletions(-) delete mode 100644 static/styleIndex.css delete mode 100644 static/styleLogin.css diff --git a/static/styleIndex.css b/static/styleIndex.css deleted file mode 100644 index c44951a..0000000 --- a/static/styleIndex.css +++ /dev/null @@ -1,130 +0,0 @@ -:root { - --bg: #ebedef; - --card-bg: #ffffff; - --text-main: #2e3338; - --text-muted: #4f5660; - --border: #e3e5e8; - --header-bg: #ffffff; - --input-bg: #e3e5e8; - --table-head: #f2f3f5; - --price-color: #2e3338; - --accent: #5865F2; - --accent-hover: #4752c4; - --danger: #ed4245; -} - -[data-theme="dark"] { - --bg: #36393f; - --card-bg: #2f3136; - --text-main: #ffffff; - --text-muted: #b9bbbe; - --border: #202225; - --header-bg: #202225; - --input-bg: #202225; - --table-head: #292b2f; - --price-color: #ffffff; -} - -body { - font-family: 'gg sans', 'Segoe UI', sans-serif; - display: flex; - flex-direction: column; - padding: 20px; - background: var(--bg); - color: var(--text-main); - margin: 0; - transition: background 0.2s; -} - -.header-bar { - display: flex; - justify-content: space-between; - align-items: center; - background: var(--header-bg); - padding: 0 20px; - border-radius: 8px; - margin-bottom: 15px; - height: 50px; - flex-shrink: 0; -} - -.main-container { display: flex; gap: 20px; } -.column { flex: 1; min-width: 0; } /* min-width: 0 prevents flex blow-out */ - -.card { - background: var(--card-bg); - padding: 20px; - border-radius: 8px; - box-shadow: 0 2px 10px rgba(0,0,0,0.1); - margin-bottom: 20px; - border: 1px solid var(--border); - text-align: center; -} - -#display-img { max-width: 200px; max-height: 200px; object-fit: contain; margin-bottom: 10px; } -.price-tag { font-size: 2.5em; font-weight: 800; margin: 5px 0; } - -input { - display: block; - width: 100%; - padding: 10px; - margin: 10px 0; - border: none; - border-radius: 4px; - background: var(--input-bg); - color: var(--text-main); - box-sizing: border-box; -} - -button { padding: 10px 15px; cursor: pointer; border-radius: 4px; border: none; font-weight: 600; } -.btn-save { background: var(--accent); color: white; width: 100%; } -.btn-edit { background: var(--accent); color: white; margin-right: 5px; } -.btn-del { background: var(--danger); color: white; } - -/* Table Handling */ -.table-wrapper { overflow-x: auto; width: 100%; border-radius: 8px; } -table { width: 100%; border-collapse: collapse; min-width: 450px; } -th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; } -th { background: var(--table-head); color: var(--text-muted); font-size: 0.75em; text-transform: uppercase; } - -input[type="checkbox"] { width: 20px !important; height: 20px !important; margin: 0; cursor: pointer; display: inline-block; } - -/* Bulk Actions Bar */ -.bulk-actions { - display: flex; - background: var(--accent); - color: white; - padding: 10px 15px; - border-radius: 8px; - margin-bottom: 10px; - justify-content: space-between; - align-items: center; - min-height: 55px; -} -.bulk-controls { display: flex; align-items: center; gap: 8px; } -.bulk-actions input#bulk-price-input { width: 100px !important; margin: 0 !important; height: 35px !important; background: rgba(0,0,0,0.2) !important; color: white !important; border: 1px solid rgba(255,255,255,0.2) !important; } - -#new-product-prompt { - display: none; - background: var(--accent); - color: white; - padding: 10px 15px; - border-radius: 8px; - margin-bottom: 10px; - justify-content: space-between; - align-items: center; -} - -/* Responsive Overrides */ -@media (max-width: 900px) { - .main-container { flex-direction: column; } - .header-bar span { display: none; } /* Hide user text on tiny screens */ -} - -@media (max-width: 600px) { - body { padding: 10px; } - th, td { padding: 8px 5px; font-size: 0.8em; } - .btn-edit, .btn-del { padding: 5px; font-size: 0.75em; } - /* Hide barcode text column on mobile to fit */ - td:nth-child(2), th:nth-child(2) { display: none; } -} \ No newline at end of file diff --git a/static/styleLogin.css b/static/styleLogin.css deleted file mode 100644 index 1bfc6e7..0000000 --- a/static/styleLogin.css +++ /dev/null @@ -1,98 +0,0 @@ -:root { - /* Discord Branding Colors */ - --bg: #5865F2; - --card-bg: #ffffff; - --text: #2e3338; - --input-bg: #e3e5e8; - --input-border: transparent; - --accent: #5865F2; - --accent-hover: #4752c4; - --error: #ed4245; -} - -[data-theme="dark"] { - /* Discord Dark Mode */ - --bg: #36393f; - --card-bg: #2f3136; - --text: #ffffff; - --input-bg: #202225; - --input-border: transparent; -} - -body { - font-family: 'gg sans', 'Segoe UI', Tahoma, sans-serif; - display: flex; - justify-content: center; - align-items: center; - height: 100vh; - background: var(--bg); - margin: 0; - transition: background 0.2s; -} - -.login-box { - background: var(--card-bg); - padding: 32px; - border-radius: 8px; - box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); - text-align: center; - color: var(--text); - width: 400px; - transition: background 0.2s, color 0.2s; -} - -h2 { - margin-top: 0; - font-weight: 700; - font-size: 24px; -} - -p.sub-text { - color: var(--text); - opacity: 0.7; - margin-bottom: 20px; -} - -input { - display: block; - width: 100%; - margin: 16px 0; - padding: 12px; - border: none; - border-radius: 4px; - background: var(--input-bg); - color: var(--text); - box-sizing: border-box; - font-size: 16px; -} - -input:focus { - outline: 2px solid var(--accent); -} - -button { - background: var(--accent); - color: white; - border: none; - padding: 12px 24px; - border-radius: 4px; - cursor: pointer; - font-size: 16px; - font-weight: 600; - width: 100%; - margin-top: 10px; - transition: background 0.2s; -} - -button:hover { - background: var(--accent-hover); -} - -.error-msg { - background: var(--error); - color: white; - padding: 8px; - border-radius: 4px; - font-size: 0.9em; - margin-bottom: 15px; -} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index e72ef5d..0677af1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,96 +1,471 @@ - + + SekiPOS - Inventory + + + - + + -
-

SekiPOS v1.5

-
- - Salir -
-
-
-
-
- Nuevo: - -
+ + -
-
-
- 0 listos -
- - - + +
+
+ + +
+ + +
+ Nuevo: + +
+ + +
+

+ Último Escaneado

+ product +
Esperando scan...
+
$0
+

+
+ + +
+
Editar / Crear
+
+ + + + + +
+
+
+ + +
+
+ + +
+ 0 seleccionados +
+ + + +
+
+ + + + + +
+ + + + + + + + + + + + {% for p in products %} + + + + + + + + {% endfor %} + +
+ + CódigoNombrePrecioAcciones
+ + {{ p[0] }} + {{ p[1] }} + + +
+
+ +
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/templates/login.html b/templates/login.html index ca2bbdf..eca2918 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,35 +1,119 @@ - + + SekiPOS Login - + + -