This project provides a template for building a personal website that is easy to customize using JSON configuration files. Users can download the project, make changes to the JSON files, and launch their own website with their preferred styles and content.
- Easy customization of primary and secondary colors, fonts, font colors, font styles, etc.
- Content managed via JSON files.
- Lightweight and easy to deploy.
- No coding skills required for basic setup.
- A web browser.
- A text editor VSCode, Notepad, Notepad++ etc.
- Node.js installed locally https://nodejs.org/en/download/prebuilt-installer
- Clone the repository or Download the Zip:
Click on the Code button then copy the web url and enter the below command
git clone https://github.com/gouravbhardwaj/jsonpages.git
Click on the Code button and then click Download zip
- Navigate to the project directory:
cd personal-website-template
-
Open the content.json file in a text editor to update your personal details that you want to show in the UI.
-
Open the terminal/ command prompt in the project directory and enter npm run dev, this will start the server.
-
Visit http://localhost:3000 to see the changes.
To customize the look and feel of the template.
- Make changes to the index.js file inside the pages folder. You can update the primarColor and other values in the theme section to alter the basic look of the template.
const theme = {
primaryColor : 'blue-500',
secondaryColor : '',
font : '',
fontSize : '',
textColor : 'white',
}
- Make changes to the styleObj JSON variable to make advance styling changes.
const styleObj = {
backgroundColor : `bg-${theme.primaryColor}`,
foregroundColor : 'bg-gradient-to-r from-slate-900 via-slate-800 to-slate-900',
headerTextStyle : 'text-xl font-bold pb-4 flex gap-4',
blockBorderColor : `border-b-4 border-${theme.primaryColor} border-solid`,
blockStyle : '',
buttonStyle : `px-4 py-2 border-solid border-2 border-${theme.primaryColor} rounded-full`,
buttonColor : '',
buttonTextColor : 'text-white',
buttonHoverColor : '',
.....
- Save the index.js file and confirm your changes in the UI.
-
In you github/ bitbucket account upload the project in a new repository. (Create a new account if you don't already have one)
-
Create an account in Vercel (https://vercel.com/).
-
Connect github/ bitbucket account to your Vercel account.
-
Create a new project in Vercel and select the repository where you uploaded the project.
-
Deploy you code.
Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure your code follows the project's style guidelines and includes appropriate documentation.
This project is licensed under the MIT License. See the LICENSE file for more details.
Inspired by various personal website templates and customization approaches.