@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,100 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-root',
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [RouterOutlet, RouterLink, RouterLinkActive],
|
|
8
|
+
template: `
|
|
9
|
+
<header class="blog-header">
|
|
10
|
+
<div class="blog-header__container">
|
|
11
|
+
<a routerLink="/" class="blog-header__logo">{{ projectName }}</a>
|
|
12
|
+
<nav class="blog-header__nav">
|
|
13
|
+
<a
|
|
14
|
+
routerLink="/"
|
|
15
|
+
routerLinkActive="blog-header__nav-link--active"
|
|
16
|
+
[routerLinkActiveOptions]="{ exact: true }"
|
|
17
|
+
class="blog-header__nav-link"
|
|
18
|
+
>Home</a>
|
|
19
|
+
<a
|
|
20
|
+
routerLink="/about"
|
|
21
|
+
routerLinkActive="blog-header__nav-link--active"
|
|
22
|
+
class="blog-header__nav-link"
|
|
23
|
+
>About</a>
|
|
24
|
+
</nav>
|
|
25
|
+
</div>
|
|
26
|
+
</header>
|
|
27
|
+
<div class="blog-content">
|
|
28
|
+
<router-outlet />
|
|
29
|
+
</div>
|
|
30
|
+
<footer class="blog-footer">
|
|
31
|
+
<div class="blog-footer__container">
|
|
32
|
+
<p>© 2024 {{ projectName }}. All rights reserved.</p>
|
|
33
|
+
</div>
|
|
34
|
+
</footer>
|
|
35
|
+
`,
|
|
36
|
+
styles: [`
|
|
37
|
+
.blog-header {
|
|
38
|
+
background: #fff;
|
|
39
|
+
border-bottom: 1px solid #e5e7eb;
|
|
40
|
+
padding: 16px 0;
|
|
41
|
+
position: sticky;
|
|
42
|
+
top: 0;
|
|
43
|
+
z-index: 10;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.blog-header__container {
|
|
47
|
+
max-width: 1100px;
|
|
48
|
+
margin: 0 auto;
|
|
49
|
+
padding: 0 24px;
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
align-items: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.blog-header__logo {
|
|
56
|
+
font-size: 20px;
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
color: #4f46e5;
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.blog-header__nav {
|
|
63
|
+
display: flex;
|
|
64
|
+
gap: 24px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.blog-header__nav-link {
|
|
68
|
+
text-decoration: none;
|
|
69
|
+
color: #6b7280;
|
|
70
|
+
font-size: 15px;
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
transition: color 0.2s;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.blog-header__nav-link:hover,
|
|
76
|
+
.blog-header__nav-link--active {
|
|
77
|
+
color: #4f46e5;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.blog-content {
|
|
81
|
+
min-height: calc(100vh - 140px);
|
|
82
|
+
background: #f9fafb;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.blog-footer {
|
|
86
|
+
background: #111827;
|
|
87
|
+
color: #9ca3af;
|
|
88
|
+
padding: 24px 0;
|
|
89
|
+
text-align: center;
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.blog-footer__container {
|
|
94
|
+
max-width: 1100px;
|
|
95
|
+
margin: 0 auto;
|
|
96
|
+
padding: 0 24px;
|
|
97
|
+
}
|
|
98
|
+
`]
|
|
99
|
+
})
|
|
100
|
+
export class AppComponent {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
import { HomeComponent } from './pages/home.component';
|
|
3
|
+
import { PostDetailComponent } from './pages/post-detail.component';
|
|
4
|
+
import { CategoryComponent } from './pages/category.component';
|
|
5
|
+
import { AboutComponent } from './pages/about.component';
|
|
6
|
+
|
|
7
|
+
export const routes: Routes = [
|
|
8
|
+
{ path: '', component: HomeComponent },
|
|
9
|
+
{ path: 'post/:id', component: PostDetailComponent },
|
|
10
|
+
{ path: 'category/:slug', component: CategoryComponent },
|
|
11
|
+
{ path: 'about', component: AboutComponent },
|
|
12
|
+
];
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { RouterLink } from '@angular/router';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'app-blog-sidebar',
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [RouterLink, FormsModule],
|
|
9
|
+
template: `
|
|
10
|
+
<div class="sidebar-widget">
|
|
11
|
+
<h3 class="sidebar-widget__title">Categories</h3>
|
|
12
|
+
@for (cat of categories; track cat) {
|
|
13
|
+
<a
|
|
14
|
+
[routerLink]="'/category/' + cat.toLowerCase()"
|
|
15
|
+
class="sidebar-widget__category-link"
|
|
16
|
+
>{{ cat }}</a>
|
|
17
|
+
}
|
|
18
|
+
</div>
|
|
19
|
+
<div class="sidebar-widget">
|
|
20
|
+
<h3 class="sidebar-widget__title">Newsletter</h3>
|
|
21
|
+
<p class="sidebar-widget__description">
|
|
22
|
+
Get the latest posts delivered to your inbox.
|
|
23
|
+
</p>
|
|
24
|
+
<input
|
|
25
|
+
[(ngModel)]="email"
|
|
26
|
+
placeholder="Your email"
|
|
27
|
+
class="sidebar-widget__input"
|
|
28
|
+
/>
|
|
29
|
+
<button
|
|
30
|
+
class="sidebar-widget__subscribe-btn"
|
|
31
|
+
(click)="subscribed = true"
|
|
32
|
+
>Subscribe</button>
|
|
33
|
+
@if (subscribed) {
|
|
34
|
+
<p class="sidebar-widget__success-msg">Thanks for subscribing!</p>
|
|
35
|
+
}
|
|
36
|
+
</div>
|
|
37
|
+
`,
|
|
38
|
+
styles: [`
|
|
39
|
+
.sidebar-widget {
|
|
40
|
+
background: #fff;
|
|
41
|
+
border-radius: 12px;
|
|
42
|
+
padding: 20px;
|
|
43
|
+
margin-bottom: 16px;
|
|
44
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sidebar-widget__title {
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
color: #111827;
|
|
51
|
+
margin-bottom: 12px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sidebar-widget__category-link {
|
|
55
|
+
display: block;
|
|
56
|
+
padding: 8px 0;
|
|
57
|
+
color: #4f46e5;
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
border-bottom: 1px solid #f3f4f6;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sidebar-widget__category-link:hover {
|
|
64
|
+
color: #4338ca;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sidebar-widget__description {
|
|
68
|
+
font-size: 13px;
|
|
69
|
+
color: #6b7280;
|
|
70
|
+
margin-bottom: 12px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sidebar-widget__input {
|
|
74
|
+
width: 100%;
|
|
75
|
+
padding: 10px 12px;
|
|
76
|
+
border: 1px solid #d1d5db;
|
|
77
|
+
border-radius: 8px;
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
margin-bottom: 8px;
|
|
80
|
+
outline: none;
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.sidebar-widget__input:focus {
|
|
85
|
+
border-color: #4f46e5;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.sidebar-widget__subscribe-btn {
|
|
89
|
+
width: 100%;
|
|
90
|
+
padding: 10px;
|
|
91
|
+
background: #4f46e5;
|
|
92
|
+
color: #fff;
|
|
93
|
+
border: none;
|
|
94
|
+
border-radius: 8px;
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.sidebar-widget__subscribe-btn:hover {
|
|
101
|
+
background: #4338ca;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.sidebar-widget__success-msg {
|
|
105
|
+
margin-top: 8px;
|
|
106
|
+
color: #059669;
|
|
107
|
+
font-size: 13px;
|
|
108
|
+
}
|
|
109
|
+
`]
|
|
110
|
+
})
|
|
111
|
+
export class BlogSidebarComponent {
|
|
112
|
+
categories: string[] = ['Angular', 'TypeScript', 'CSS', 'Node.js', 'DevOps'];
|
|
113
|
+
email = '';
|
|
114
|
+
subscribed = false;
|
|
115
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { RouterLink } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
export interface BlogPost {
|
|
5
|
+
id: number;
|
|
6
|
+
title: string;
|
|
7
|
+
excerpt: string;
|
|
8
|
+
content: string;
|
|
9
|
+
category: string;
|
|
10
|
+
author: string;
|
|
11
|
+
date: string;
|
|
12
|
+
readTime: string;
|
|
13
|
+
image: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'app-post-card',
|
|
18
|
+
standalone: true,
|
|
19
|
+
imports: [RouterLink],
|
|
20
|
+
template: `
|
|
21
|
+
<a [routerLink]="'/post/' + post.id" class="post-card">
|
|
22
|
+
<div class="post-card__image">{{ post.image }}</div>
|
|
23
|
+
<div class="post-card__body">
|
|
24
|
+
<span class="post-card__category">{{ post.category }}</span>
|
|
25
|
+
<h3 class="post-card__title">{{ post.title }}</h3>
|
|
26
|
+
<p class="post-card__excerpt">{{ post.excerpt }}</p>
|
|
27
|
+
<div class="post-card__meta">
|
|
28
|
+
<span>{{ post.author }}</span>
|
|
29
|
+
<span>{{ post.date }}</span>
|
|
30
|
+
<span>{{ post.readTime }}</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</a>
|
|
34
|
+
`,
|
|
35
|
+
styles: [`
|
|
36
|
+
.post-card {
|
|
37
|
+
display: block;
|
|
38
|
+
background: #fff;
|
|
39
|
+
border-radius: 12px;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-decoration: none;
|
|
42
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
43
|
+
transition: transform 0.2s, box-shadow 0.2s;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.post-card:hover {
|
|
47
|
+
transform: translateY(-2px);
|
|
48
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.post-card__image {
|
|
52
|
+
font-size: 48px;
|
|
53
|
+
text-align: center;
|
|
54
|
+
padding: 24px;
|
|
55
|
+
background: #f3f4f6;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.post-card__body {
|
|
59
|
+
padding: 20px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.post-card__category {
|
|
63
|
+
font-size: 12px;
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
color: #4f46e5;
|
|
66
|
+
text-transform: uppercase;
|
|
67
|
+
letter-spacing: 0.05em;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.post-card__title {
|
|
71
|
+
font-size: 18px;
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
color: #111827;
|
|
74
|
+
margin: 8px 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.post-card__excerpt {
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
color: #6b7280;
|
|
80
|
+
line-height: 1.5;
|
|
81
|
+
margin-bottom: 12px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.post-card__meta {
|
|
85
|
+
display: flex;
|
|
86
|
+
gap: 12px;
|
|
87
|
+
font-size: 12px;
|
|
88
|
+
color: #9ca3af;
|
|
89
|
+
}
|
|
90
|
+
`]
|
|
91
|
+
})
|
|
92
|
+
export class PostCardComponent {
|
|
93
|
+
@Input() post!: BlogPost;
|
|
94
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'app-about',
|
|
5
|
+
standalone: true,
|
|
6
|
+
template: `
|
|
7
|
+
<div class="about-page">
|
|
8
|
+
<div class="about-card">
|
|
9
|
+
<div class="about-card__avatar">๐ฉโ๐ป</div>
|
|
10
|
+
<h1 class="about-card__label">About the Author</h1>
|
|
11
|
+
<h2 class="about-card__name">Jane Developer</h2>
|
|
12
|
+
<p class="about-card__bio">
|
|
13
|
+
Full-stack developer with over 8 years of experience building web applications.
|
|
14
|
+
Passionate about Angular, TypeScript, and creating elegant solutions to complex problems.
|
|
15
|
+
When not coding, you can find me writing tutorials and contributing to open source.
|
|
16
|
+
</p>
|
|
17
|
+
<div class="about-card__stats">
|
|
18
|
+
<div class="about-card__stat">
|
|
19
|
+
<span class="about-card__stat-value">150+</span>
|
|
20
|
+
<span class="about-card__stat-label">Articles</span>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="about-card__stat">
|
|
23
|
+
<span class="about-card__stat-value">50K+</span>
|
|
24
|
+
<span class="about-card__stat-label">Readers</span>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="about-card__stat">
|
|
27
|
+
<span class="about-card__stat-value">8+</span>
|
|
28
|
+
<span class="about-card__stat-label">Years</span>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
`,
|
|
34
|
+
styles: [`
|
|
35
|
+
.about-page {
|
|
36
|
+
max-width: 640px;
|
|
37
|
+
margin: 0 auto;
|
|
38
|
+
padding: 48px 24px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.about-card {
|
|
42
|
+
background: #fff;
|
|
43
|
+
border-radius: 16px;
|
|
44
|
+
padding: 40px;
|
|
45
|
+
text-align: center;
|
|
46
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.about-card__avatar {
|
|
50
|
+
font-size: 72px;
|
|
51
|
+
margin-bottom: 16px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.about-card__label {
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
color: #4f46e5;
|
|
58
|
+
text-transform: uppercase;
|
|
59
|
+
letter-spacing: 0.05em;
|
|
60
|
+
margin-bottom: 8px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.about-card__name {
|
|
64
|
+
font-size: 28px;
|
|
65
|
+
font-weight: 800;
|
|
66
|
+
color: #111827;
|
|
67
|
+
margin-bottom: 16px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.about-card__bio {
|
|
71
|
+
font-size: 16px;
|
|
72
|
+
color: #374151;
|
|
73
|
+
line-height: 1.7;
|
|
74
|
+
margin-bottom: 32px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.about-card__stats {
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
gap: 48px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.about-card__stat {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.about-card__stat-value {
|
|
89
|
+
font-size: 24px;
|
|
90
|
+
font-weight: 700;
|
|
91
|
+
color: #4f46e5;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.about-card__stat-label {
|
|
95
|
+
font-size: 13px;
|
|
96
|
+
color: #6b7280;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (max-width: 768px) {
|
|
100
|
+
.about-card {
|
|
101
|
+
padding: 24px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.about-card__stats {
|
|
105
|
+
gap: 24px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.about-card__name {
|
|
109
|
+
font-size: 22px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`]
|
|
113
|
+
})
|
|
114
|
+
export class AboutComponent {}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { PostCardComponent } from '../components/post-card.component';
|
|
4
|
+
import { BlogPost } from '../components/post-card.component';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-category',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [PostCardComponent],
|
|
10
|
+
template: `
|
|
11
|
+
<div class="category-page">
|
|
12
|
+
<h1 class="category-page__heading">Category: {{ slug }}</h1>
|
|
13
|
+
<div class="category-page__grid">
|
|
14
|
+
@for (post of filtered; track post.id) {
|
|
15
|
+
<app-post-card [post]="post" />
|
|
16
|
+
}
|
|
17
|
+
</div>
|
|
18
|
+
@if (filtered.length === 0) {
|
|
19
|
+
<p class="category-page__empty-message">
|
|
20
|
+
No posts found in this category.
|
|
21
|
+
</p>
|
|
22
|
+
}
|
|
23
|
+
</div>
|
|
24
|
+
`,
|
|
25
|
+
styles: [`
|
|
26
|
+
.category-page {
|
|
27
|
+
max-width: 1100px;
|
|
28
|
+
margin: 0 auto;
|
|
29
|
+
padding: 32px 24px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.category-page__heading {
|
|
33
|
+
font-size: 28px;
|
|
34
|
+
font-weight: 700;
|
|
35
|
+
color: #111827;
|
|
36
|
+
margin-bottom: 24px;
|
|
37
|
+
text-transform: capitalize;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.category-page__grid {
|
|
41
|
+
display: grid;
|
|
42
|
+
grid-template-columns: repeat(3, 1fr);
|
|
43
|
+
gap: 20px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.category-page__empty-message {
|
|
47
|
+
color: #6b7280;
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
text-align: center;
|
|
50
|
+
padding: 48px 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (max-width: 768px) {
|
|
54
|
+
.category-page__grid {
|
|
55
|
+
grid-template-columns: 1fr;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`]
|
|
59
|
+
})
|
|
60
|
+
export class CategoryComponent implements OnInit {
|
|
61
|
+
slug = '';
|
|
62
|
+
filtered: BlogPost[] = [];
|
|
63
|
+
|
|
64
|
+
private posts: BlogPost[] = [
|
|
65
|
+
{
|
|
66
|
+
id: 1,
|
|
67
|
+
title: 'Getting Started with Angular 19',
|
|
68
|
+
excerpt: 'Learn the latest features...',
|
|
69
|
+
content: '',
|
|
70
|
+
category: 'Angular',
|
|
71
|
+
author: 'Jane Developer',
|
|
72
|
+
date: '2024-12-15',
|
|
73
|
+
readTime: '5 min',
|
|
74
|
+
image: '๐
ฐ๏ธ',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 2,
|
|
78
|
+
title: 'TypeScript Best Practices',
|
|
79
|
+
excerpt: 'Write better TypeScript...',
|
|
80
|
+
content: '',
|
|
81
|
+
category: 'TypeScript',
|
|
82
|
+
author: 'John Coder',
|
|
83
|
+
date: '2024-12-10',
|
|
84
|
+
readTime: '7 min',
|
|
85
|
+
image: '๐',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 3,
|
|
89
|
+
title: 'CSS Grid Mastery',
|
|
90
|
+
excerpt: 'Master CSS Grid layouts...',
|
|
91
|
+
content: '',
|
|
92
|
+
category: 'CSS',
|
|
93
|
+
author: 'Jane Developer',
|
|
94
|
+
date: '2024-12-05',
|
|
95
|
+
readTime: '6 min',
|
|
96
|
+
image: '๐จ',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 4,
|
|
100
|
+
title: 'RxJS Patterns',
|
|
101
|
+
excerpt: 'Essential reactive patterns...',
|
|
102
|
+
content: '',
|
|
103
|
+
category: 'Angular',
|
|
104
|
+
author: 'Mike RxJS',
|
|
105
|
+
date: '2024-11-28',
|
|
106
|
+
readTime: '8 min',
|
|
107
|
+
image: '๐',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: 5,
|
|
111
|
+
title: 'Node.js Performance Tips',
|
|
112
|
+
excerpt: 'Optimize your Node.js apps...',
|
|
113
|
+
content: '',
|
|
114
|
+
category: 'Node.js',
|
|
115
|
+
author: 'John Coder',
|
|
116
|
+
date: '2024-11-20',
|
|
117
|
+
readTime: '6 min',
|
|
118
|
+
image: '๐ข',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 6,
|
|
122
|
+
title: 'Testing Strategies',
|
|
123
|
+
excerpt: 'Comprehensive testing guide...',
|
|
124
|
+
content: '',
|
|
125
|
+
category: 'DevOps',
|
|
126
|
+
author: 'Jane Developer',
|
|
127
|
+
date: '2024-11-15',
|
|
128
|
+
readTime: '9 min',
|
|
129
|
+
image: '๐งช',
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
constructor(private route: ActivatedRoute) {}
|
|
134
|
+
|
|
135
|
+
ngOnInit(): void {
|
|
136
|
+
this.slug = this.route.snapshot.paramMap.get('slug') || '';
|
|
137
|
+
this.filtered = this.posts.filter(
|
|
138
|
+
(p: BlogPost) => p.category.toLowerCase() === this.slug.toLowerCase()
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
}
|