This project is a simple blog website built using Next.js, a popular React framework. The website allows users to view a list of blog posts, read individual posts, and navigate between different pages. The project showcases the use of Next.js for creating dynamic pages, client-side routing, and styling with CSS modules.
- Home Page: Displays a welcome message and provides a link to the Blog page.
- Blog Page: Lists multiple blog post titles. Clicking on a title navigates to the respective Post page.
- Post Page: Displays the title, content, and date of a single blog post.
- About Page: Provides information about the website and its purpose.
- Modern Styling: Utilizes CSS modules for styling with modern and animated design.
- Responsive Design: Ensures the website looks great on various screen sizes.
- Ensure you have Node.js installed on your computer.
- Clone this repository using the following command:
git clone https://github.com/pathan-mehedi/module-11-assingment.git
- Navigate to the project directory:
cd module-11-assingment
- Install project dependencies:
npm install
- Run the development server:
npm run dev
- Open your web browser and go to http://localhost:3000 to view the website.
The website is deployed and accessible online at the following URL: https://mts-ostad11assingment-sample-blog.netlify.app/
You can find the source code for this project on GitHub: https://github.com/pathan-mehedi/module-11-assingment
- pages/
index.jsx
: Home pageblog.jsx
: Blog page listing post titles[id].jsx
: Individual post page using dynamic routingabout.jsx
: About page- data/
blogData.json
: JSON file containing blog post data- styles/
globals.css
: globals CSS stylesheader.module.css
: Styles for the header componentpost.module.css
: Styles for individual post pagetransitions.module.css
: Styles for page transitions- components/
Header.jsx
: Header component with navigation links- public/
favicon.ico
: Favicon for the website- node_modules/: Node.js dependencies (created after running "npm install")
package.json
: Project configuration and dependency listpackage-lock.json
: Detailed information about installed packagesREADME.md
: Project documentation and information.gitignore
: Specifies which files should not be tracked by Git