Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:
I’ve been trying to use the hover function to animate each social media whenever cursor is placed on them. Instead, it only works for the name on the social media without the icon and I want to treat each social media as whole so that the hover will be effective on both icon and text.
Your code so far

Let's work together..

How do you take your coffee?

<div class="social-media">

Facebook

GitHub

Twitter

<a href="example@example.com" id="profile-link" target='_blank'><i class="fa-solid fa-at" id="icon-logo"></i>Send a mail</a>   

 <a href="tel:555-555-5555" id="profile-link" target='_blank'><i class="fa-solid fa-mobile-screen" id="icon-logo"></i>Call me</a>
 </div>

**This is just a fake portfolio. All the projects and contact details given are not real.

<p>© Created for freeCodeCamp<a href="https://www.freecodecamp.com/"><i class="fa-solid fa-fire"></i></a></p>

/CSS PART/

contact {
background-color: var(–cool-blue);
width: 100%;
height: 80vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
.contact-header > p {
padding-top: 0.5rem;
font-style: italic;
font-family: ‘Zeyada’, cursive;
font-size: 18px;
}

.social-media {
padding-top: 3rem;
}

#profile-link {
justify-content: space-between;
font-weight: 300px;
font-size: 1.5rem;
}

#icon-logo {
font-size: 1.5rem;
padding: 0 0.5rem 0.5rem 0;
}

#profile-link:hover {
color: red;
padding-top: -20px;
transform: transition(3s ease-in-out);
}

footer {
border-top: 5px solid var(–neutral);
background-color: var(–cool-blue);
font-size: 1.2rem;
font-family: ‘Zeyada’, cursive;
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 2.3rem 10rem;
}

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/117.0.0.0 Safari/537.36 Edg/117.0.2045.47

Challenge: Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Link to the challenge:

Please go back and edit your post and use the following method to paste your HTML and CSS in here so it displays properly in here.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

Thanks, @bbsmooth I just created new post for the problem following the correct order,
Kindly view and give me solution to it whenever you can.

**Tell us what’s happening: **
I’ve been trying to use the hover function to animate each social media whenever cursor is placed on them. Instead, it only works for the name on the social media without the icon and I want to treat each social media as whole so that the hover will be effective on both icon and text.

** Personal Portfolio Webpage: Build a Personal Portfolio Webpage | freeCodeCamp.org**

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.

<!DOCTYPE html>
<html lang="en">
  <head>
   <title>Personal Portfolio Webpage</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css"> 
    <script src="https://kit.fontawesome.com/724410fc52.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=Amatic+SC&display=swap" rel="stylesheet">
  </head>
  <body> 
   <nav id="navbar">
    <ul class="nav-links">
      <li><a  href="#welcome-section" class="nav-link">About</a></li> 
      <li><a  href="#projects" class="nav-link">Work</a></li>
     <li><a  href="#contact" class="nav-link">Contact</a></li>
   </ul>
  </nav>

  <section id=welcome-section class="welcome-section">
   <h1>Hey, I am PrimeXV</h1>
   <p>A Full-stack Developer Inshallah</p> 
  </section>

  <section id="projects" class='projects'>
    <h2>These are some of my projects</h2>

    <div class="projects-grid">
       <a
          href="https://codepen.io/freeCodeCamp/full/zNqgVx"
          target="_blank"
        >
          <img
            src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg"
            alt="Tribute-Page"
            class="project-img"
          />
          <p class="project-tile">
            <span>&lt;</span>
            Tribute Page
            <span>/&gt;</span>
          </p>
        </a>
        
        <a
          href="https://codepen.io/freeCodeCamp/full/qRZeGZ""
          target="_blank"
        >
          <img
            src="https://cdn.freecodecamp.org/testable-projects-fcc/images/random-quote-machine.png"
            alt="Random Quote Machine"
            class="project-img"
          />
          <p class="project-tile">
            <span>&lt;</span>
            Random Quote Machine
            <span>/&gt;</span>
          </p>
        </a>

        <a
          href="https://codepen.io/freeCodeCamp/full/qRZeGZ""
          target="_blank"
        >
          <img
            src="https://cdn.freecodecamp.org/testable-projects-fcc/images/calc.png"
            alt="Javascript Calculator"
            class="project-img"
          />
          <p class="project-tile">
            <span>&lt;</span>
            Javascript Calculator
            <span>/&gt;</span>
          </p>
        </a>
 
        <a
          href="https://codepen.io/freeCodeCamp/full/qRZeGZ""
          target="_blank"
        >
          <img
            src="https://cdn.freecodecamp.org/testable-projects-fcc/images/map.jpg"
            alt="Map Data Across the Globe"
            class="project-img"
          />
          <p class="project-tile">
            <span>&lt;</span>
            Map Data Across the Globe
            <span>/&gt;</span>
          </p>
        </a>
 
        <a
          href="https://codepen.io/freeCodeCamp/full/qRZeGZ""
          target="_blank"
        >
          <img
            src="https://cdn.freecodecamp.org/testable-projects-fcc/images/wiki.png"
            alt="Wikipedia Viewer"
            class="project-img"
          />
          <p class="project-tile">
            <span>&lt;</span>
            Wikipedia Viewer
            <span>/&gt;</span>
          </p>
        </a>

        <a
          href="https://codepen.io/freeCodeCamp/full/qRZeGZ""
          target="_blank"
        >
          <img
            src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tic-tac-toe.png"
            alt="Tic Tac Toe Game"
            class="project-img"
          />
          <p class="project-tile">
            <span>&lt;</span>
            Tic Tac Toe Game
            <span>/&gt;</span>
          </p>
        </a>
   
   </div>

  <div id="show-all" class="show-all">
    <a
      href="https://codepen.io/FreeCodeCamp/"
      class="show-all"
    >Show all <i class="fa-solid fa-greater-than"></i>
    </a>
  </div>
  </section>

  <section id="contact" class="contact">
    
   <div class="contact-header" > 
    <h1>Let's work together..</h1>
    <p>How do you take your coffee?</p>
  </div>

    <div class="social-media">

  <a href="https://facebook.com/freecodecamp" id="profile-link" target='_blank'><i class="fa-brands fa-square-facebook" id="icon-logo"></i>Facebook</a>

  <a href="https://github.com/freecodecamp" id="profile-link" target='_blank'><i class="fa-brands fa-github" id="icon-logo"></i>GitHub</a>

   <a href="https://twitter.com/freecodecamp" id="profile-link" target='_blank'><i class="fa-brands fa-twitter" id="icon-logo"></i>Twitter</a>
  
    <a href="example@example.com" id="profile-link" target='_blank'><i class="fa-solid fa-at" id="icon-logo"></i>Send a mail</a>   
    
     <a href="tel:555-555-5555" id="profile-link" target='_blank'><i class="fa-solid fa-mobile-screen" id="icon-logo"></i>Call me</a>
     </div>

  </section>
