From a649c509c2798bc79e19c623355667112d7edda5 Mon Sep 17 00:00:00 2001 From: xiaomai Date: Sun, 12 Apr 2026 18:26:36 +0800 Subject: [PATCH] feat(ui): integrate Nuxt UI and rebuild layout and login pages Wrap application in UApp and apply base UI styles Build responsive default layout with navigation and footer Implement staff login form with validation and toast notifications Restructure index page routing --- .gitignore | 3 + app.config.ts | 8 ++ app/app.vue | 4 +- app/assets/css/main.css | 12 +- app/layouts/default.vue | 36 +++++- app/pages/index.vue | 229 ++++++++++++++++++++++++++++++++++++++ app/pages/index/index.vue | 183 +----------------------------- app/pages/login/index.vue | 82 ++++++++++++-- 8 files changed, 360 insertions(+), 197 deletions(-) create mode 100644 app.config.ts create mode 100644 app/pages/index.vue diff --git a/.gitignore b/.gitignore index 4a7f73a..91658b3 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ logs .env .env.* !.env.example + +.agents/ +skills-lock.json \ No newline at end of file diff --git a/app.config.ts b/app.config.ts new file mode 100644 index 0000000..4a20171 --- /dev/null +++ b/app.config.ts @@ -0,0 +1,8 @@ +export default defineAppConfig({ + ui: { + colors: { + primary: 'amber', + neutral: 'stone' + } + } +}) diff --git a/app/app.vue b/app/app.vue index 8e7f33e..5acf3c1 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,7 +1,7 @@ diff --git a/app/assets/css/main.css b/app/assets/css/main.css index a461c50..16031fb 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -1 +1,11 @@ -@import "tailwindcss"; \ No newline at end of file +@import "tailwindcss"; +@import "@nuxt/ui"; + +html { + scroll-behavior: smooth; +} + +body { + min-height: 100dvh; + background: var(--ui-bg); +} diff --git a/app/layouts/default.vue b/app/layouts/default.vue index ac79eb1..de025ab 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -1,11 +1,37 @@ - - \ No newline at end of file diff --git a/app/pages/index.vue b/app/pages/index.vue new file mode 100644 index 0000000..192016c --- /dev/null +++ b/app/pages/index.vue @@ -0,0 +1,229 @@ + + + diff --git a/app/pages/index/index.vue b/app/pages/index/index.vue index 7f477a0..1b0a775 100644 --- a/app/pages/index/index.vue +++ b/app/pages/index/index.vue @@ -1,184 +1,3 @@ - - - - \ No newline at end of file diff --git a/app/pages/login/index.vue b/app/pages/login/index.vue index b9b4da4..a8e6774 100644 --- a/app/pages/login/index.vue +++ b/app/pages/login/index.vue @@ -1,13 +1,81 @@ - - \ No newline at end of file