This repository contains a portfolio template that can be used to showcase your work, skills, projects, and more. The template is built with HTML, CSS, and JavaScript.
- Responsive design
- Light/Dark mode toggle
- About Me section
- Resume section
- Projects section
- Research section
- Blog section
- Contact form
- Basic knowledge of HTML, CSS, and JavaScript
- A GitHub account
-
Clone the repository:
git clone https://github.com/your-username/your-repo-name.git cd your-repo-name
-
Customize the template:
Open the project in your favorite code editor and modify the HTML, CSS, and JavaScript files located in the
assets
folder to suit your needs. Update the following files:index.html
: Update personal information, section contents, etc.assets/css/lightmode.css
: Customize styles for the light mode.assets/css/darkmode.css
: Customize styles for the dark mode.assets/js/script.js
: Modify the JavaScript code if needed.
-
Add your content:
- Replace the placeholder images in the
assets/images
directory with your own images. - Update links, social media handles, and contact information in the
index.html
file.
- Replace the placeholder images in the
-
Create a new repository on GitHub:
Go to GitHub and create a new repository named
your-username.github.io
(replaceyour-username
with your GitHub username). -
Push the local repository to GitHub:
git remote add origin https://github.com/your-username/your-repo-name.git git branch -M main git push -u origin main
-
Create and switch to the
gh-pages
branch:git checkout --orphan gh-pages
-
Remove all files from the
gh-pages
branch:git rm -rf .
-
Copy the necessary files into the
gh-pages
branch:cp -r * ../
-
Add, commit, and push the changes:
git add . git commit -m "Initial commit for GitHub Pages" git push origin gh-pages
-
Enable GitHub Pages:
- Go to the repository settings on GitHub.
- Scroll down to the "GitHub Pages" section.
- Select the
gh-pages
branch as the source. - Click "Save".
-
Access your portfolio website:
Your portfolio should now be live at
https://your-username.github.io
.
Feel free to customize the template to better suit your needs. Here are some common customizations:
- Change Theme: Modify the CSS files to change the look and feel of the website.
- Add Sections: Add more sections by editing the
index.html
file. - Update Content: Replace the placeholder content with your own information.
- Optimize for SEO: Add meta tags, titles, and descriptions to improve search engine optimization.
If you'd like to contribute to this template, please fork the repository and use a feature branch. Pull requests are welcome.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
W.S.S.Perera - shashipraba.56@gmail.com