<footer>
    <p>**This is just a fake portfolio. All the projects and contact details given are not real.</p>

    <p>© Created for freeCodeCamp<a href="https://www.freecodecamp.com/"><i class="fa-solid fa-fire"></i></a></p>
  </footer>
  </body>
</html>

:root {
  --body: #004643;
  --neutral: #e53170;
  --primary: #fff;
  --neutral-focus: #121629;
  --secondary: #f25f4c;
  --work-section: #191970;
  --cool-blue: #2C3E4C;
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
}

#navbar {
 width: 100%;
 position: fixed;
 display: flex;
 justify-content: flex-end;
 top: 0;
 left: 0;
 background-color: var(--neutral);
 padding: 1rem;

}

.nav-links {
  display: flex;
  flex-direction: row;
}

li {
  list-style: none;
}

a {
  font-size: 20px;
  text-decoration: none;
  padding: 1rem 2rem;
  color: var(--primary);
}

li > a:hover {
  background-color: #003366;
  padding: 1rem 1.5rem;
}

h1 {
  font-size: 60px;
  font-weight: 700;
}

#welcome-section {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  background-image: linear-gradient(
    62deg,
    #3a3d40 0%,
    #181719 100%
  );
}

#welcome-section > p {
  color: var(--secondary);
  font-size: 25px;
  font-weight: 100;
  font-style: italic;
  padding-top: 1rem;
}

@media screen and (max-width: 900px) {
  #projects{
    ;
  } 
    
}

.projects {
  background-color: var(--work-section);
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 8rem 2rem;
}

.projects > h2 {
  font-size: 40px;
  color: var(--primary);
  border-bottom: 2px solid brown;
  width: fit-content;
  margin: auto;
}  

.projects-grid {
  display: grid;
  padding-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 1.5rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  }

.project-img {
  height: calc(100% -  3rem);
  width: 100%;
  object-fit: cover;
}

.project-tile {
  color: var(--primary);
  width: 100%;
  background-color: #303843;
  padding: 1rem 0;
  text-align: center;
}

#show-all {
  padding-top: 5rem;
  background-color: green;
  display: flex;
  width: max-content;
  padding: 10px 19px;
  border-radius: 4px;
  flex-direction: center;
}

how-all {
  text-decoration: none;

  margin: auto;
}

.show-all, i {
  color: var(--primary);
  font-size: 1.2rem
}

.show-al:hover {
  background-color: var(--neutral);
}

@media screen and (max-width: 900px) {
  #contact{
    height: 60vh;
  } 
  #profile-link{
    
  }
  footer{
    font-size: 0.5rem;
    height: calc() 
    padding: none;
  }
}

.contact {
  background-color: var(--cool-blue);
  width: 100%;
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact-header > p {
  padding-top: 0.5rem;
  font-style: italic;
  font-family: 'Zeyada', cursive;
  font-size: 18px;
}

.social-media {
  padding-top: 3rem;
}

#profile-link {
  justify-content: space-between;
  font-weight: 300px;
  font-size: 1.5rem;
}

#icon-logo {
  font-size: 1.5rem;
  padding: 0 0.5rem 0.5rem 0;
}

#profile-link:hover {
  color: red;
  padding-top: -20px;
  transform: transition(3s ease-in-out);
}

footer {
  border-top: 5px solid var(--neutral);
  background-color: var(--cool-blue);
  font-size: 1.2rem;
  font-family: 'Zeyada', cursive;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 2.3rem 10rem; 
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.47

Challenge: Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Link to the challenge:

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