Practice and reinforce the concepts from Lesson 1
Create and deploy a personal landing page in 15 minutes!
# Create project
mkdir personal-site
cd personal-site
# Initialize Git
git init
# Create initial file
echo "# Personal Site" > README.md
git add README.md
git commit -m "Initial commit"
Create index.html
:
<!DOCTYPE html>
<html>
<head>
<title>Your Name - Portfolio</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 40px 20px;
background: #f5f5f5;
}
.header {
background: linear-gradient(135deg, #ec008c, #fc6767);
color: white;
padding: 60px 40px;
border-radius: 10px;
text-align: center;
margin-bottom: 40px;
}
h1 { margin: 0; font-size: 2.5em; }
.tagline { opacity: 0.9; margin-top: 10px; }
.section {
background: white;
padding: 30px;
border-radius: 10px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.skills {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.skill {
background: #e3f2fd;
padding: 5px 15px;
border-radius: 20px;
font-size: 0.9em;
}
a {
color: #ec008c;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="header">
<h1>Your Name</h1>
<p class="tagline">Aspiring Developer | Git Enthusiast | Lifelong Learner</p>
</div>
<div class="section">
<h2>👋 About Me</h2>
<p>I'm learning web development and version control with Git. This is my first deployed website using GitHub Pages!</p>
</div>
<div class="section">
<h2>🚀 Skills</h2>
<div class="skills">
<span class="skill">HTML</span>
<span class="skill">CSS</span>
<span class="skill">Git</span>
<span class="skill">GitHub</span>
<span class="skill">Problem Solving</span>
</div>
</div>
<div class="section">
<h2>📫 Connect</h2>
<p>
GitHub: <a href="https://github.com/YOUR-USERNAME">@YOUR-USERNAME</a><br />
Email: your.email@example.com
</p>
</div>
<div class="section">
<h2>🎯 Current Goal</h2>
<p>Master Git and GitHub to collaborate on open source projects!</p>
</div>
</body>
</html>
# Stage the HTML file
git add index.html
# Commit with clear message
git commit -m "Add personal landing page with about, skills, and contact sections"
# View your commits
git log --oneline
personal-site
# Add remote
git remote add origin https://github.com/YOUR-USERNAME/personal-site.git
# Push to GitHub
git push -u origin main
Your site will be live at:
https://YOUR-USERNAME.github.io/personal-site/
Add these with new commits:
# Add improvements with new commits
# - Add meta tags for SEO
# - Add animations with CSS
# - Add dark mode toggle
# - Customize styling
git add .
git commit -m "Add enhancements"
git push
You've just:
Share your live URL with friends! 🎊