An open API service indexing awesome lists of open source software.

https://github.com/harrryhe/harry-blog

A blog website developed using Next.js.
https://github.com/harrryhe/harry-blog

framer-motion giscus material-ui mdx motion next-themes nextjs react tailwind

Last synced: 8 months ago
JSON representation

A blog website developed using Next.js.

Awesome Lists containing this project

README

          

# Harry's Blog

A personal blog website built with Next.js + React + Tailwind + MDX

čĩžįžŽæ„šč€…

## 📌 About

This is a personal ~~website~~ blog I created to share tech-related posts and personal thoughts as I continue my journey of learning and life. It will be continuously updated with new features and UI improvements in the future.

## đŸ› ī¸ Stuff I used

- **MDX**
- **React**
- **Vercel**
- **Next.js**
- **Tailwind**
- **Material UI**
- **framer-motion**

## 🚩 Features

- **GitHub API**: Fetches GitHub repositories API to display the top 5 starred projects.
- **Dark/Light Mode**: Implements seamless theme switching using `next-themes`.
- **Blogs**: Utilizes MDX to process `.mdx` files and create a blog system.
- **Tag Cloud**: Generates a tag cloud by extracting tags from blog metadata.
- **Comments**: Integrates a comment system powered by `Giscus`.
- **Animations**: Implements smooth UI transitions and effects using `Framer Motion`.


# How to Run

## 🚀 Prerequisites

Make sure you have the following installed on your system:
- [Node.js](https://nodejs.org/) (version 16 or later)
- [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)

## đŸĒ„ Steps to Run

### 1. Clone the Repository

Use `git` to clone the project to your local machine:
```bash
git clone https://github.com/HarrryHe/Harry-Blog.git
cd Harry-Blog
```

### 2. Install Dependencies

Install the required dependencies using `npm` or `yarn`
```bash
npm install
```
or
```bash
yarn install
```

### 3. Start the Development Server

Run the following command to start the development server:
```bash
npm run dev
```
or
```bash
yarn dev
```

Open your browser and visit
```
http://localhost:3000
```

### 4. Customize Your Blog

Once you've started the development server, feel free to make this blog your own. You can:
- Modify existing components or add new ones.
- Customize the styles and layouts to suit your preferences.
- Update content, features, or designs to align with your personal information.

## 💭 Giscus Setting

### 1. Install Dependencies

Make sure you already ran `npm install` or `yarn install`. If not, you need to run
```bash
# Change npm with the package manager you use
npm i @giscus/react
```

### 2. Open the Discussions section in your GitHub repository settings:

Go to your repository settings on GitHub, and enable discussions.

### 3. Add Giscus into your project

Import the Giscus component:

```bash
import Giscus from '@giscus/react';
```

Add the component to your page (sample):

```bash

```

See more in
[Github Giscus Documentation](https://github.com/giscus/giscus-component)

## 🏠 Build for Production

To create an optimized production build, run:

```bash
npm run build
```
or
```bash
yarn build
```

You can then start the production server using:
```bash
npm run start
```
or
```bash
yarn start
```

## â¤ī¸ Contribution

Contributions are welcome! Fork the repository, make your changes, and open a pull request. Please keep your changes focused and well-documented. Thank you for your support! 🎉