A modern, elegant personal blog and portfolio built with Next.js, TypeScript, and Tailwind CSS. Features include blog posts, LeetCode solutions, project showcases, photo albums, and more.
- π Built with Next.js 15 and TypeScript
- π Styled with Tailwind CSS and Rose Pine theme
- π MDX support for blog posts and documentation
- π Full-text search with kbar
- π Dark/Light mode support
- π± Responsive design
- π GitHub integration
- π· Photo album gallery
- π RSS feed support
- πΊοΈ Sitemap generation
- Framework: Next.js 15
- Language: TypeScript
- Styling: Tailwind CSS
- Content: MDX with Content Collections
- Deployment: Vercel/Cloudflare
zero/
βββ app/ # Next.js app directory
β βββ blog/ # Blog pages
β βββ leetcode/ # LeetCode solutions
β βββ projects/ # Project showcase
β βββ album/ # Photo gallery
βββ components/ # React components
βββ lib/ # Utility functions and constants
βββ styles/ # Global styles
βββ public/ # Static files
β βββ blog/ # Blog content (synced from external repo)
βββ content/ # Content collections configuration
- Node.js 18+
- pnpm/npm/yarn/bun
- GitHub Personal Access Token (for GitHub integration)
- WakaTime API Key (optional, for coding stats)
- Clone the repository:
git clone https://github.com/chanshiyucx/zero.git
cd zero
- Install dependencies:
pnpm install
# or
npm install
# or
yarn install
# or
bun install
- Set up environment variables:
Create a .env
file in the root directory with the following variables:
# Required for GitHub integration
GITHUB_TOKEN=your_github_token
# Optional for WakaTime integration
WAKATIME_API_KEY=your_wakatime_api_key
- Sync blog content:
pnpm predev
# or
npm run predev
- Start the development server:
pnpm dev
# or
npm run dev
# or
yarn dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
To create a production build:
pnpm build
# or
npm run build
# or
yarn build
# or
bun run build
Then start the production server:
pnpm start
# or
npm start
# or
yarn start
# or
bun start
Contributions are always welcome! Please feel free to open an issue or create a pull request.
This project is MIT licensed.
Copyright Β© 2024 Reverie (θζι¨)
Made with β€οΈ by Reverie