Tell us what’s happening:
im having trouble on the last step i did everything i could and it wont go trought what im i doing wrong?
Your code so far
<!-- file: index.html -->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Personal Portfolio</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Navbar -->
<nav id="navbar">
<a href="#welcome-section">Welcome</a>
<a href="#project-section">Projects</a>
<a href="#profile-link">Profile</a>
</nav>
<!-- Welcome Section -->
<section id="welcome-section">
<h1>Welcome to My Portfolio</h1>
<p>I am learning web development 🚀</p>
</section>
<!-- Projects Section -->
<section id="project-section">
<h2>My Projects</h2>
<div class="project-tile">
<p>Project 1: Simple Website</p>
<a href="https://example.com" target="_blank">View Project</a>
</div>
</section>
<!-- Profile Link -->
<div class="profile">
<a id="profile-link" href="https://github.com/yourusername" target="_blank">My GitHub Profile</a>
</div>
</body>
</html>
/* file: styles.css */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
}
/* Navbar */
#navbar {
width: 100vw; display: grid;
grid-template-columns: repeat(3, 1fr);
grid-column: 1/-1; position: fixed;
text-align: center;
background: gray;
height: 65px;
top: 0;
left: 0; z-index: 2;
}
#navbar a {
color: #fff;
text-decoration: none;
margin: 0 15px;
}
#navbar a:hover {
color: #f0db4f;
}
/* Welcome Section */
#welcome-section {
height: 100vh; /* Full viewport height */
background: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
#welcome-section h1 {
font-size: 3rem;
color: #333;
}
/* Projects Section */
#project-section {
padding: 50px;
background: #fafafa;
text-align: center;
}
#project-section h2 {
margin-bottom: 20px;
}
.project-tile {
margin: 20px auto;
padding: 20px;
max-width: 300px;
background: #eee;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.project-tile a {
text-decoration: none;
color: #333;
font-weight: bold;
}
/* Profile link */
.profile {
text-align: center;
padding: 20px;
}
#profile-link {
display: inline-block;
padding: 10px 15px;
background: #333;
color: #fff;
text-decoration: none;
border-radius: 5px;
}
#profile-link:hover {
background: #f0db4f;
color: #000;
}
/* Media query */
@media (max-width: 600px) {
#welcome-section h1 {
font-size: 2rem;
}
#navbar {
flex-direction: column;
}
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Challenge Information:
Build a Personal Portfolio - Build a Personal Portfolio
https://www.freecodecamp.org/learn/full-stack-developer/lab-personal-portfolio/build-a-personal-portfolio