### Clone and Install Project Dependencies
Source: https://github.com/ixartz/next-js-landing-page-starter-template/blob/master/README.md
Use this command to clone the starter template and install its dependencies. Ensure you have Node.js and npm installed.
```bash
git clone --depth=1 https://github.com/ixartz/Next-JS-Landing-Page-Starter-Template.git my-project-name
cd my-project-name
npm install
```
--------------------------------
### Build and Start Production Server
Source: https://github.com/ixartz/next-js-landing-page-starter-template/blob/master/README.md
Builds the project for production and starts a local server to preview the production build. HTML and CSS files are minified.
```bash
npm run build
npm run start
```
--------------------------------
### Run Development Server
Source: https://github.com/ixartz/next-js-landing-page-starter-template/blob/master/README.md
Starts the development server with live reload. Open http://localhost:3000 in your browser to view the project. Initial compilation may take time.
```bash
npm run dev
```
--------------------------------
### NPM Scripts for Development and Build
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
Common npm scripts for running the development server, building for production, linting, formatting, and type checking.
```bash
# Start development server with hot reload
npm run dev
# Opens http://localhost:3000
# Build for production
npm run build
# Start production server
npm run start
# Full production build (clean + build)
npm run build-prod
# Analyze bundle size
npm run build-stats
# Lint code with ESLint
npm run lint
# Format code with Prettier
npm run format
# TypeScript type checking
npm run check-types
```
--------------------------------
### Create Optimized Production Build
Source: https://github.com/ixartz/next-js-landing-page-starter-template/blob/master/README.md
Generates an optimized production build. All generated files are located in the 'out' folder, ready for deployment.
```bash
npm run build-prod
```
--------------------------------
### Application Configuration
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
Central configuration object for site-wide settings like name, title, and description. Used for consistent branding and SEO metadata.
```typescript
// src/utils/AppConfig.ts
export const AppConfig = {
site_name: 'My Company',
title: 'My Company - Professional Solutions',
description: 'We provide professional solutions for your business needs',
locale: 'en',
};
// Usage in Meta component
import { AppConfig } from '../utils/AppConfig';
```
--------------------------------
### Section Component for Layout
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
A responsive container for content sections with consistent max-width and padding. Supports optional title/description headers and custom vertical padding.
```typescript
// src/layout/Section.tsx
import { Section } from '../layout/Section';
// Basic section with content
Your content here
// Section with title and description
// Custom vertical padding
```
--------------------------------
### Meta Component for SEO
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
Handles SEO metadata including favicons, Open Graph tags, and document head configuration using Next SEO. Supports basic usage with app config and custom canonical URLs.
```typescript
// src/layout/Meta.tsx
import { Meta } from '../layout/Meta';
import { AppConfig } from '../utils/AppConfig';
// Basic usage with app config
// With canonical URL for SEO
```
--------------------------------
### Base Template Composition
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
The main layout component composing all sections of the landing page. Includes Meta, Hero, Sponsors, VerticalFeatures, Banner, and Footer.
```typescript
// src/templates/Base.tsx
import { Meta } from '../layout/Meta';
import { AppConfig } from '../utils/AppConfig';
import { Banner } from './Banner';
import { Footer } from './Footer';
import { Hero } from './Hero';
import { Sponsors } from './Sponsors';
import { VerticalFeatures } from './VerticalFeatures';
const Base = () => (
);
export { Base };
// Usage in pages/index.tsx
import { Base } from '../templates/Base';
const Index = () => ;
export default Index;
```
--------------------------------
### Logo Component Usage
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
Renders the site logo. Supports standard and extra-large sizes.
```typescript
// src/templates/Logo.tsx
import { Logo } from './Logo';
// Standard size logo (for footer)
// Extra-large logo (for navbar)
```
--------------------------------
### HeroOneButton Component for Hero Section
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
A centered hero component featuring a large title, description text, and a prominent call-to-action button. Ideal for landing page introductions.
```typescript
// src/hero/HeroOneButton.tsx
import { HeroOneButton } from '../hero/HeroOneButton';
import { Button } from '../button/Button';
import Link from 'next/link';
{'Build Amazing Products\n'}
Faster Than Ever
>
}
description="The easiest way to launch your next project in minutes."
button={
}
/>
```
--------------------------------
### CenteredFooter Component Usage
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
A centered footer including logo, navigation links, and social media icons. Requires Logo and Link components.
```typescript
// src/footer/CenteredFooter.tsx
import Link from 'next/link';
import { CenteredFooter } from '../footer/CenteredFooter';
import { Logo } from './Logo';
}
iconList={
<>
>
}
>
Home
About
Documentation
Contact
```
--------------------------------
### Background Component for Color Wrapper
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
A simple wrapper component that applies Tailwind CSS background color classes to its children. Useful for creating distinct visual sections.
```typescript
// src/background/Background.tsx
import { Background } from '../background/Background';
Content on gray background
Content on primary color background
```
--------------------------------
### CTABanner Component Usage
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
A call-to-action banner with a title, subtitle, and a button. Requires Link and Button components.
```typescript
// src/cta/CTABanner.tsx
import Link from 'next/link';
import { CTABanner } from '../cta/CTABanner';
import { Button } from '../button/Button';
}
/>
```
--------------------------------
### NavbarTwoColumns Component for Navigation
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
A responsive two-column navigation bar with a logo on the left and navigation links on the right. Suitable for site headers.
```typescript
// src/navigation/NavbarTwoColumns.tsx
import Link from 'next/link';
import { NavbarTwoColumns } from '../navigation/NavbarTwoColumns';
import { Logo } from './Logo';
}>
Features
Pricing
Documentation
Sign In
```
--------------------------------
### VerticalFeatureRow Component Usage
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
Displays a feature with an image, title, and description. Supports standard and reversed layouts.
```typescript
// src/feature/VerticalFeatureRow.tsx
import { VerticalFeatureRow } from '../feature/VerticalFeatureRow';
// Standard layout (image on right)
// Reversed layout (image on left)
```
--------------------------------
### Button Component for Call-to-Action
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
A styled button component with primary styling and an optional extra-large size variant. Uses styled-jsx for scoped CSS.
```typescript
// src/button/Button.tsx
import Link from 'next/link';
import { Button } from '../button/Button';
// Standard button
// Extra-large button for hero sections
```
--------------------------------
### Tailwind CSS Configuration
Source: https://context7.com/ixartz/next-js-landing-page-starter-template/llms.txt
Customizes Tailwind CSS with an extended color palette and typography settings for the landing page theme.
```javascript
// tailwind.config.js
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
fontSize: {
xs: '0.75rem',
sm: '0.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '4rem',
},
extend: {
colors: {
primary: {
100: '#E6F6FE',
200: '#C0EAFC',
300: '#9ADDFB',
400: '#4FC3F7',
500: '#03A9F4',
600: '#0398DC',
700: '#026592',
800: '#014C6E',
900: '#013349',
},
},
lineHeight: {
hero: '4.5rem',
},
},
},
plugins: [],
};
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.