A beginner-friendly website project with GitHub Pages!
Welcome! This is a simple website you can customize and host for free on GitHub Pages. It's designed to help you learn Git and GitHub while creating something you can actually see and share!
| Resource | Link |
|---|---|
| π New to GitHub? | Start Here |
| β Track Progress | Learning Checklist |
| π Live Website | https://YOUR_USERNAME.github.io/github-training |
This project creates a simple, interactive website with:
- β Clean, modern design
- β Interactive elements (buttons, counters)
- β Color changer
- β Skills tracker
- β Mobile-friendly (works on phones!)
- β Your own personal touches!
- HTML - Structure of webpages
- CSS - Making things look pretty
- JavaScript - Adding interactivity
- Git - Tracking code changes
- GitHub - Storing and sharing code
- GitHub Pages - Free website hosting!
Follow the Step-by-Step Guide to create your own repository from scratch!
- Click the green "Use this template" button (if available)
- Or fork this repository
- Clone it to your computer:
git clone https://github.com/YOUR_USERNAME/github-training.git
cd github-training- Go to your repository on GitHub
- Click Settings β Pages
- Set Source to Deploy from a branch
- Select main branch, /(root) folder
- Click Save
- Wait 2-3 minutes for your site to go live!
github-training/
βββ .github/
β βββ workflows/ β GitHub Actions (auto-deploy)
β βββ deploy.yml β Publishes your site
β βββ validate.yml β Checks for errors
βββ css/
β βββ style.css β Makes the site look good
βββ js/
β βββ main.js β Makes the site interactive
βββ index.html β Main webpage (homepage)
βββ STEP_BY_STEP_GUIDE.md β Complete beginner tutorial
βββ LEARNING_CHECKLIST.md β Track your progress
βββ README.md β This file
Goal: Make the website yours!
- Open
index.html - Change the title:
<!-- Find this line -->
<title>My First Website - GitHub Training</title>
<!-- Change to your name -->
<title>Alice's Awesome Website</title>- Change the main heading:
<!-- Find this -->
<h1>π Welcome to My First Website!</h1>
<!-- Change to -->
<h1>π Welcome to Alice's Website!</h1>- Update the GitHub link in the footer:
<a href="https://github.com/alice" target="_blank">- Save, commit, and push:
git add index.html
git commit -m "Personalize website with my name"
git push origin main- Wait 2 minutes and refresh your live site!
Goal: Make the site match your style!
- Open
css/style.css - Find the header colors (around line 45):
header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);- Change to your favorite colors! Examples:
/* Ocean theme */
background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
/* Sunset theme */
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
/* Forest theme */
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);-
Find more gradients at uigradients.com
-
Also change the button color:
button {
background-color: #667eea; /* Change this color */- Commit and push!
Goal: Add an "About Me" section.
- In
index.html, find the closing</main>tag - Add this before it:
<!-- About Me Section -->
<section id="about-me">
<h2>About Me</h2>
<div class="card">
<h3>Hi, I'm [Your Name]!</h3>
<p>I'm learning web development and this is my first website.</p>
<p>Things I love:</p>
<ul>
<li>Coding</li>
<li>Learning new things</li>
<li>[Add your interests!]</li>
</ul>
</div>
</section>- Save and test locally (double-click index.html)
- Commit and push!
Goal: Add your photo to the site!
- Create a folder called
imagesin your project - Add a photo (name it
profile.jpgorprofile.png) - Add this to your HTML where you want the photo:
<img src="images/profile.jpg" alt="My photo" class="profile-photo">- Add CSS to make it look good:
.profile-photo {
width: 200px;
height: 200px;
border-radius: 50%; /* Makes it circular */
object-fit: cover;
border: 4px solid #667eea;
}- Commit and push!
Goal: Add an "About" page.
- Create
about.html:
<!DOCTYPE html>
<html>
<head>
<title>About Me</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<h1>About Me</h1>
</header>
<main>
<p>This is my about page!</p>
<a href="index.html">β Back to Home</a>
</main>
</body>
</html>- Add a link in
index.html:
<a href="about.html">About Me</a>- Commit and push both files!
Here are things you can add to make it unique:
- Change all the colors
- Add your own photos
- Add a favorites section (books, movies, etc.)
- Add a contact form
- Add animations
- Create a dark mode toggle
- Add a blog section
- Embed a YouTube video
- Add a music player
- Create a portfolio gallery
| Problem | Solution |
|---|---|
| Site not updating | Clear browser cache (Ctrl+Shift+R) |
| "404 Page Not Found" | Make sure index.html exists in the root |
| Changes not showing | Check that you committed AND pushed |
| Images not loading | Check the file path is correct |
| CSS not applying | Make sure the link path is correct |
- W3Schools - Free tutorials
- MDN Web Docs - Official documentation
- freeCodeCamp - Free courses
- Color Hunt - Color palettes
- Google Fonts - Free fonts
- Unsplash - Free photos
- GitHub Learning Lab - Interactive courses
- Git Cheat Sheet
Found a way to make this better?
- Fork this repository
- Make your changes
- Submit a Pull Request
Ideas:
- Add more exercises
- Improve documentation
- Add new interactive features
- Translate to other languages
- Save often (
Ctrl + S) - Test locally first (open HTML file in browser)
- Commit small changes (easier to fix mistakes)
- Write good commit messages (future you will thank you!)
- Don't be afraid to break things (Git saves your history!)
Once your site is live:
- Share the link with friends and family
- Post it on social media
- Add it to your resume/LinkedIn
- Keep improving it over time!
Happy coding! Your website is waiting to be built! π