EdgeOne Logo
Back to Templates

Modern Website Template

A modern website template built with Next.js and Tailwind CSS.

View Demo
FrameworkNext.js
Use CaseBrand Websites
A modern website template built with Next.js and Tailwind CSS.

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

  1. Clone the project

    git clone YOUR_PROJECT_ADDRESS_HERE
    cd YOUR_PROJECT_DIRECTORY
    
  2. Install dependencies

    npm install
    
  3. Start the development server

    npm run dev
    
  4. 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

  1. Develop components using TypeScript.
  2. Use PascalCase for component naming.
  3. Define and use appropriate Props types.
  4. Follow the project's established style guidelines, prioritizing Tailwind CSS.
  5. Clearly indicate Client Components with "use client".

Style Development Standards

  1. Primarily use Tailwind CSS utility classes.
  2. Ensure responsiveness using Tailwind's breakpoints.
  3. Maintain consistency in colors, spacing, and typography based on tailwind.config.js.

Page Development Standards

  1. Utilize the root app/layout.tsx for consistent page structure.
  2. Implement necessary SEO metadata using Next.js Metadata API.
  3. Ensure responsive design and performance for all pages.

Contribution Guidelines

  1. Fork the project.
  2. Create a feature branch (git checkout -b feature/your-feature-name).
  3. Commit your changes (git commit -m 'feat: Add your feature').
  4. Push to the branch (git push origin feature/your-feature-name).
  5. Create a Pull Request.

License

MIT License

Deploy

Deploy with EdgeOne Pages