From bf58a5ad10e4fffb97d1ad0d59b298f3c983ad03 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Tue, 12 May 2026 18:01:10 -0500 Subject: [PATCH 01/19] init refactor --- package-lock.json | 20 - package.json | 1 - src/app.css | 24 + .../(authentication)/login/+page.svelte | 721 +++--------------- .../(authentication)/recoverpw/+page.svelte | 143 ++-- .../(authentication)/register/+page.svelte | 254 +++--- src/routes/(home)/+page.svelte | 67 +- src/routes/+layout.svelte | 16 +- vite.config.js | 4 +- 9 files changed, 436 insertions(+), 814 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5106d308..1289ff8d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,6 @@ "@vincjo/datatables": "^2.8.0", "apexcharts": "^3.44.2", "axios": "^1.6.2", - "bootstrap": "^5.3.2", "chart.js": "^4.4.0", "drawflow": "^0.0.59", "flatpickr": "^4.6.13", @@ -2458,25 +2457,6 @@ "dev": true, "license": "MIT" }, - "node_modules/bootstrap": { - "version": "5.3.8", - "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.8.tgz", - "integrity": "sha512-HP1SZDqaLDPwsNiqRqi5NcP0SSXciX2s9E+RyqJIIqGo+vJeN5AJVM98CXmW/Wux0nQ5L7jeWUdplCEf0Ee+tg==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/twbs" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/bootstrap" - } - ], - "license": "MIT", - "peerDependencies": { - "@popperjs/core": "^2.11.8" - } - }, "node_modules/brace-expansion": { "version": "1.1.12", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", diff --git a/package.json b/package.json index bca68991..43e7d302 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,6 @@ "@vincjo/datatables": "^2.8.0", "apexcharts": "^3.44.2", "axios": "^1.6.2", - "bootstrap": "^5.3.2", "chart.js": "^4.4.0", "drawflow": "^0.0.59", "flatpickr": "^4.6.13", diff --git a/src/app.css b/src/app.css index 3d552a61..8cab45fa 100644 --- a/src/app.css +++ b/src/app.css @@ -1,2 +1,26 @@ @import "tailwindcss"; +@plugin "@tailwindcss/forms"; +@plugin "@tailwindcss/typography"; + +@theme { + --font-sans: 'Poppins', ui-sans-serif, system-ui, sans-serif; + + /* Brand colors (overridable at runtime via PUBLIC_PRIMARY_COLOR / PUBLIC_SECONDARY_COLOR) */ + --color-primary: #6f42c1; + --color-primary-hover: color-mix(in srgb, var(--color-primary), black 20%); + --color-secondary: #74788d; + --color-secondary-hover: color-mix(in srgb, var(--color-secondary), black 20%); + + /* Semantic state colors (matched to original Skote palette) */ + --color-success: #34c38f; + --color-info: #50a5f1; + --color-warning: #f1b44c; + --color-danger: #f46a6a; + + /* Neutrals */ + --color-light: #eff2f7; + --color-dark: #343a40; + --color-muted: #74788d; +} + diff --git a/src/routes/(authentication)/login/+page.svelte b/src/routes/(authentication)/login/+page.svelte index aa6b8e13..38fb3bb4 100644 --- a/src/routes/(authentication)/login/+page.svelte +++ b/src/routes/(authentication)/login/+page.svelte @@ -82,48 +82,55 @@ -
-
-
-
-
-
- -
-
-
- -
- Logo +
+
+
+
+
+ + +
+ + +
+
+ -
-

{$_('Welcome Back!')}

-

Sign in to continue to {PUBLIC_BRAND_NAME}

-
+

{$_('Welcome Back!')}

+

Sign in to continue to {PUBLIC_BRAND_NAME}

-
- Login Illustration +
+ Login Illustration
- -
+ +
{#if isOpen} - + {/if} -
-
- -
- + + +
+ +
+
-
- -
- + +
+ +
+
-
- -
- -
@@ -247,346 +258,21 @@
diff --git a/src/routes/(authentication)/recoverpw/+page.svelte b/src/routes/(authentication)/recoverpw/+page.svelte index a9eb2da9..76b63fee 100644 --- a/src/routes/(authentication)/recoverpw/+page.svelte +++ b/src/routes/(authentication)/recoverpw/+page.svelte @@ -5,71 +5,116 @@ -