![Project Banner](https://private-user-images.githubusercontent.com/26536607/354927227-427fbdad-f63e-44f5-a350-87c98a33bb49.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMwNzY0NTAsIm5iZiI6MTcyMzA3NjE1MCwicGF0aCI6Ii8yNjUzNjYwNy8zNTQ5MjcyMjctNDI3ZmJkYWQtZjYzZS00NGY1LWEzNTAtODdjOThhMzNiYjQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA4VDAwMTU1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA1NTc4MjdjZjZlYmNjNzEwOWFhOGY0ZTIzZTQwMzdlZjQyM2NjNWM0M2ViMjhjOTM5MmQ1MmNiMGIyOTY5YjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FL5lMMU4Efo_FmP1MiKJB0FkSIyG18YwrhhVTgdO_Io)
- 🤖 Introduction
- ⚙️ Tech Stack
- 🔋 Features
- 🤸 Quick Start
Built with Next.js for handling the user interface, Sanity.io for dynamic content, EmailJS for handling the emails, and styled with TailwindCSS, this blog website demonstrates the developer's skills in a unique manner that creates a lasting impact. The website has light and dark theme which further enhances the beauty and design of the website.
- Next.js
- Email JS
- Next Themes
- Tailwind CSS
- Sanity.io
👉 Hero Section: Introduced the author of the blogs for this website.
👉 Highlighted Blogs: Prominent display of some of the most highlighted blogs ever written.
👉 Recent Blogs: A few list of recent blogs and separate blog section where all the blogs are listed and the explore categories options to display the blogs based on their categories.
👉 Sanity.io Implementation: Utilized headless CMS of sanity.io to deliver the blogs and categories to the frontend dynamically.
👉 Responsiveness: Seamless adaptability across all devices, ensuring optimal viewing experience for every user.
and many more, including code architecture and reusability
Follow these steps to set up the project locally on your machine.
Prerequisites
Make sure you have the following installed on your machine:
Cloning the Repository
git clone https://github.com/ujstha/saroj-blog.git
cd saroj-blog
Installation
Install the project dependencies using npm:
npm install
Set Up Environment Variables
Create a new file named .env
in the root of your project and add the following content:
NEXT_PUBLIC_EMAILJS_SERVICE_ID=your_emailjs_service_id
NEXT_PUBLIC_EMAILJS_TEMPLATE_ID=your_emailjs_template_id
NEXT_PUBLIC_EMAILJS_PUBLIC_KEY=your_emailjs_public_key
NEXT_PUBLIC_RECIPIENT_NAME=your_name_to_send_email
NEXT_PUBLIC_RECIPIENT_EMAIL=your_email_used_to_send_email
NEXT_PUBLIC_SANITY_PROJECT_ID=your_sanity_project_id
NEXT_PUBLIC_SANITY_DATASET=your_sanity_dataset
Replace the placeholder values with your EmailJS, Sanity, and Sentry credentials. You can obtain EmailJS credentials by signing up on the EmailJS website. You can obtain Sanity credentials by signing up on the Sanity website.
Running the Project
npm run dev
Open http:https://localhost:3000 in your browser to view the project.