Back to Templates
Modern Website Template
A modern website template built with Next.js and Tailwind CSS.
Framework | Next.js |
Use Case | Brand Websites |
Modern Website Template
A modern website template built with Next.js and Tailwind CSS.
Technology Stack
- Frontend Framework: Next.js
- Style Scheme: Tailwind CSS
- UI Components: shadcn/ui
- Type System: TypeScript
- Code Standards: ESLint + Prettier
Features
- ๐ฑ Responsive design, perfectly adapted to various devices
- ๐จ Modern UI design, based on the shadcn/ui component library
- โจ Dynamic components (Client Components) and static rendering (Server Components) via Next.js App Router
- ๐ SEO friendly (using Next.js metadata API)
- ๐ป TypeScript support, providing complete type definitions
Page List
- ๐ Homepage (
/
) - ๐ About Us (
/about
) - ๐ผ Projects (
/projects
) - ๐ค Partners (
/partners
) - ๐ Contact Us (
/contact
)
Quick Start
-
Clone the project
git clone YOUR_PROJECT_ADDRESS_HERE cd YOUR_PROJECT_DIRECTORY
-
Install dependencies
npm install
-
Start the development server
npm run dev
-
Build the production version
npm run build
Project Structure
โโโ app/ ## App Router pages and layouts
โ โโโ api/ ## API routes
โ โโโ [pages]/ ## Individual pages (e.g., about, projects)
โ โโโ layout.tsx ## Root layout
โโโ components/ ## Reusable components
โ โโโ layout/ ## Layout specific components (Header, Footer)
โ โโโ projects/ ## Project related components (ProjectCard)
โ โโโ ui/ ## shadcn/ui components
โ โโโ scroll-button.tsx ## Scroll button component
โ โโโ testimonial-slider.tsx ## Testimonial slider component
โโโ lib/ ## Utility functions and data
โ โโโ data.ts ## Data definitions (projects, partners, testimonials etc.)
โ โโโ utils.ts ## Utility functions (cn helper)
โโโ public/ ## Static assets
โโโ .eslintrc.js ## ESLint configuration
โโโ .prettierrc ## Prettier configuration
โโโ next.config.js ## Next.js configuration
โโโ package.json ## Project dependencies and scripts
โโโ tailwind.config.js ## Tailwind configuration
โโโ tsconfig.json ## TypeScript configuration
Configuration File Explanation
Key data and configurations are managed in:
lib/data.ts
: Contains data for projects, partners, and testimonials.tailwind.config.js
: Customizes Tailwind CSS settings.next.config.js
: Next.js specific configurations.
Development Guidelines
Component Development Standards
- Develop components using TypeScript.
- Use PascalCase for component naming.
- Define and use appropriate Props types.
- Follow the project's established style guidelines, prioritizing Tailwind CSS.
- Clearly indicate Client Components with
"use client"
.
Style Development Standards
- Primarily use Tailwind CSS utility classes.
- Ensure responsiveness using Tailwind's breakpoints.
- Maintain consistency in colors, spacing, and typography based on
tailwind.config.js
.
Page Development Standards
- Utilize the root
app/layout.tsx
for consistent page structure. - Implement necessary SEO metadata using Next.js Metadata API.
- Ensure responsive design and performance for all pages.
Contribution Guidelines
- Fork the project.
- Create a feature branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -m 'feat: Add your feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a Pull Request.