A beautiful, responsive website hosted on GitHub Pages with four sample pages.
- Git installed on your system
- GitHub CLI (
gh) installed - Download here - A GitHub account
-
Navigate to this directory in PowerShell:
cd c:\Work\7_GitHubPages
-
Run the setup script with your desired repository name:
.\setup-github-pages.ps1 -RepoName "my-awesome-website"
Or with a custom description:
.\setup-github-pages.ps1 -RepoName "my-awesome-website" -Description "My personal portfolio site"
-
Wait for deployment: The script will create the repository, push the code, and enable GitHub Pages. Your site will be live in a few minutes!
- ✅ Checks if GitHub CLI is installed
- ✅ Verifies GitHub authentication
- ✅ Initializes a git repository
- ✅ Commits all files
- ✅ Creates a public GitHub repository
- ✅ Pushes code to GitHub
- ✅ Enables GitHub Pages
- ✅ Provides your website URL
- Home (index.html) - Landing page with hero section and features
- About (about.html) - About page with skills and background
- Projects (projects.html) - Portfolio/projects showcase
- Contact (contact.html) - Contact information and form
Simply edit the HTML files to change the content. The files are well-structured and commented.
All styles are in styles.css. You can modify colors, fonts, spacing, and more by editing the CSS variables at the top of the file:
:root {
--primary-color: #0366d6;
--secondary-color: #28a745;
/* ... more variables ... */
}- Create a new HTML file following the same structure as the existing pages
- Add a link to it in the navigation menu of all pages
- Commit and push your changes
After making changes to your site:
git add .
git commit -m "Description of your changes"
git pushGitHub Pages will automatically rebuild your site within a few minutes.
The website is fully responsive and looks great on:
- 💻 Desktop computers
- 📱 Tablets
- 📱 Mobile phones
- HTML5
- CSS3 (with CSS Grid and Flexbox)
- Vanilla JavaScript (minimal, for form handling)
- GitHub Pages for hosting
Feel free to use this template for your own projects!
This is a template project, but suggestions are welcome! Feel free to open issues or submit pull requests.
If you encounter any issues with the setup script or have questions, please open an issue in the GitHub repository.
Built with ❤️ using GitHub Pages