@beknurakhmed/webforge-cli 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +226 -226
- package/package.json +63 -63
- package/templates/extras/typescript/deps.json +6 -0
- package/templates/extras/typescript/react/tsconfig.json +21 -0
- package/templates/extras/typescript/vanilla/tsconfig.json +19 -0
- package/templates/extras/typescript/vue/tsconfig.json +20 -0
- package/templates/overlays/blog/angular/src/app/app.component.ts +100 -0
- package/templates/overlays/blog/angular/src/app/app.routes.ts +12 -0
- package/templates/overlays/blog/angular/src/app/components/blog-sidebar.component.ts +115 -0
- package/templates/overlays/blog/angular/src/app/components/post-card.component.ts +94 -0
- package/templates/overlays/blog/angular/src/app/pages/about.component.ts +114 -0
- package/templates/overlays/blog/angular/src/app/pages/category.component.ts +141 -0
- package/templates/overlays/blog/angular/src/app/pages/home.component.ts +143 -0
- package/templates/overlays/blog/angular/src/app/pages/post-detail.component.ts +196 -0
- package/templates/overlays/blog/angular/src/main.ts +10 -0
- package/templates/overlays/blog/nextjs/src/app/about/page.tsx +55 -0
- package/templates/overlays/blog/nextjs/src/app/category/[slug]/page.tsx +52 -0
- package/templates/overlays/blog/nextjs/src/app/components/BlogFooter.tsx +46 -0
- package/templates/overlays/blog/nextjs/src/app/components/BlogHeader.tsx +37 -0
- package/templates/overlays/blog/nextjs/src/app/components/BlogSidebar.tsx +56 -0
- package/templates/overlays/blog/nextjs/src/app/components/PostCard.tsx +42 -0
- package/templates/overlays/blog/nextjs/src/app/globals.css +158 -0
- package/templates/overlays/blog/nextjs/src/app/layout.tsx +20 -0
- package/templates/overlays/blog/nextjs/src/app/page.tsx +36 -0
- package/templates/overlays/blog/nextjs/src/app/post/[id]/page.tsx +78 -0
- package/templates/overlays/blog/nuxt/app.vue +27 -0
- package/templates/overlays/blog/nuxt/components/BlogFooter.vue +48 -0
- package/templates/overlays/blog/nuxt/components/BlogHeader.vue +55 -0
- package/templates/overlays/blog/nuxt/components/BlogSidebar.vue +144 -0
- package/templates/overlays/blog/nuxt/components/PostCard.vue +125 -0
- package/templates/overlays/blog/nuxt/layouts/default.vue +25 -0
- package/templates/overlays/blog/nuxt/pages/about.vue +161 -0
- package/templates/overlays/blog/nuxt/pages/category/[slug].vue +80 -0
- package/templates/overlays/blog/nuxt/pages/index.vue +54 -0
- package/templates/overlays/blog/nuxt/pages/post/[id].vue +158 -0
- package/templates/overlays/blog/react/src/App.css +58 -18
- package/templates/overlays/blog/react/src/App.tsx +16 -31
- package/templates/overlays/blog/react/src/components/BlogFooter.tsx +4 -2
- package/templates/overlays/blog/react/src/components/BlogHeader.tsx +12 -6
- package/templates/overlays/blog/react/src/components/BlogSidebar.tsx +9 -8
- package/templates/overlays/blog/react/src/components/Layout.tsx +17 -0
- package/templates/overlays/blog/react/src/components/PostCard.tsx +30 -0
- package/templates/overlays/blog/react/src/data/posts.ts +22 -0
- package/templates/overlays/blog/react/src/pages/About.tsx +33 -0
- package/templates/overlays/blog/react/src/pages/Category.tsx +29 -0
- package/templates/overlays/blog/react/src/pages/Home.tsx +18 -0
- package/templates/overlays/blog/react/src/pages/PostDetail.tsx +38 -0
- package/templates/overlays/blog/vanilla/src/main.ts +112 -0
- package/templates/overlays/blog/vanilla/src/pages/about.ts +106 -0
- package/templates/overlays/blog/vanilla/src/pages/category.ts +86 -0
- package/templates/overlays/blog/vanilla/src/pages/home.ts +103 -0
- package/templates/overlays/blog/vanilla/src/pages/post-detail.ts +108 -0
- package/templates/overlays/blog/vanilla/src/router.ts +33 -0
- package/templates/overlays/blog/vanilla/src/style.css +677 -0
- package/templates/overlays/blog/vue/src/App.vue +29 -0
- package/templates/overlays/blog/vue/src/components/BlogFooter.vue +8 -0
- package/templates/overlays/blog/vue/src/components/BlogHeader.vue +14 -0
- package/templates/overlays/blog/vue/src/components/BlogSidebar.vue +31 -0
- package/templates/overlays/blog/vue/src/components/PostCard.vue +17 -0
- package/templates/overlays/blog/vue/src/data.ts +82 -0
- package/templates/overlays/blog/vue/src/main.ts +6 -0
- package/templates/overlays/blog/vue/src/pages/About.vue +17 -0
- package/templates/overlays/blog/vue/src/pages/Category.vue +32 -0
- package/templates/overlays/blog/vue/src/pages/Home.vue +14 -0
- package/templates/overlays/blog/vue/src/pages/PostDetail.vue +22 -0
- package/templates/overlays/blog/vue/src/router.ts +19 -0
- package/templates/overlays/blog/vue/src/style.css +288 -0
- package/templates/overlays/crm/angular/src/app/app.component.ts +110 -0
- package/templates/overlays/crm/angular/src/app/app.routes.ts +12 -0
- package/templates/overlays/crm/angular/src/app/components/contacts-table.component.ts +98 -0
- package/templates/overlays/crm/angular/src/app/components/stats-cards.component.ts +63 -0
- package/templates/overlays/crm/angular/src/app/pages/contacts.component.ts +70 -0
- package/templates/overlays/crm/angular/src/app/pages/dashboard-home.component.ts +38 -0
- package/templates/overlays/crm/angular/src/app/pages/deals.component.ts +145 -0
- package/templates/overlays/crm/angular/src/app/pages/settings.component.ts +103 -0
- package/templates/overlays/crm/angular/src/main.ts +8 -0
- package/templates/overlays/crm/nextjs/src/app/components/ContactsTable.tsx +69 -0
- package/templates/overlays/crm/nextjs/src/app/components/Sidebar.tsx +45 -0
- package/templates/overlays/crm/nextjs/src/app/components/StatsCards.tsx +31 -0
- package/templates/overlays/crm/nextjs/src/app/contacts/page.tsx +111 -0
- package/templates/overlays/crm/nextjs/src/app/deals/page.tsx +111 -0
- package/templates/overlays/crm/nextjs/src/app/globals.css +165 -0
- package/templates/overlays/crm/nextjs/src/app/layout.tsx +20 -0
- package/templates/overlays/crm/nextjs/src/app/page.tsx +43 -0
- package/templates/overlays/crm/nextjs/src/app/settings/page.tsx +91 -0
- package/templates/overlays/crm/nuxt/app.vue +27 -0
- package/templates/overlays/crm/nuxt/components/ContactsTable.vue +140 -0
- package/templates/overlays/crm/nuxt/components/CrmSidebar.vue +97 -0
- package/templates/overlays/crm/nuxt/components/StatsCards.vue +63 -0
- package/templates/overlays/crm/nuxt/layouts/default.vue +21 -0
- package/templates/overlays/crm/nuxt/pages/contacts.vue +79 -0
- package/templates/overlays/crm/nuxt/pages/deals.vue +229 -0
- package/templates/overlays/crm/nuxt/pages/index.vue +186 -0
- package/templates/overlays/crm/nuxt/pages/settings.vue +233 -0
- package/templates/overlays/crm/react/src/App.css +49 -20
- package/templates/overlays/crm/react/src/App.tsx +16 -41
- package/templates/overlays/crm/react/src/components/ContactsTable.tsx +8 -8
- package/templates/overlays/crm/react/src/components/Layout.tsx +15 -0
- package/templates/overlays/crm/react/src/components/Sidebar.tsx +20 -14
- package/templates/overlays/crm/react/src/components/StatsCards.tsx +10 -12
- package/templates/overlays/crm/react/src/data/contacts.ts +19 -0
- package/templates/overlays/crm/react/src/pages/Contacts.tsx +32 -0
- package/templates/overlays/crm/react/src/pages/DashboardHome.tsx +44 -0
- package/templates/overlays/crm/react/src/pages/Deals.tsx +48 -0
- package/templates/overlays/crm/react/src/pages/Settings.tsx +35 -0
- package/templates/overlays/crm/vanilla/src/main.ts +95 -0
- package/templates/overlays/crm/vanilla/src/pages/contacts.ts +87 -0
- package/templates/overlays/crm/vanilla/src/pages/dashboard-home.ts +121 -0
- package/templates/overlays/crm/vanilla/src/pages/deals.ts +116 -0
- package/templates/overlays/crm/vanilla/src/pages/settings.ts +129 -0
- package/templates/overlays/crm/vanilla/src/router.ts +33 -0
- package/templates/overlays/crm/vanilla/src/style.css +766 -0
- package/templates/overlays/crm/vue/src/App.vue +25 -0
- package/templates/overlays/crm/vue/src/components/ContactsTable.vue +30 -0
- package/templates/overlays/crm/vue/src/components/CrmSidebar.vue +14 -0
- package/templates/overlays/crm/vue/src/components/StatsCards.vue +23 -0
- package/templates/overlays/crm/vue/src/data.ts +38 -0
- package/templates/overlays/crm/vue/src/main.ts +6 -0
- package/templates/overlays/crm/vue/src/pages/Contacts.vue +25 -0
- package/templates/overlays/crm/vue/src/pages/DashboardHome.vue +19 -0
- package/templates/overlays/crm/vue/src/pages/Deals.vue +34 -0
- package/templates/overlays/crm/vue/src/pages/Settings.vue +33 -0
- package/templates/overlays/crm/vue/src/router.ts +19 -0
- package/templates/overlays/crm/vue/src/style.css +272 -0
- package/templates/overlays/dashboard/angular/src/app/app.component.ts +135 -0
- package/templates/overlays/dashboard/angular/src/app/app.routes.ts +24 -0
- package/templates/overlays/dashboard/angular/src/app/components/chart-placeholder.component.ts +86 -0
- package/templates/overlays/dashboard/angular/src/app/components/data-table.component.ts +140 -0
- package/templates/overlays/dashboard/angular/src/app/components/kpi-cards.component.ts +120 -0
- package/templates/overlays/dashboard/angular/src/app/pages/analytics.component.ts +138 -0
- package/templates/overlays/dashboard/angular/src/app/pages/overview.component.ts +58 -0
- package/templates/overlays/dashboard/angular/src/app/pages/settings.component.ts +128 -0
- package/templates/overlays/dashboard/angular/src/app/pages/users.component.ts +153 -0
- package/templates/overlays/dashboard/angular/src/main.ts +10 -0
- package/templates/overlays/dashboard/nextjs/src/app/analytics/page.tsx +76 -0
- package/templates/overlays/dashboard/nextjs/src/app/components/ChartPlaceholder.tsx +58 -0
- package/templates/overlays/dashboard/nextjs/src/app/components/DataTable.tsx +60 -0
- package/templates/overlays/dashboard/nextjs/src/app/components/KPICards.tsx +31 -0
- package/templates/overlays/dashboard/nextjs/src/app/components/Sidebar.tsx +45 -0
- package/templates/overlays/dashboard/nextjs/src/app/globals.css +150 -0
- package/templates/overlays/dashboard/nextjs/src/app/layout.tsx +20 -0
- package/templates/overlays/dashboard/nextjs/src/app/page.tsx +20 -0
- package/templates/overlays/dashboard/nextjs/src/app/settings/page.tsx +118 -0
- package/templates/overlays/dashboard/nextjs/src/app/users/page.tsx +99 -0
- package/templates/overlays/dashboard/nuxt/app.vue +27 -0
- package/templates/overlays/dashboard/nuxt/components/ChartPlaceholder.vue +73 -0
- package/templates/overlays/dashboard/nuxt/components/DashSidebar.vue +97 -0
- package/templates/overlays/dashboard/nuxt/components/DataTable.vue +126 -0
- package/templates/overlays/dashboard/nuxt/components/KPICards.vue +76 -0
- package/templates/overlays/dashboard/nuxt/layouts/default.vue +21 -0
- package/templates/overlays/dashboard/nuxt/pages/analytics.vue +94 -0
- package/templates/overlays/dashboard/nuxt/pages/index.vue +49 -0
- package/templates/overlays/dashboard/nuxt/pages/settings.vue +239 -0
- package/templates/overlays/dashboard/nuxt/pages/users.vue +227 -0
- package/templates/overlays/dashboard/react/src/App.css +50 -24
- package/templates/overlays/dashboard/react/src/App.tsx +16 -22
- package/templates/overlays/dashboard/react/src/components/ChartPlaceholder.tsx +5 -2
- package/templates/overlays/dashboard/react/src/components/DataTable.tsx +9 -1
- package/templates/overlays/dashboard/react/src/components/KPICards.tsx +4 -4
- package/templates/overlays/dashboard/react/src/components/Layout.tsx +13 -0
- package/templates/overlays/dashboard/react/src/components/Sidebar.tsx +15 -10
- package/templates/overlays/dashboard/react/src/pages/Analytics.tsx +33 -0
- package/templates/overlays/dashboard/react/src/pages/Overview.tsx +23 -0
- package/templates/overlays/dashboard/react/src/pages/Settings.tsx +41 -0
- package/templates/overlays/dashboard/react/src/pages/Users.tsx +57 -0
- package/templates/overlays/dashboard/vanilla/src/main.ts +101 -0
- package/templates/overlays/dashboard/vanilla/src/pages/analytics.ts +99 -0
- package/templates/overlays/dashboard/vanilla/src/pages/overview.ts +60 -0
- package/templates/overlays/dashboard/vanilla/src/pages/settings.ts +118 -0
- package/templates/overlays/dashboard/vanilla/src/pages/users.ts +80 -0
- package/templates/overlays/dashboard/vanilla/src/router.ts +33 -0
- package/templates/overlays/dashboard/vanilla/src/style.css +654 -0
- package/templates/overlays/dashboard/vue/src/App.vue +12 -0
- package/templates/overlays/dashboard/vue/src/components/ChartPlaceholder.vue +34 -0
- package/templates/overlays/dashboard/vue/src/components/DashSidebar.vue +19 -0
- package/templates/overlays/dashboard/vue/src/components/DataTable.vue +34 -0
- package/templates/overlays/dashboard/vue/src/components/KPICards.vue +18 -0
- package/templates/overlays/dashboard/vue/src/main.ts +6 -0
- package/templates/overlays/dashboard/vue/src/pages/Analytics.vue +32 -0
- package/templates/overlays/dashboard/vue/src/pages/Overview.vue +17 -0
- package/templates/overlays/dashboard/vue/src/pages/Settings.vue +65 -0
- package/templates/overlays/dashboard/vue/src/pages/Users.vue +44 -0
- package/templates/overlays/dashboard/vue/src/router.ts +15 -0
- package/templates/overlays/dashboard/vue/src/style.css +447 -0
- package/templates/overlays/ecommerce/angular/src/app/app.component.ts +147 -0
- package/templates/overlays/ecommerce/angular/src/app/app.routes.ts +10 -0
- package/templates/overlays/ecommerce/angular/src/app/components/product-card.component.ts +94 -0
- package/templates/overlays/ecommerce/angular/src/app/data/products.ts +75 -0
- package/templates/overlays/ecommerce/angular/src/app/pages/cart.component.ts +169 -0
- package/templates/overlays/ecommerce/angular/src/app/pages/home.component.ts +96 -0
- package/templates/overlays/ecommerce/angular/src/app/pages/product-detail.component.ts +124 -0
- package/templates/overlays/ecommerce/angular/src/main.ts +10 -0
- package/templates/overlays/ecommerce/nextjs/src/app/cart/page.tsx +74 -0
- package/templates/overlays/ecommerce/nextjs/src/app/components/CartProvider.tsx +80 -0
- package/templates/overlays/ecommerce/nextjs/src/app/components/Footer.tsx +44 -0
- package/templates/overlays/ecommerce/nextjs/src/app/components/Header.tsx +27 -0
- package/templates/overlays/ecommerce/nextjs/src/app/components/ProductCard.tsx +23 -0
- package/templates/overlays/ecommerce/nextjs/src/app/globals.css +144 -0
- package/templates/overlays/ecommerce/nextjs/src/app/layout.tsx +23 -0
- package/templates/overlays/ecommerce/nextjs/src/app/page.tsx +73 -0
- package/templates/overlays/ecommerce/nextjs/src/app/product/[id]/page.tsx +63 -0
- package/templates/overlays/ecommerce/nuxt/app.vue +27 -0
- package/templates/overlays/ecommerce/nuxt/components/ProductCard.vue +77 -0
- package/templates/overlays/ecommerce/nuxt/components/StoreFooter.vue +47 -0
- package/templates/overlays/ecommerce/nuxt/components/StoreHeader.vue +91 -0
- package/templates/overlays/ecommerce/nuxt/layouts/default.vue +43 -0
- package/templates/overlays/ecommerce/nuxt/pages/cart.vue +268 -0
- package/templates/overlays/ecommerce/nuxt/pages/index.vue +154 -0
- package/templates/overlays/ecommerce/nuxt/pages/product/[id].vue +211 -0
- package/templates/overlays/ecommerce/react/src/App.css +71 -59
- package/templates/overlays/ecommerce/react/src/App.tsx +18 -44
- package/templates/overlays/ecommerce/react/src/components/Footer.tsx +2 -2
- package/templates/overlays/ecommerce/react/src/components/Header.tsx +15 -14
- package/templates/overlays/ecommerce/react/src/components/Layout.tsx +20 -0
- package/templates/overlays/ecommerce/react/src/components/ProductCard.tsx +28 -0
- package/templates/overlays/ecommerce/react/src/data/products.ts +23 -0
- package/templates/overlays/ecommerce/react/src/pages/Cart.tsx +51 -0
- package/templates/overlays/ecommerce/react/src/pages/Home.tsx +37 -0
- package/templates/overlays/ecommerce/react/src/pages/ProductDetail.tsx +38 -0
- package/templates/overlays/ecommerce/vanilla/src/main.ts +73 -0
- package/templates/overlays/ecommerce/vanilla/src/pages/cart.ts +73 -0
- package/templates/overlays/ecommerce/vanilla/src/pages/home.ts +71 -0
- package/templates/overlays/ecommerce/vanilla/src/pages/product-detail.ts +81 -0
- package/templates/overlays/ecommerce/vanilla/src/router.ts +33 -0
- package/templates/overlays/ecommerce/vanilla/src/style.css +522 -0
- package/templates/overlays/ecommerce/vue/src/App.vue +17 -32
- package/templates/overlays/ecommerce/vue/src/components/ProductCard.vue +25 -0
- package/templates/overlays/ecommerce/vue/src/components/StoreFooter.vue +6 -12
- package/templates/overlays/ecommerce/vue/src/components/StoreHeader.vue +5 -23
- package/templates/overlays/ecommerce/vue/src/data.ts +23 -0
- package/templates/overlays/ecommerce/vue/src/main.ts +6 -0
- package/templates/overlays/ecommerce/vue/src/pages/Cart.vue +34 -0
- package/templates/overlays/ecommerce/vue/src/pages/Home.vue +27 -0
- package/templates/overlays/ecommerce/vue/src/pages/ProductDetail.vue +27 -0
- package/templates/overlays/ecommerce/vue/src/router.ts +13 -0
- package/templates/overlays/ecommerce/vue/src/style.css +359 -0
- package/templates/overlays/portfolio/angular/src/app/app.component.ts +102 -0
- package/templates/overlays/portfolio/angular/src/app/app.routes.ts +12 -0
- package/templates/overlays/portfolio/angular/src/app/components/project-card.component.ts +86 -0
- package/templates/overlays/portfolio/angular/src/app/components/skills-grid.component.ts +88 -0
- package/templates/overlays/portfolio/angular/src/app/pages/about.component.ts +122 -0
- package/templates/overlays/portfolio/angular/src/app/pages/contact.component.ts +131 -0
- package/templates/overlays/portfolio/angular/src/app/pages/home.component.ts +207 -0
- package/templates/overlays/portfolio/angular/src/app/pages/projects.component.ts +150 -0
- package/templates/overlays/portfolio/angular/src/main.ts +10 -0
- package/templates/overlays/portfolio/nextjs/src/app/about/page.tsx +70 -0
- package/templates/overlays/portfolio/nextjs/src/app/components/Footer.tsx +37 -0
- package/templates/overlays/portfolio/nextjs/src/app/components/Navbar.tsx +37 -0
- package/templates/overlays/portfolio/nextjs/src/app/components/ProjectCard.tsx +35 -0
- package/templates/overlays/portfolio/nextjs/src/app/components/SkillsGrid.tsx +45 -0
- package/templates/overlays/portfolio/nextjs/src/app/contact/page.tsx +138 -0
- package/templates/overlays/portfolio/nextjs/src/app/globals.css +197 -0
- package/templates/overlays/portfolio/nextjs/src/app/layout.tsx +20 -0
- package/templates/overlays/portfolio/nextjs/src/app/page.tsx +60 -0
- package/templates/overlays/portfolio/nextjs/src/app/projects/page.tsx +56 -0
- package/templates/overlays/portfolio/nuxt/app.vue +27 -0
- package/templates/overlays/portfolio/nuxt/components/PortfolioFooter.vue +49 -0
- package/templates/overlays/portfolio/nuxt/components/PortfolioNav.vue +77 -0
- package/templates/overlays/portfolio/nuxt/components/ProjectCard.vue +102 -0
- package/templates/overlays/portfolio/nuxt/components/SkillsGrid.vue +89 -0
- package/templates/overlays/portfolio/nuxt/layouts/default.vue +21 -0
- package/templates/overlays/portfolio/nuxt/pages/about.vue +179 -0
- package/templates/overlays/portfolio/nuxt/pages/contact.vue +278 -0
- package/templates/overlays/portfolio/nuxt/pages/index.vue +160 -0
- package/templates/overlays/portfolio/nuxt/pages/projects.vue +116 -0
- package/templates/overlays/portfolio/react/src/App.css +54 -27
- package/templates/overlays/portfolio/react/src/App.tsx +16 -12
- package/templates/overlays/portfolio/react/src/components/Layout.tsx +17 -0
- package/templates/overlays/portfolio/react/src/components/Navbar.tsx +30 -0
- package/templates/overlays/portfolio/react/src/components/PortfolioFooter.tsx +5 -3
- package/templates/overlays/portfolio/react/src/components/ProjectCard.tsx +24 -0
- package/templates/overlays/portfolio/react/src/components/SkillsGrid.tsx +20 -0
- package/templates/overlays/portfolio/react/src/data/projects.ts +25 -0
- package/templates/overlays/portfolio/react/src/pages/About.tsx +43 -0
- package/templates/overlays/portfolio/react/src/pages/Contact.tsx +48 -0
- package/templates/overlays/portfolio/react/src/pages/Home.tsx +44 -0
- package/templates/overlays/portfolio/react/src/pages/Projects.tsx +36 -0
- package/templates/overlays/portfolio/vanilla/src/main.ts +58 -0
- package/templates/overlays/portfolio/vanilla/src/pages/about.ts +146 -0
- package/templates/overlays/portfolio/vanilla/src/pages/contact.ts +159 -0
- package/templates/overlays/portfolio/vanilla/src/pages/home.ts +123 -0
- package/templates/overlays/portfolio/vanilla/src/pages/projects.ts +89 -0
- package/templates/overlays/portfolio/vanilla/src/router.ts +33 -0
- package/templates/overlays/portfolio/vanilla/src/style.css +909 -0
- package/templates/overlays/portfolio/vue/src/App.vue +25 -0
- package/templates/overlays/portfolio/vue/src/components/PortfolioFooter.vue +14 -0
- package/templates/overlays/portfolio/vue/src/components/PortfolioNav.vue +16 -0
- package/templates/overlays/portfolio/vue/src/components/ProjectCard.vue +18 -0
- package/templates/overlays/portfolio/vue/src/components/SkillsGrid.vue +14 -0
- package/templates/overlays/portfolio/vue/src/data.ts +78 -0
- package/templates/overlays/portfolio/vue/src/main.ts +6 -0
- package/templates/overlays/portfolio/vue/src/pages/About.vue +30 -0
- package/templates/overlays/portfolio/vue/src/pages/Contact.vue +47 -0
- package/templates/overlays/portfolio/vue/src/pages/Home.vue +27 -0
- package/templates/overlays/portfolio/vue/src/pages/Projects.vue +33 -0
- package/templates/overlays/portfolio/vue/src/router.ts +19 -0
- package/templates/overlays/portfolio/vue/src/style.css +404 -0
- package/templates/react/package.json +23 -19
- package/templates/react/tsconfig.json +20 -0
- package/templates/styling/tailwind/deps.json +7 -6
- package/templates/styling/tailwind/nextjs/postcss.config.mjs +7 -0
- package/templates/styling/tailwind/nextjs/src/app/globals.css +1 -0
- package/templates/styling/tailwind/react/src/index.css +1 -0
- package/templates/styling/tailwind/react/vite.config.ts +7 -0
- package/templates/styling/tailwind/vanilla/src/style.css +1 -0
- package/templates/styling/tailwind/vanilla/vite.config.ts +6 -0
- package/templates/styling/tailwind/vue/src/style.css +1 -0
- package/templates/styling/tailwind/vue/vite.config.ts +7 -0
- package/templates/vanilla/package.json +15 -14
- package/templates/vanilla/tsconfig.json +19 -0
- package/templates/vue/package.json +21 -18
- package/templates/vue/tsconfig.json +20 -0
- package/templates/overlays/blog/react/src/components/PostList.tsx +0 -27
- package/templates/overlays/crm/react/src/components/Filters.tsx +0 -22
- package/templates/overlays/ecommerce/react/src/components/Cart.tsx +0 -47
- package/templates/overlays/ecommerce/react/src/components/ProductGrid.tsx +0 -32
- package/templates/overlays/ecommerce/vue/src/components/CartPanel.vue +0 -46
- package/templates/overlays/ecommerce/vue/src/components/ProductGrid.vue +0 -40
- package/templates/overlays/portfolio/react/src/components/ContactForm.tsx +0 -29
- package/templates/overlays/portfolio/react/src/components/HeroSection.tsx +0 -24
- package/templates/overlays/portfolio/react/src/components/Projects.tsx +0 -33
- package/templates/overlays/portfolio/react/src/components/Skills.tsx +0 -27
- package/templates/styling/tailwind/config/postcss.config.js +0 -5
- package/templates/styling/tailwind/config/tailwind.config.js +0 -11
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
|
|
5
|
+
export default function SettingsPage() {
|
|
6
|
+
const [siteName, setSiteName] = useState('{{projectName}}');
|
|
7
|
+
const [email, setEmail] = useState('admin@example.com');
|
|
8
|
+
const [notifications, setNotifications] = useState(true);
|
|
9
|
+
const [darkMode, setDarkMode] = useState(false);
|
|
10
|
+
const [language, setLanguage] = useState('en');
|
|
11
|
+
const [timezone, setTimezone] = useState('UTC');
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div className="page">
|
|
15
|
+
<div className="page-header">
|
|
16
|
+
<h1>Settings</h1>
|
|
17
|
+
<p>Manage your application preferences and configuration.</p>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div className="settings-grid">
|
|
21
|
+
<div className="settings-card">
|
|
22
|
+
<h3>⚙️ General</h3>
|
|
23
|
+
<div className="form-group">
|
|
24
|
+
<label>Site Name</label>
|
|
25
|
+
<input type="text" value={siteName} onChange={(e) => setSiteName(e.target.value)} />
|
|
26
|
+
</div>
|
|
27
|
+
<div className="form-group">
|
|
28
|
+
<label>Admin Email</label>
|
|
29
|
+
<input type="email" value={email} onChange={(e) => setEmail(e.target.value)} />
|
|
30
|
+
</div>
|
|
31
|
+
<div className="form-group">
|
|
32
|
+
<label>Language</label>
|
|
33
|
+
<select value={language} onChange={(e) => setLanguage(e.target.value)}>
|
|
34
|
+
<option value="en">English</option>
|
|
35
|
+
<option value="es">Spanish</option>
|
|
36
|
+
<option value="fr">French</option>
|
|
37
|
+
<option value="de">German</option>
|
|
38
|
+
</select>
|
|
39
|
+
</div>
|
|
40
|
+
<div className="form-group">
|
|
41
|
+
<label>Timezone</label>
|
|
42
|
+
<select value={timezone} onChange={(e) => setTimezone(e.target.value)}>
|
|
43
|
+
<option value="UTC">UTC</option>
|
|
44
|
+
<option value="EST">Eastern Time</option>
|
|
45
|
+
<option value="PST">Pacific Time</option>
|
|
46
|
+
<option value="CET">Central European</option>
|
|
47
|
+
</select>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div className="settings-card">
|
|
52
|
+
<h3>🔔 Notifications</h3>
|
|
53
|
+
<div className="toggle-group">
|
|
54
|
+
<div className="toggle-row">
|
|
55
|
+
<div>
|
|
56
|
+
<p className="toggle-label">Email Notifications</p>
|
|
57
|
+
<p className="toggle-desc">Receive email updates about activity</p>
|
|
58
|
+
</div>
|
|
59
|
+
<button
|
|
60
|
+
className={`toggle-switch ${notifications ? 'active' : ''}`}
|
|
61
|
+
onClick={() => setNotifications(!notifications)}
|
|
62
|
+
>
|
|
63
|
+
<span className="toggle-knob" />
|
|
64
|
+
</button>
|
|
65
|
+
</div>
|
|
66
|
+
<div className="toggle-row">
|
|
67
|
+
<div>
|
|
68
|
+
<p className="toggle-label">Dark Mode</p>
|
|
69
|
+
<p className="toggle-desc">Use dark theme for the dashboard</p>
|
|
70
|
+
</div>
|
|
71
|
+
<button
|
|
72
|
+
className={`toggle-switch ${darkMode ? 'active' : ''}`}
|
|
73
|
+
onClick={() => setDarkMode(!darkMode)}
|
|
74
|
+
>
|
|
75
|
+
<span className="toggle-knob" />
|
|
76
|
+
</button>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<div className="settings-card">
|
|
82
|
+
<h3>🔒 Security</h3>
|
|
83
|
+
<div className="form-group">
|
|
84
|
+
<label>Current Password</label>
|
|
85
|
+
<input type="password" placeholder="Enter current password" />
|
|
86
|
+
</div>
|
|
87
|
+
<div className="form-group">
|
|
88
|
+
<label>New Password</label>
|
|
89
|
+
<input type="password" placeholder="Enter new password" />
|
|
90
|
+
</div>
|
|
91
|
+
<div className="form-group">
|
|
92
|
+
<label>Confirm Password</label>
|
|
93
|
+
<input type="password" placeholder="Confirm new password" />
|
|
94
|
+
</div>
|
|
95
|
+
<button className="btn btn-primary">Update Password</button>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<div className="settings-card">
|
|
99
|
+
<h3>🎨 Appearance</h3>
|
|
100
|
+
<div className="theme-options">
|
|
101
|
+
<div className="theme-option active">
|
|
102
|
+
<div className="theme-preview light" />
|
|
103
|
+
<span>Light</span>
|
|
104
|
+
</div>
|
|
105
|
+
<div className="theme-option">
|
|
106
|
+
<div className="theme-preview dark" />
|
|
107
|
+
<span>Dark</span>
|
|
108
|
+
</div>
|
|
109
|
+
<div className="theme-option">
|
|
110
|
+
<div className="theme-preview system" />
|
|
111
|
+
<span>System</span>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
);
|
|
118
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
|
|
5
|
+
interface User {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
email: string;
|
|
9
|
+
role: string;
|
|
10
|
+
status: 'Active' | 'Inactive';
|
|
11
|
+
joined: string;
|
|
12
|
+
avatar: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const users: User[] = [
|
|
16
|
+
{ id: 1, name: 'Alice Johnson', email: 'alice@example.com', role: 'Admin', status: 'Active', joined: '2024-06-15', avatar: '👩' },
|
|
17
|
+
{ id: 2, name: 'Bob Smith', email: 'bob@example.com', role: 'Editor', status: 'Active', joined: '2024-07-22', avatar: '👨' },
|
|
18
|
+
{ id: 3, name: 'Carol Davis', email: 'carol@example.com', role: 'Viewer', status: 'Active', joined: '2024-08-10', avatar: '👩' },
|
|
19
|
+
{ id: 4, name: 'David Wilson', email: 'david@example.com', role: 'Editor', status: 'Inactive', joined: '2024-09-05', avatar: '👨' },
|
|
20
|
+
{ id: 5, name: 'Eva Martinez', email: 'eva@example.com', role: 'Admin', status: 'Active', joined: '2024-10-18', avatar: '👩' },
|
|
21
|
+
{ id: 6, name: 'Frank Brown', email: 'frank@example.com', role: 'Viewer', status: 'Active', joined: '2024-11-02', avatar: '👨' },
|
|
22
|
+
{ id: 7, name: 'Grace Lee', email: 'grace@example.com', role: 'Editor', status: 'Inactive', joined: '2024-11-20', avatar: '👩' },
|
|
23
|
+
{ id: 8, name: 'Henry Taylor', email: 'henry@example.com', role: 'Viewer', status: 'Active', joined: '2025-01-08', avatar: '👨' },
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
export default function UsersPage() {
|
|
27
|
+
const [search, setSearch] = useState('');
|
|
28
|
+
const [roleFilter, setRoleFilter] = useState('All');
|
|
29
|
+
|
|
30
|
+
const filtered = users.filter((u) => {
|
|
31
|
+
const matchesSearch = u.name.toLowerCase().includes(search.toLowerCase()) || u.email.toLowerCase().includes(search.toLowerCase());
|
|
32
|
+
const matchesRole = roleFilter === 'All' || u.role === roleFilter;
|
|
33
|
+
return matchesSearch && matchesRole;
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<div className="page">
|
|
38
|
+
<div className="page-header">
|
|
39
|
+
<h1>Users</h1>
|
|
40
|
+
<p>Manage your team members and their permissions.</p>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div className="table-card">
|
|
44
|
+
<div className="table-controls">
|
|
45
|
+
<div className="search-input">
|
|
46
|
+
<span>🔍</span>
|
|
47
|
+
<input
|
|
48
|
+
type="text"
|
|
49
|
+
placeholder="Search users..."
|
|
50
|
+
value={search}
|
|
51
|
+
onChange={(e) => setSearch(e.target.value)}
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
<div className="filter-group">
|
|
55
|
+
{['All', 'Admin', 'Editor', 'Viewer'].map((role) => (
|
|
56
|
+
<button
|
|
57
|
+
key={role}
|
|
58
|
+
className={`filter-btn ${roleFilter === role ? 'active' : ''}`}
|
|
59
|
+
onClick={() => setRoleFilter(role)}
|
|
60
|
+
>
|
|
61
|
+
{role}
|
|
62
|
+
</button>
|
|
63
|
+
))}
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div className="table-wrapper">
|
|
68
|
+
<table className="data-table">
|
|
69
|
+
<thead>
|
|
70
|
+
<tr>
|
|
71
|
+
<th>User</th>
|
|
72
|
+
<th>Email</th>
|
|
73
|
+
<th>Role</th>
|
|
74
|
+
<th>Status</th>
|
|
75
|
+
<th>Joined</th>
|
|
76
|
+
</tr>
|
|
77
|
+
</thead>
|
|
78
|
+
<tbody>
|
|
79
|
+
{filtered.map((user) => (
|
|
80
|
+
<tr key={user.id}>
|
|
81
|
+
<td>
|
|
82
|
+
<div className="user-cell">
|
|
83
|
+
<span className="user-cell-avatar">{user.avatar}</span>
|
|
84
|
+
<span>{user.name}</span>
|
|
85
|
+
</div>
|
|
86
|
+
</td>
|
|
87
|
+
<td>{user.email}</td>
|
|
88
|
+
<td><span className={`role-badge ${user.role.toLowerCase()}`}>{user.role}</span></td>
|
|
89
|
+
<td><span className={`status-badge ${user.status.toLowerCase()}`}>{user.status}</span></td>
|
|
90
|
+
<td className="date">{user.joined}</td>
|
|
91
|
+
</tr>
|
|
92
|
+
))}
|
|
93
|
+
</tbody>
|
|
94
|
+
</table>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<NuxtLayout>
|
|
3
|
+
<NuxtPage />
|
|
4
|
+
</NuxtLayout>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
*,
|
|
9
|
+
*::before,
|
|
10
|
+
*::after {
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
|
18
|
+
color: #374151;
|
|
19
|
+
background-color: #f3f4f6;
|
|
20
|
+
line-height: 1.6;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
a {
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
color: inherit;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineProps<{
|
|
3
|
+
title: string;
|
|
4
|
+
}>();
|
|
5
|
+
|
|
6
|
+
const bars = [
|
|
7
|
+
{ label: 'Mon', height: 65 },
|
|
8
|
+
{ label: 'Tue', height: 80 },
|
|
9
|
+
{ label: 'Wed', height: 45 },
|
|
10
|
+
{ label: 'Thu', height: 90 },
|
|
11
|
+
{ label: 'Fri', height: 70 },
|
|
12
|
+
{ label: 'Sat', height: 55 },
|
|
13
|
+
{ label: 'Sun', height: 75 },
|
|
14
|
+
];
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<div class="chart-card">
|
|
19
|
+
<h3 class="chart-title">{{ title }}</h3>
|
|
20
|
+
<div class="chart-area">
|
|
21
|
+
<div v-for="bar in bars" :key="bar.label" class="bar-wrapper">
|
|
22
|
+
<div class="bar" :style="{ height: bar.height + '%' }"></div>
|
|
23
|
+
<span class="bar-label">{{ bar.label }}</span>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<style scoped>
|
|
30
|
+
.chart-card {
|
|
31
|
+
background: white;
|
|
32
|
+
border-radius: 10px;
|
|
33
|
+
padding: 1.5rem;
|
|
34
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.chart-title {
|
|
38
|
+
font-size: 1.1rem;
|
|
39
|
+
color: #111827;
|
|
40
|
+
margin-bottom: 1.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.chart-area {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: flex-end;
|
|
46
|
+
gap: 1rem;
|
|
47
|
+
height: 200px;
|
|
48
|
+
padding-top: 1rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.bar-wrapper {
|
|
52
|
+
flex: 1;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
align-items: center;
|
|
56
|
+
height: 100%;
|
|
57
|
+
justify-content: flex-end;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.bar {
|
|
61
|
+
width: 100%;
|
|
62
|
+
max-width: 40px;
|
|
63
|
+
background: linear-gradient(180deg, #4f46e5, #818cf8);
|
|
64
|
+
border-radius: 4px 4px 0 0;
|
|
65
|
+
transition: height 0.3s ease;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.bar-label {
|
|
69
|
+
font-size: 0.75rem;
|
|
70
|
+
color: #6b7280;
|
|
71
|
+
margin-top: 0.5rem;
|
|
72
|
+
}
|
|
73
|
+
</style>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const route = useRoute();
|
|
3
|
+
|
|
4
|
+
const navItems = [
|
|
5
|
+
{ path: '/', label: 'Overview', icon: '📊' },
|
|
6
|
+
{ path: '/analytics', label: 'Analytics', icon: '📈' },
|
|
7
|
+
{ path: '/users', label: 'Users', icon: '👥' },
|
|
8
|
+
{ path: '/settings', label: 'Settings', icon: '⚙️' },
|
|
9
|
+
];
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<aside class="dash-sidebar">
|
|
14
|
+
<div class="sidebar-logo">
|
|
15
|
+
<span class="logo-icon">📋</span>
|
|
16
|
+
<span class="logo-text">{{projectName}}</span>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<nav class="sidebar-nav">
|
|
20
|
+
<NuxtLink
|
|
21
|
+
v-for="item in navItems"
|
|
22
|
+
:key="item.path"
|
|
23
|
+
:to="item.path"
|
|
24
|
+
:class="['nav-item', { active: route.path === item.path }]"
|
|
25
|
+
>
|
|
26
|
+
<span class="nav-icon">{{ item.icon }}</span>
|
|
27
|
+
<span class="nav-label">{{ item.label }}</span>
|
|
28
|
+
</NuxtLink>
|
|
29
|
+
</nav>
|
|
30
|
+
</aside>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<style scoped>
|
|
34
|
+
.dash-sidebar {
|
|
35
|
+
width: 250px;
|
|
36
|
+
background: #111827;
|
|
37
|
+
color: white;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
position: sticky;
|
|
41
|
+
top: 0;
|
|
42
|
+
height: 100vh;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sidebar-logo {
|
|
46
|
+
padding: 1.5rem;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: 0.75rem;
|
|
50
|
+
border-bottom: 1px solid #1f2937;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.logo-icon {
|
|
54
|
+
font-size: 1.5rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.logo-text {
|
|
58
|
+
font-size: 1.2rem;
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sidebar-nav {
|
|
63
|
+
padding: 1rem 0.75rem;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: 0.25rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nav-item {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 0.75rem;
|
|
73
|
+
padding: 0.75rem 1rem;
|
|
74
|
+
border-radius: 8px;
|
|
75
|
+
color: #9ca3af;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
transition: all 0.2s;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.nav-item:hover {
|
|
81
|
+
background: #1f2937;
|
|
82
|
+
color: white;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.nav-item.active {
|
|
86
|
+
background: #4f46e5;
|
|
87
|
+
color: white;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.nav-icon {
|
|
91
|
+
font-size: 1.15rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.nav-label {
|
|
95
|
+
font-size: 0.95rem;
|
|
96
|
+
}
|
|
97
|
+
</style>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const orders = [
|
|
3
|
+
{ id: '#ORD-001', customer: 'Alice Johnson', product: 'Wireless Headphones', amount: '$79.99', status: 'Completed', date: '2024-01-15' },
|
|
4
|
+
{ id: '#ORD-002', customer: 'Bob Smith', product: 'Running Shoes', amount: '$129.99', status: 'Processing', date: '2024-01-14' },
|
|
5
|
+
{ id: '#ORD-003', customer: 'Carol Williams', product: 'Coffee Maker', amount: '$49.99', status: 'Completed', date: '2024-01-14' },
|
|
6
|
+
{ id: '#ORD-004', customer: 'David Brown', product: 'Backpack', amount: '$59.99', status: 'Shipped', date: '2024-01-13' },
|
|
7
|
+
{ id: '#ORD-005', customer: 'Eva Martinez', product: 'Smartwatch', amount: '$199.99', status: 'Pending', date: '2024-01-13' },
|
|
8
|
+
];
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<div class="table-card">
|
|
13
|
+
<h3 class="table-title">Recent Orders</h3>
|
|
14
|
+
<div class="table-wrapper">
|
|
15
|
+
<table class="data-table">
|
|
16
|
+
<thead>
|
|
17
|
+
<tr>
|
|
18
|
+
<th>Order ID</th>
|
|
19
|
+
<th>Customer</th>
|
|
20
|
+
<th>Product</th>
|
|
21
|
+
<th>Amount</th>
|
|
22
|
+
<th>Status</th>
|
|
23
|
+
<th>Date</th>
|
|
24
|
+
</tr>
|
|
25
|
+
</thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
<tr v-for="order in orders" :key="order.id">
|
|
28
|
+
<td class="order-id">{{ order.id }}</td>
|
|
29
|
+
<td>{{ order.customer }}</td>
|
|
30
|
+
<td>{{ order.product }}</td>
|
|
31
|
+
<td class="amount">{{ order.amount }}</td>
|
|
32
|
+
<td>
|
|
33
|
+
<span :class="['status-badge', order.status.toLowerCase()]">
|
|
34
|
+
{{ order.status }}
|
|
35
|
+
</span>
|
|
36
|
+
</td>
|
|
37
|
+
<td class="date">{{ order.date }}</td>
|
|
38
|
+
</tr>
|
|
39
|
+
</tbody>
|
|
40
|
+
</table>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<style scoped>
|
|
46
|
+
.table-card {
|
|
47
|
+
background: white;
|
|
48
|
+
border-radius: 10px;
|
|
49
|
+
padding: 1.5rem;
|
|
50
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.table-title {
|
|
54
|
+
font-size: 1.1rem;
|
|
55
|
+
color: #111827;
|
|
56
|
+
margin-bottom: 1rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.table-wrapper {
|
|
60
|
+
overflow-x: auto;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.data-table {
|
|
64
|
+
width: 100%;
|
|
65
|
+
border-collapse: collapse;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.data-table th {
|
|
69
|
+
text-align: left;
|
|
70
|
+
padding: 0.75rem 1rem;
|
|
71
|
+
font-size: 0.8rem;
|
|
72
|
+
font-weight: 600;
|
|
73
|
+
color: #6b7280;
|
|
74
|
+
text-transform: uppercase;
|
|
75
|
+
letter-spacing: 0.05em;
|
|
76
|
+
border-bottom: 2px solid #e5e7eb;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.data-table td {
|
|
80
|
+
padding: 0.875rem 1rem;
|
|
81
|
+
font-size: 0.9rem;
|
|
82
|
+
border-bottom: 1px solid #f3f4f6;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.order-id {
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
color: #4f46e5;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.amount {
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
color: #111827;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.date {
|
|
96
|
+
color: #6b7280;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.status-badge {
|
|
100
|
+
display: inline-block;
|
|
101
|
+
padding: 0.2rem 0.65rem;
|
|
102
|
+
border-radius: 20px;
|
|
103
|
+
font-size: 0.75rem;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.status-badge.completed {
|
|
108
|
+
background: #d1fae5;
|
|
109
|
+
color: #065f46;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.status-badge.processing {
|
|
113
|
+
background: #dbeafe;
|
|
114
|
+
color: #1e40af;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.status-badge.shipped {
|
|
118
|
+
background: #fef3c7;
|
|
119
|
+
color: #92400e;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.status-badge.pending {
|
|
123
|
+
background: #f3f4f6;
|
|
124
|
+
color: #374151;
|
|
125
|
+
}
|
|
126
|
+
</style>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const kpis = [
|
|
3
|
+
{ label: 'Total Revenue', value: '$54,230', change: '+12.5%', icon: '💰', positive: true },
|
|
4
|
+
{ label: 'Active Users', value: '2,345', change: '+8.1%', icon: '👥', positive: true },
|
|
5
|
+
{ label: 'Orders', value: '1,247', change: '+23.4%', icon: '📦', positive: true },
|
|
6
|
+
{ label: 'Conversion', value: '3.24%', change: '-0.8%', icon: '📈', positive: false },
|
|
7
|
+
];
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div class="kpi-grid">
|
|
12
|
+
<div v-for="kpi in kpis" :key="kpi.label" class="kpi-card">
|
|
13
|
+
<div class="kpi-header">
|
|
14
|
+
<span class="kpi-label">{{ kpi.label }}</span>
|
|
15
|
+
<span class="kpi-icon">{{ kpi.icon }}</span>
|
|
16
|
+
</div>
|
|
17
|
+
<p class="kpi-value">{{ kpi.value }}</p>
|
|
18
|
+
<p :class="['kpi-change', kpi.positive ? 'positive' : 'negative']">
|
|
19
|
+
{{ kpi.change }} from last month
|
|
20
|
+
</p>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
.kpi-grid {
|
|
27
|
+
display: grid;
|
|
28
|
+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
29
|
+
gap: 1.25rem;
|
|
30
|
+
margin-bottom: 2rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.kpi-card {
|
|
34
|
+
background: white;
|
|
35
|
+
border-radius: 10px;
|
|
36
|
+
padding: 1.5rem;
|
|
37
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.kpi-header {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
align-items: center;
|
|
44
|
+
margin-bottom: 0.75rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.kpi-label {
|
|
48
|
+
font-size: 0.875rem;
|
|
49
|
+
color: #6b7280;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.kpi-icon {
|
|
54
|
+
font-size: 1.5rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.kpi-value {
|
|
58
|
+
font-size: 1.75rem;
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
color: #111827;
|
|
61
|
+
margin-bottom: 0.35rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.kpi-change {
|
|
65
|
+
font-size: 0.8rem;
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.kpi-change.positive {
|
|
70
|
+
color: #10b981;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kpi-change.negative {
|
|
74
|
+
color: #ef4444;
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="dash-layout">
|
|
3
|
+
<DashSidebar />
|
|
4
|
+
<main class="dash-main">
|
|
5
|
+
<slot />
|
|
6
|
+
</main>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<style>
|
|
11
|
+
.dash-layout {
|
|
12
|
+
display: flex;
|
|
13
|
+
min-height: 100vh;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dash-main {
|
|
17
|
+
flex: 1;
|
|
18
|
+
padding: 2rem;
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
}
|
|
21
|
+
</style>
|