@beknurakhmed/webforge-cli 0.1.1 → 0.1.3
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/angular/angular.json +28 -2
- 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,186 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const recentActivity = [
|
|
3
|
+
{ id: 1, action: 'New contact added', name: 'Sarah Connor', time: '2 hours ago', icon: '👤' },
|
|
4
|
+
{ id: 2, action: 'Deal closed', name: 'Acme Inc', time: '4 hours ago', icon: '🎉' },
|
|
5
|
+
{ id: 3, action: 'Follow-up scheduled', name: 'Tech Labs', time: '6 hours ago', icon: '📅' },
|
|
6
|
+
{ id: 4, action: 'Email sent', name: 'Mike Johnson', time: '8 hours ago', icon: '✉️' },
|
|
7
|
+
];
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div class="crm-dashboard">
|
|
12
|
+
<div class="page-header">
|
|
13
|
+
<h1>CRM Dashboard</h1>
|
|
14
|
+
<p class="subtitle">Welcome back! Here's your sales overview.</p>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<StatsCards />
|
|
18
|
+
|
|
19
|
+
<div class="dashboard-grid">
|
|
20
|
+
<div class="activity-card">
|
|
21
|
+
<h2 class="card-title">Recent Activity</h2>
|
|
22
|
+
<div class="activity-list">
|
|
23
|
+
<div v-for="item in recentActivity" :key="item.id" class="activity-item">
|
|
24
|
+
<span class="activity-icon">{{ item.icon }}</span>
|
|
25
|
+
<div class="activity-info">
|
|
26
|
+
<p class="activity-action">{{ item.action }}</p>
|
|
27
|
+
<p class="activity-meta">{{ item.name }} · {{ item.time }}</p>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="pipeline-card">
|
|
34
|
+
<h2 class="card-title">Pipeline Summary</h2>
|
|
35
|
+
<div class="pipeline-stages">
|
|
36
|
+
<div class="pipeline-stage">
|
|
37
|
+
<div class="stage-header">
|
|
38
|
+
<span>Lead</span>
|
|
39
|
+
<span class="stage-count">12</span>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="stage-bar">
|
|
42
|
+
<div class="stage-fill" style="width: 40%"></div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="pipeline-stage">
|
|
46
|
+
<div class="stage-header">
|
|
47
|
+
<span>Qualified</span>
|
|
48
|
+
<span class="stage-count">8</span>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="stage-bar">
|
|
51
|
+
<div class="stage-fill" style="width: 27%"></div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="pipeline-stage">
|
|
55
|
+
<div class="stage-header">
|
|
56
|
+
<span>Proposal</span>
|
|
57
|
+
<span class="stage-count">5</span>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="stage-bar">
|
|
60
|
+
<div class="stage-fill" style="width: 17%"></div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="pipeline-stage">
|
|
64
|
+
<div class="stage-header">
|
|
65
|
+
<span>Closed Won</span>
|
|
66
|
+
<span class="stage-count">17</span>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="stage-bar">
|
|
69
|
+
<div class="stage-fill won" style="width: 57%"></div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
78
|
+
<style scoped>
|
|
79
|
+
.page-header {
|
|
80
|
+
margin-bottom: 2rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.page-header h1 {
|
|
84
|
+
font-size: 1.75rem;
|
|
85
|
+
color: #111827;
|
|
86
|
+
margin-bottom: 0.25rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.subtitle {
|
|
90
|
+
color: #6b7280;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.dashboard-grid {
|
|
94
|
+
display: grid;
|
|
95
|
+
grid-template-columns: 1fr 1fr;
|
|
96
|
+
gap: 1.25rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.activity-card,
|
|
100
|
+
.pipeline-card {
|
|
101
|
+
background: white;
|
|
102
|
+
border-radius: 10px;
|
|
103
|
+
padding: 1.5rem;
|
|
104
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.card-title {
|
|
108
|
+
font-size: 1.1rem;
|
|
109
|
+
color: #111827;
|
|
110
|
+
margin-bottom: 1.25rem;
|
|
111
|
+
padding-bottom: 0.75rem;
|
|
112
|
+
border-bottom: 1px solid #e5e7eb;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.activity-list {
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
gap: 1rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.activity-item {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
gap: 0.875rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.activity-icon {
|
|
128
|
+
font-size: 1.5rem;
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.activity-action {
|
|
133
|
+
font-weight: 600;
|
|
134
|
+
color: #111827;
|
|
135
|
+
font-size: 0.9rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.activity-meta {
|
|
139
|
+
font-size: 0.8rem;
|
|
140
|
+
color: #6b7280;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.pipeline-stages {
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
gap: 1.25rem;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.stage-header {
|
|
150
|
+
display: flex;
|
|
151
|
+
justify-content: space-between;
|
|
152
|
+
font-size: 0.9rem;
|
|
153
|
+
font-weight: 500;
|
|
154
|
+
color: #374151;
|
|
155
|
+
margin-bottom: 0.35rem;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.stage-count {
|
|
159
|
+
font-weight: 700;
|
|
160
|
+
color: #111827;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.stage-bar {
|
|
164
|
+
height: 8px;
|
|
165
|
+
background: #e5e7eb;
|
|
166
|
+
border-radius: 4px;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.stage-fill {
|
|
171
|
+
height: 100%;
|
|
172
|
+
background: #4f46e5;
|
|
173
|
+
border-radius: 4px;
|
|
174
|
+
transition: width 0.3s ease;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.stage-fill.won {
|
|
178
|
+
background: #10b981;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@media (max-width: 768px) {
|
|
182
|
+
.dashboard-grid {
|
|
183
|
+
grid-template-columns: 1fr;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
</style>
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const form = reactive({
|
|
3
|
+
companyName: '{{projectName}}',
|
|
4
|
+
email: 'admin@example.com',
|
|
5
|
+
currency: 'USD',
|
|
6
|
+
dealRotting: '30',
|
|
7
|
+
notifications: true,
|
|
8
|
+
autoAssign: false,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
function handleSave() {
|
|
12
|
+
alert('Settings saved successfully!');
|
|
13
|
+
}
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<div class="settings-page">
|
|
18
|
+
<div class="page-header">
|
|
19
|
+
<h1>Settings</h1>
|
|
20
|
+
<p class="subtitle">Configure your CRM preferences.</p>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<form class="settings-form" @submit.prevent="handleSave">
|
|
24
|
+
<div class="form-card">
|
|
25
|
+
<h2 class="form-section-title">General</h2>
|
|
26
|
+
|
|
27
|
+
<div class="form-group">
|
|
28
|
+
<label for="companyName">Company Name</label>
|
|
29
|
+
<input id="companyName" v-model="form.companyName" type="text" class="form-input" />
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="form-group">
|
|
33
|
+
<label for="email">Admin Email</label>
|
|
34
|
+
<input id="email" v-model="form.email" type="email" class="form-input" />
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div class="form-row">
|
|
38
|
+
<div class="form-group">
|
|
39
|
+
<label for="currency">Currency</label>
|
|
40
|
+
<select id="currency" v-model="form.currency" class="form-input">
|
|
41
|
+
<option value="USD">USD ($)</option>
|
|
42
|
+
<option value="EUR">EUR (€)</option>
|
|
43
|
+
<option value="GBP">GBP (£)</option>
|
|
44
|
+
</select>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div class="form-group">
|
|
48
|
+
<label for="dealRotting">Deal Rotting (days)</label>
|
|
49
|
+
<input id="dealRotting" v-model="form.dealRotting" type="number" class="form-input" />
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div class="form-card">
|
|
55
|
+
<h2 class="form-section-title">Automation</h2>
|
|
56
|
+
|
|
57
|
+
<div class="toggle-group">
|
|
58
|
+
<div class="toggle-info">
|
|
59
|
+
<span class="toggle-label">Email Notifications</span>
|
|
60
|
+
<span class="toggle-desc">Get notified about deal updates and new contacts.</span>
|
|
61
|
+
</div>
|
|
62
|
+
<label class="toggle-switch">
|
|
63
|
+
<input v-model="form.notifications" type="checkbox" />
|
|
64
|
+
<span class="toggle-slider"></span>
|
|
65
|
+
</label>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div class="toggle-group">
|
|
69
|
+
<div class="toggle-info">
|
|
70
|
+
<span class="toggle-label">Auto-Assign Leads</span>
|
|
71
|
+
<span class="toggle-desc">Automatically assign new leads to sales reps.</span>
|
|
72
|
+
</div>
|
|
73
|
+
<label class="toggle-switch">
|
|
74
|
+
<input v-model="form.autoAssign" type="checkbox" />
|
|
75
|
+
<span class="toggle-slider"></span>
|
|
76
|
+
</label>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<button type="submit" class="save-btn">Save Changes</button>
|
|
81
|
+
</form>
|
|
82
|
+
</div>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<style scoped>
|
|
86
|
+
.page-header {
|
|
87
|
+
margin-bottom: 2rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.page-header h1 {
|
|
91
|
+
font-size: 1.75rem;
|
|
92
|
+
color: #111827;
|
|
93
|
+
margin-bottom: 0.25rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.subtitle {
|
|
97
|
+
color: #6b7280;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.settings-form {
|
|
101
|
+
max-width: 700px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.form-card {
|
|
105
|
+
background: white;
|
|
106
|
+
border-radius: 10px;
|
|
107
|
+
padding: 1.5rem;
|
|
108
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
109
|
+
margin-bottom: 1.25rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.form-section-title {
|
|
113
|
+
font-size: 1.15rem;
|
|
114
|
+
color: #111827;
|
|
115
|
+
margin-bottom: 1.25rem;
|
|
116
|
+
padding-bottom: 0.75rem;
|
|
117
|
+
border-bottom: 1px solid #e5e7eb;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.form-group {
|
|
121
|
+
margin-bottom: 1.25rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.form-group label {
|
|
125
|
+
display: block;
|
|
126
|
+
font-size: 0.875rem;
|
|
127
|
+
font-weight: 600;
|
|
128
|
+
color: #374151;
|
|
129
|
+
margin-bottom: 0.35rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.form-input {
|
|
133
|
+
width: 100%;
|
|
134
|
+
padding: 0.65rem 0.875rem;
|
|
135
|
+
border: 1px solid #d1d5db;
|
|
136
|
+
border-radius: 8px;
|
|
137
|
+
font-size: 0.95rem;
|
|
138
|
+
outline: none;
|
|
139
|
+
transition: border-color 0.2s;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.form-input:focus {
|
|
143
|
+
border-color: #4f46e5;
|
|
144
|
+
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.form-row {
|
|
148
|
+
display: grid;
|
|
149
|
+
grid-template-columns: 1fr 1fr;
|
|
150
|
+
gap: 1rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.toggle-group {
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: space-between;
|
|
156
|
+
align-items: center;
|
|
157
|
+
padding: 0.75rem 0;
|
|
158
|
+
border-bottom: 1px solid #f3f4f6;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.toggle-group:last-child {
|
|
162
|
+
border-bottom: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.toggle-label {
|
|
166
|
+
font-weight: 600;
|
|
167
|
+
color: #111827;
|
|
168
|
+
font-size: 0.95rem;
|
|
169
|
+
display: block;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.toggle-desc {
|
|
173
|
+
font-size: 0.8rem;
|
|
174
|
+
color: #6b7280;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.toggle-switch {
|
|
178
|
+
position: relative;
|
|
179
|
+
width: 48px;
|
|
180
|
+
height: 26px;
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.toggle-switch input {
|
|
185
|
+
opacity: 0;
|
|
186
|
+
width: 0;
|
|
187
|
+
height: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.toggle-slider {
|
|
191
|
+
position: absolute;
|
|
192
|
+
inset: 0;
|
|
193
|
+
background: #d1d5db;
|
|
194
|
+
border-radius: 26px;
|
|
195
|
+
transition: background 0.2s;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.toggle-slider::before {
|
|
199
|
+
content: '';
|
|
200
|
+
position: absolute;
|
|
201
|
+
width: 20px;
|
|
202
|
+
height: 20px;
|
|
203
|
+
left: 3px;
|
|
204
|
+
bottom: 3px;
|
|
205
|
+
background: white;
|
|
206
|
+
border-radius: 50%;
|
|
207
|
+
transition: transform 0.2s;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.toggle-switch input:checked + .toggle-slider {
|
|
211
|
+
background: #4f46e5;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.toggle-switch input:checked + .toggle-slider::before {
|
|
215
|
+
transform: translateX(22px);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.save-btn {
|
|
219
|
+
background: #4f46e5;
|
|
220
|
+
color: white;
|
|
221
|
+
border: none;
|
|
222
|
+
padding: 0.75rem 2rem;
|
|
223
|
+
border-radius: 8px;
|
|
224
|
+
font-size: 1rem;
|
|
225
|
+
font-weight: 600;
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
transition: background 0.2s;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.save-btn:hover {
|
|
231
|
+
background: #4338ca;
|
|
232
|
+
}
|
|
233
|
+
</style>
|
|
@@ -1,48 +1,77 @@
|
|
|
1
|
+
/* Layout */
|
|
1
2
|
.crm { display: flex; min-height: 100vh; }
|
|
3
|
+
.crm-main { flex: 1; background: #f9fafb; padding: 2rem; overflow-y: auto; }
|
|
4
|
+
.crm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
|
|
5
|
+
.crm-header h1 { font-size: 1.75rem; font-weight: 700; color: #111827; margin: 0; }
|
|
6
|
+
|
|
7
|
+
/* Sidebar */
|
|
2
8
|
.sidebar { width: 240px; background: #111827; color: white; padding: 1.5rem; flex-shrink: 0; }
|
|
3
9
|
.sidebar-logo { font-size: 1.25rem; font-weight: 700; padding: 0.5rem 0.75rem; margin-bottom: 2rem; color: #4f46e5; }
|
|
4
10
|
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
|
|
5
|
-
.sidebar-
|
|
6
|
-
.sidebar-
|
|
7
|
-
.sidebar-
|
|
11
|
+
.sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem; border-radius: 8px; color: #9ca3af; text-decoration: none; transition: all 0.15s; }
|
|
12
|
+
.sidebar-link:hover { background: #1f2937; color: white; }
|
|
13
|
+
.sidebar-link.active { background: #4f46e5; color: white; }
|
|
14
|
+
.sidebar-icon { font-size: 1.1rem; }
|
|
8
15
|
|
|
9
|
-
|
|
10
|
-
.crm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
|
|
11
|
-
.crm-header h1 { font-size: 1.75rem; font-weight: 700; color: #111827; margin: 0; }
|
|
16
|
+
/* Buttons */
|
|
12
17
|
.btn-primary { background: #4f46e5; color: white; border: none; padding: 0.6rem 1.25rem; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
|
|
18
|
+
.btn-primary:hover { background: #4338ca; }
|
|
13
19
|
|
|
20
|
+
/* Search */
|
|
21
|
+
.search-input { padding: 0.5rem 1rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.9rem; width: 260px; }
|
|
22
|
+
.search-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15); }
|
|
23
|
+
|
|
24
|
+
/* Stats */
|
|
14
25
|
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
|
|
15
26
|
.stat-card { background: white; border-radius: 12px; padding: 1.25rem; border: 1px solid #e5e7eb; position: relative; overflow: hidden; }
|
|
16
27
|
.stat-indicator { position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
|
|
17
28
|
.stat-label { font-size: 0.8rem; color: #6b7280; }
|
|
18
29
|
.stat-value { font-size: 1.75rem; font-weight: 700; color: #111827; }
|
|
19
30
|
|
|
20
|
-
|
|
21
|
-
.
|
|
22
|
-
.filter-btn:hover { border-color: #4f46e5; color: #4f46e5; }
|
|
23
|
-
.filter-btn.active { background: #4f46e5; color: white; border-color: #4f46e5; }
|
|
31
|
+
/* Section title */
|
|
32
|
+
.section-title { font-size: 1.15rem; font-weight: 600; color: #111827; margin: 1.5rem 0 1rem; }
|
|
24
33
|
|
|
34
|
+
/* Table */
|
|
25
35
|
.table-card { background: white; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; }
|
|
26
36
|
.data-table { width: 100%; border-collapse: collapse; }
|
|
27
37
|
.data-table th { text-align: left; padding: 0.75rem 1.25rem; font-size: 0.8rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
|
|
28
38
|
.data-table td { padding: 0.75rem 1.25rem; border-bottom: 1px solid #f3f4f6; font-size: 0.9rem; }
|
|
29
39
|
.contact-name { font-weight: 600; color: #111827; }
|
|
30
40
|
.contact-email { color: #6b7280; }
|
|
31
|
-
.contact-
|
|
32
|
-
.contact-time { color: #9ca3af; font-size: 0.85rem; }
|
|
41
|
+
.contact-phone { color: #374151; }
|
|
33
42
|
.status-badge { padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
|
|
34
43
|
.status-lead { background: #fef3c7; color: #92400e; }
|
|
35
44
|
.status-prospect { background: #dbeafe; color: #1e40af; }
|
|
36
45
|
.status-customer { background: #d1fae5; color: #065f46; }
|
|
37
46
|
.status-churned { background: #fee2e2; color: #991b1b; }
|
|
38
47
|
|
|
39
|
-
|
|
48
|
+
/* Deals Board */
|
|
49
|
+
.deals-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
|
|
50
|
+
.deals-column { background: white; border-radius: 12px; padding: 1rem; border: 1px solid #e5e7eb; }
|
|
51
|
+
.column-title { font-size: 0.9rem; font-weight: 600; color: #374151; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid #4f46e5; }
|
|
52
|
+
.deal-card { background: #f9fafb; border-radius: 8px; padding: 1rem; margin-bottom: 0.75rem; border: 1px solid #e5e7eb; }
|
|
53
|
+
.deal-company { font-size: 0.95rem; font-weight: 600; color: #111827; margin: 0 0 0.25rem; }
|
|
54
|
+
.deal-value { font-size: 1.1rem; font-weight: 700; color: #4f46e5; margin: 0.25rem 0; }
|
|
55
|
+
.deal-contact { font-size: 0.8rem; color: #6b7280; }
|
|
56
|
+
|
|
57
|
+
/* Settings */
|
|
58
|
+
.settings-card { background: white; border-radius: 12px; padding: 2rem; border: 1px solid #e5e7eb; max-width: 500px; }
|
|
59
|
+
.settings-form { display: flex; flex-direction: column; gap: 1.25rem; }
|
|
60
|
+
.settings-form .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
|
|
61
|
+
.settings-form label { font-size: 0.85rem; font-weight: 600; color: #374151; }
|
|
62
|
+
.settings-form input,
|
|
63
|
+
.settings-form select { padding: 0.6rem 0.75rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.9rem; font-family: inherit; }
|
|
64
|
+
.settings-form input:focus,
|
|
65
|
+
.settings-form select:focus { outline: none; border-color: #4f46e5; }
|
|
40
66
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
.crm
|
|
44
|
-
.
|
|
45
|
-
.
|
|
46
|
-
.
|
|
47
|
-
.
|
|
67
|
+
/* Responsive */
|
|
68
|
+
@media (max-width: 768px) {
|
|
69
|
+
.crm { flex-direction: column; }
|
|
70
|
+
.sidebar { width: 100%; padding: 1rem; }
|
|
71
|
+
.sidebar-nav { flex-direction: row; overflow-x: auto; }
|
|
72
|
+
.crm-main { padding: 1rem; }
|
|
73
|
+
.deals-board { grid-template-columns: 1fr; }
|
|
74
|
+
.crm-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
|
|
75
|
+
.search-input { width: 100%; }
|
|
76
|
+
.stats-grid { grid-template-columns: repeat(2, 1fr); }
|
|
48
77
|
}
|
|
@@ -1,48 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
|
2
|
+
import Layout from './components/Layout';
|
|
3
|
+
import DashboardHome from './pages/DashboardHome';
|
|
4
|
+
import Contacts from './pages/Contacts';
|
|
5
|
+
import Deals from './pages/Deals';
|
|
6
|
+
import Settings from './pages/Settings';
|
|
6
7
|
import './App.css';
|
|
7
8
|
|
|
8
|
-
export interface Contact {
|
|
9
|
-
id: number;
|
|
10
|
-
name: string;
|
|
11
|
-
email: string;
|
|
12
|
-
company: string;
|
|
13
|
-
status: 'Lead' | 'Prospect' | 'Customer' | 'Churned';
|
|
14
|
-
value: string;
|
|
15
|
-
lastContact: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const initialContacts: Contact[] = [
|
|
19
|
-
{ id: 1, name: 'Sarah Connor', email: 'sarah@acme.com', company: 'Acme Corp', status: 'Customer', value: '$12,400', lastContact: '2 hours ago' },
|
|
20
|
-
{ id: 2, name: 'John Smith', email: 'john@globex.com', company: 'Globex Inc', status: 'Lead', value: '$8,200', lastContact: '1 day ago' },
|
|
21
|
-
{ id: 3, name: 'Emma Wilson', email: 'emma@wayne.com', company: 'Wayne Enterprises', status: 'Prospect', value: '$34,000', lastContact: '3 days ago' },
|
|
22
|
-
{ id: 4, name: 'Mike Chen', email: 'mike@stark.com', company: 'Stark Industries', status: 'Customer', value: '$22,500', lastContact: '5 hours ago' },
|
|
23
|
-
{ id: 5, name: 'Lisa Park', email: 'lisa@initech.com', company: 'Initech', status: 'Churned', value: '$5,100', lastContact: '2 weeks ago' },
|
|
24
|
-
{ id: 6, name: 'David Lee', email: 'david@umbrella.com', company: 'Umbrella Corp', status: 'Lead', value: '$15,800', lastContact: '4 hours ago' },
|
|
25
|
-
];
|
|
26
|
-
|
|
27
9
|
function App() {
|
|
28
|
-
const [contacts] = useState<Contact[]>(initialContacts);
|
|
29
|
-
const [filter, setFilter] = useState<string>('all');
|
|
30
|
-
|
|
31
|
-
const filtered = filter === 'all' ? contacts : contacts.filter((c) => c.status.toLowerCase() === filter);
|
|
32
|
-
|
|
33
10
|
return (
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</main>
|
|
45
|
-
</div>
|
|
11
|
+
<BrowserRouter>
|
|
12
|
+
<Routes>
|
|
13
|
+
<Route path="/" element={<Layout />}>
|
|
14
|
+
<Route index element={<DashboardHome />} />
|
|
15
|
+
<Route path="contacts" element={<Contacts />} />
|
|
16
|
+
<Route path="deals" element={<Deals />} />
|
|
17
|
+
<Route path="settings" element={<Settings />} />
|
|
18
|
+
</Route>
|
|
19
|
+
</Routes>
|
|
20
|
+
</BrowserRouter>
|
|
46
21
|
);
|
|
47
22
|
}
|
|
48
23
|
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
import type { Contact } from '../
|
|
1
|
+
import type { Contact } from '../data/contacts';
|
|
2
2
|
|
|
3
3
|
interface ContactsTableProps {
|
|
4
4
|
contacts: Contact[];
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
function ContactsTable({ contacts }: ContactsTableProps) {
|
|
8
8
|
return (
|
|
9
9
|
<div className="table-card">
|
|
10
10
|
<table className="data-table">
|
|
11
11
|
<thead>
|
|
12
12
|
<tr>
|
|
13
13
|
<th>Name</th>
|
|
14
|
-
<th>Company</th>
|
|
15
14
|
<th>Email</th>
|
|
15
|
+
<th>Company</th>
|
|
16
16
|
<th>Status</th>
|
|
17
|
-
<th>
|
|
18
|
-
<th>Last Contact</th>
|
|
17
|
+
<th>Phone</th>
|
|
19
18
|
</tr>
|
|
20
19
|
</thead>
|
|
21
20
|
<tbody>
|
|
22
21
|
{contacts.map((c) => (
|
|
23
22
|
<tr key={c.id}>
|
|
24
23
|
<td className="contact-name">{c.name}</td>
|
|
25
|
-
<td>{c.company}</td>
|
|
26
24
|
<td className="contact-email">{c.email}</td>
|
|
25
|
+
<td>{c.company}</td>
|
|
27
26
|
<td>
|
|
28
27
|
<span className={`status-badge status-${c.status.toLowerCase()}`}>
|
|
29
28
|
{c.status}
|
|
30
29
|
</span>
|
|
31
30
|
</td>
|
|
32
|
-
<td className="contact-
|
|
33
|
-
<td className="contact-time">{c.lastContact}</td>
|
|
31
|
+
<td className="contact-phone">{c.phone}</td>
|
|
34
32
|
</tr>
|
|
35
33
|
))}
|
|
36
34
|
</tbody>
|
|
@@ -38,3 +36,5 @@ export function ContactsTable({ contacts }: ContactsTableProps) {
|
|
|
38
36
|
</div>
|
|
39
37
|
);
|
|
40
38
|
}
|
|
39
|
+
|
|
40
|
+
export default ContactsTable;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Outlet } from 'react-router-dom';
|
|
2
|
+
import Sidebar from './Sidebar';
|
|
3
|
+
|
|
4
|
+
function Layout() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="crm">
|
|
7
|
+
<Sidebar />
|
|
8
|
+
<main className="crm-main">
|
|
9
|
+
<Outlet />
|
|
10
|
+
</main>
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default Layout;
|