Project Structure
Here's the recommended folder structure when using gettemplate templates:
my-project/
βββ components/
β βββ ui/ # Reusable UI components
β βββ layouts/ # Layout components
β βββ sections/ # Page sections (Hero, Features, etc.)
βββ pages/ # Next.js pages (or app/ for App Router)
β βββ _app.js
β βββ _document.js
β βββ index.js
βββ styles/
β βββ globals.css # Global styles + Tailwind imports
βββ lib/
β βββ utils.js # Utility functions
βββ public/
β βββ images/ # Static assets
βββ tailwind.config.js
βββ next.config.js
βββ package.jsonComponent Organization
We recommend organizing templates by category:
components/
βββ Hero/
β βββ KlipHeroSection.jsx
β βββ AgentoHeroSection.jsx
β βββ index.js
βββ Portfolio/
β βββ DeveloperPortfolio.jsx
β βββ DesignerPortfolio.jsx
βββ Payment/
β βββ CheckoutPage.jsx
β βββ PricingSection.jsx
βββ Forms/
βββ LoginForm.jsx
βββ SignupForm.jsxBest Practices
1.Keep components isolated - Each template should be self-contained
2.Use consistent naming - PascalCase for components
3.Extract reusable parts - Create shared UI components
4.Maintain clean imports - Use index files for exports
