I am working on personal portfolio project. I am facing two issues.
- In contact section of html, I am using anchor tag to link social media profile but its not working.
2)I have set the height of #welcome-section as 100vh, still its showing that “The height of the welcome section should be equal to the height of the viewport.” user story incomplete. Please help
Link to my codepen- https://codepen.io/ambali_zade/pen/BaRYjjy?editors=1100
HTML part
<html>
<head>
<script src="https://kit.fontawesome.com/77af9ebff2.js" crossorigin="anonymous"></script>
</head>
<navbar id="navbar">
<ul class="nav-list">
<li class="nav-item">
<a href="#about" class="nav-link">About </a>
</li>
<li class="nav-item">
<a href="#projects" class="nav-link">Projects</a>
</li>
<li class="nav-item">
<a href="#contact" class="nav-link">Contact</a>
</li>
</ul>
</navbar>
<section id="welcome-section">
<h1 id="about">Hello, I am Ambali </h1>
<p><I>An Aspiring Web Developer</I></p>
</section>
<section id="projects">
<h1>Projects</h1>
<div class="container">
<div class="project-tile">
<iframe height="300" style="width: 100%;" scrolling="no" title="" src="https://codepen.io/ambali_zade/embed/wvddVvj?default-tab=html%2Cresult" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
See the Pen <a href="https://codepen.io/ambali_zade/pen/wvddVvj">
</a> by Ambali Shirish Zade (<a href="https://codepen.io/ambali_zade">@ambali_zade</a>)
on <a href="https://codepen.io">CodePen</a>.
</iframe>
</div>
<div class="d2">
<iframe height="300" style="width: 100%;" scrolling="no" title="Survey form" src="https://codepen.io/ambali_zade/embed/jOmLBvJ?default-tab=html%2Cresult" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
See the Pen <a href="https://codepen.io/ambali_zade/pen/jOmLBvJ">
Survey form</a> by Ambali Shirish Zade (<a href="https://codepen.io/ambali_zade">@ambali_zade</a>)
on <a href="https://codepen.io">CodePen</a>.
</iframe>
</div>
<div class="d3">
<iframe height="300" style="width: 100%;" scrolling="no" title="Product landing page" src="https://codepen.io/ambali_zade/embed/oNWoxEw?default-tab=html%2Cresult" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
See the Pen <a href="https://codepen.io/ambali_zade/pen/oNWoxEw">
Product landing page</a> by Ambali Shirish Zade (<a href="https://codepen.io/ambali_zade">@ambali_zade</a>)
on <a href="https://codepen.io">CodePen</a>.
</iframe>
</div>
<div class="d4">
<p class="codepen" data-height="300" data-default-tab="html,result" data-slug-hash="RwVxwmm" data-user="ambali_zade" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
<span>See the Pen <a href="https://codepen.io/ambali_zade/pen/RwVxwmm">
Technical Documentation Page</a> by Ambali Shirish Zade (<a href="https://codepen.io/ambali_zade">@ambali_zade</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
</div>
</div>
<!-- CONTACT SECTION-->
<section id="contact">
<h2>Social Media</h2>
<a href="https://www.freecodecamp.org/ambali_zade" target="_blank">click here</a>
</section>
</html>
CSS
#navbar{
position: fixed;
width: 100%;
height: 100vh;
}
#welcome-section {
text-align: center;
font-size: 30px;
background: pink;
padding: 5%;
height: 100vh;
}
.nav-link {
text-decoration: none;
}
.nav-list {
background: skyblue;
margin: 0;
padding: 1rem;
display: flex;
justify-content: flex-end;
font-size: 25px;
align-items: center;
}
.nav-item{
list-style: none;
margin-right: 2rem;
}
.nav-item a {
color: black;
}
.nav-item a:hover {
color: blue;
}
.project-tile{
background:LightSkyBlue;
border: 1px solid red;
margin-left: 90px;
width:100%;
}
.d2{
background:LightSalmon;
border: 1px solid red;
margin-left: 130px;
width:100%;
}
.d3{
background:PaleTurquoise;
border: 1px solid red;
margin-left: 90px;
width:100%;
}
.d4{
background:LightPink;
border: 1px solid red;
margin-left: 130px;
width:100%;
}
.container {
font-size: 50px;
width: 100%;
background: LightGray;
display: grid;
grid-template-columns: 500px 500px;
grid-template-rows: 300px 300px;
grid-column-gap: 100px;
grid-row-gap: 50px;
}
#projects {
height: 200px;
text-align: center;
}
a {
text-decoration: none;
color: black;
font-size: 30px;
}
@media only screen and (max-width: 500px) {
body {
background-color: lightblue;
font-size: 20px;
}
}