Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:

After trying some different ways to fix the issue i still not pass the media query and navbar test.

Your code so far

<!DOCTYPE html>
<html lang="en">

<head>
    <link rel="stylesheet" href="style.css">
    <script src="https://kit.fontawesome.com/846dbe9472.js" crossorigin="anonymous"></script>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Slab:wght@100;200;300;400;500;600;700;800;900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
        rel="stylesheet">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Portfolio</title>
</head>

<body>
    <!-- Navbar -->
    <header>
        <nav id="navbar">
            <ul class="nav-list">
                <li><a href="#welcome-section">About</a></li>
                <li><a href="#projects">Work</a></li>
                <li><a href="#contact">Contact</a></li>
            </ul>
        </nav>
    </header>
    <!-- Navbar end -->
    <!-- Welcome section -->
    <section id="welcome-section" class="welcome-section">
        <h1>Hey i am Marcel</h1>
        <p>a web devolober</p>
    </section>
    <!-- Welcome section end -->
    <!-- Projects section -->
    <section id="projects" class="projects">
        <h2 class="projects-section-header">Here are some of my projects</h2>
        <div class="projects-grid">
            <a href="C:/Users/marce/Dev/FrecodeCamp/TributePage/index.html" class="project project-tile" target="_blank">
                <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg" class="project-image" alt="Tribute Page img">
                <p class="project-title">
                    Tribute Page
                </p>
            </a>
            <a href="C:/Users/marce/Dev/FrecodeCamp/TributePage/index.html" class="project project-tile" target="_blank">
                <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg" class="project-image" alt="Tribute Page img">
                <p class="project-title">
                    Tribute Page
                </p>
            </a>
            <a href="C:/Users/marce/Dev/FrecodeCamp/TributePage/index.html" class="project project-tile" target="_blank">
                <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg" class="project-image" alt="Tribute Page img">
                <p class="project-title">
                    Tribute Page
                </p>
            </a>
            <a href="C:/Users/marce/Dev/FrecodeCamp/TributePage/index.html" class="project project-tile" target="_blank">
                <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg" class="project-image" alt="Tribute Page img">
                <p class="project-title">
                    Tribute Page
                </p>
            </a>
            <a href="../TributePage/index.html" class="project project-tile" target="_blank">
                <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg" class="project-image" alt="Tribute Page img">
                <p class="project-title">
                    Tribute Page
                </p>
            </a>
            <a href="C:/Users/marce/Dev/FrecodeCamp/TributePage/index.html" class="project project-tile" target="_blank">
                <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg" class="project-image" alt="Tribute Page img">
                <p class="project-title">
                    Tribute Page
                </p>
            </a>
        </div>
    </section>
    <!-- Projects section end -->
    <!-- Contact section -->
    <section id="contact" class="contact-section">
        <div class="contact-section-header">
            <h2>Let´s work together...</h2>
            <p>Together we will do better!</p>
        </div>
        <div class="contact-links">
            <a href="https://www.instagram.com/iammaarccii/" id="profile-link" class="profile-link" target="_blank"><i class="fa-brands fa-instagram"></i> Instagram</a>
            <a href="https://github.com/Maarccii" id="profile-link" class="profile-link" target="_blank"><i class="fa-brands fa-github"></i> GitHub</a>
            <a href="mailto:officialmaarccii@gmail.com" id="profile-link" class="profile-link" target="_blank"><i class="fa-solid fa-at"></i> Send a mail</a>
        </div>
    </section>
    <footer class="footer">&copy; Created by Marcel</footer>
</body>

</html>```

/* Some Media for responsive font-size */

@media only screen and (max-width: 30em) {
html {
font-size: 50%;
}
}

@media only screen and (max-width: 57.5em) {
html {
font-size: 55%;
}
}

@media only screen and (max-width: 80em) {
html {
font-size: 60%;
}
}

/* Base Set up */

:root {
–white: #f0f0f0;
–gray: #444444;
}

  • {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

html {
font-size: 62.5%;
scroll-behavior: smooth;
}

body {
font-family: ‘Montserrat’, sans-serif;
font-size: 2rem;
font-weight: 400;
line-height: 1.5;
color: var(–white);
}

ul {
list-style: none;
}

a {
text-decoration: none;
color: var(–white);
}

h1,
h2 {
font-family: ‘Roboto’, sans-serif;
font-weight: 500;
text-align: center;
}

h1 {
font-size: 4.5rem;
}

h2 {
font-size: 3.4rem;
}

header {
position: fixed;
}

/* Nav */

#navbar {
display: flex;
justify-content: flex-end;
position: fixed;
top: 0;
left: 0;
width: 100%;
background: #c91616;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.nav-list {
display: flex;
margin-right: 2rem;
}

.nav-list a {
display: block;
font-size: 2rem;
padding: 2rem;
}

.nav-list a:hover {
color: var(–white);
background-color: var(–gray);
}

@media only screen and (max-width: 28.75rem) {
#navbar {
justify-content: center;
}
.nav-list {
margin: 0 1.5rem;
}
}```

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 OPR/96.0.0.0

Challenge: Personal Portfolio Webpage - Build a Personal Portfolio Webpage

type or paste code here

You have duplicated the ids:

id="profile-link"

It is forbidden in html.

thanks Dobar. :slight_smile: i changed it but i still don´t pass both test´s.

The file name is styles.css.

Oh yes right. i forget i need to use styles for freecodecamp. Thank you very much. I would never have noticed that.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.