eth da final
eth da final
ANS 1.
Process For creating Personal Webpage:-
¨ HTML Page
§ First of all we lay down the structure of our website using HTML.
§ Its like constructing a blue print of a building.
¨ CSS Page
¨ JAVASCRIPT Page
¨ Its like the brain in one’s body. It is used to provide
functioning in the code(Eg- functioning of a button)
Ans2-
10 points I learned during the creation of this webpage.
1. How to use Flex Attribute in CSS.
2. How to use icons using some external library(I used Font-Awesome
library)
3. How to use subclass and class in CSS.
4. Proper functioning and javascript of a scroll bar.
5. How to make the navigation bar stick to all the pages of our website.
6. How to use descriptive list and define terms tag in html.
7. How to make a proper scroll button and its functioning.
8. How to change the css if one uses the flex attribute.
9. I also learned about html block and inline.
10. I also learned about CSS animations.
ANS3.-
ANS4.-
Screenshots:-
HTML Code:-
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title> Varun Goel's Portfolio</title>
<link rel="stylesheet" href="style.css">
</div>
<div class="menu-btn">
<i class="fas fa-bars"></i>
</div>
</nav>
</div>
</div>
</div>
</section>
<br>
<br>
</div>
</div>
</section>
</div>
</div>
</div>
</section>
<script src="script.js"></script>
</body>
</html>
CSS Code:-
/* Google Font CDN Link */
@import
url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=U
buntu:wght@400;500;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
scroll-behavior: smooth;
}
background:#f9a525;
border-radius: 12px;
transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
background: #4070f4;
}
/* navbar styling */
nav{
position: fixed;
width: 100%;
padding: 20px 0;
z-index: 998;
transition: all 0.3s ease;
font-family: 'Ubuntu', sans-serif;
background-color: #3a58eb;
}
nav.sticky{
background: #8529f9;
;
padding: 13px 0;
}
nav .navbar{
width: 90%;
display: flex;
justify-content: space-between;
align-items: center;
margin: auto;
}
nav .navbar .logo a{
font-weight: 500;
font-size: 35px;
color: #fcfdff;
}
nav.sticky .navbar .logo a{
color: #00ff73;
}
nav .navbar .menu {
display: flex;
position: absolute;
margin-left: 550px;
font-size:20px ;
}
.home img {
height: 80vh;
width: 70%;
object-fit: cover;
margin-bottom: 0px;
border-radius: 100%;
margin: 0 auto;
margin-top: 50%;
float: right;
}
/* About Section Styling */
section{
padding-top: 40px;
}
section .content{
width: 80%;
margin: 40px auto;
font-family: 'Poppins', sans-serif;
}
.about .about-details{
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
section .title{
display: flex;
justify-content: center;
margin-bottom: 40px;
}
section .title span{
color:#F9A627;
font-size: 30px;
font-weight: 600;
position: relative;
padding-bottom: 8px;
}
section .title span::before,
section .title span::after{
content: '';
position: absolute;
height: 3px;
width: 100%;
background: #4070f4;
left: 0;
bottom: 0;
}
section .title span::after{
bottom: -7px;
width: 70%;
left: 50%;
transform: translateX(-50%);
}
.about .about-details .left{
width: 45%;
}
.about .left img{
height: 479px;
width: 354px;
object-fit: cover;
border-radius: 12px;
}
.about-details .right{
width: 55%;
top: 81px;
margin-left: 43%;
position: absolute;
}
section .topic{
color: #0E2431;
font-size: 25px;
font-weight: 500;
margin-bottom: 10px;
}
.about-details .right p{
text-align: justify;
color: #6e93f7;
}
/* Hobbies*/
.skills{
background: #080808f5;
}
.skills .content{
padding: 40px 0;
}
.skills .skills-details{
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
.skills-details .text{
width: 70%;
color: #6e93f7;
margin: 0 auto;
text-align: justify;
}
.skills-details p{
text-align: justify;
}
.skills-details .Some{
color: orange;
text-align: justify;
}
.skills-details dt strong,
.skills-details dt i{
font-size: x-large;
}
.skills-details dt i{
color: orange;
}
.skills .skills-details .experience{
display: flex;
align-items: center;
margin: 0 10px;
}
.skills-details .experience .num{
color: #0E2431;
font-size: 80px;
}
.skills-details .experience .exp{
color: #0E2431;
margin-left: 20px;
font-size: 18px;
font-weight: 500;
margin: 0 6px;
}
.skills-details .boxes{
width: 45%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.skills-details .box{
width: calc(100% / 2 - 20px);
margin: 20px 0;
}
.skills-details .boxes .topic{
font-size: 20px;
color: #4070f4;
}
.skills-details .boxes .per{
font-size: 60px;
color: #4070f4;
}
/* Need Of Webpage CSS */
.need .text p{
color: #6e93f7;
text-align: justify;
}
/* Contact Me CSS */
.contact{
background: #141414;
}
.contact .content{
margin: 0 auto;
padding: 30px 0;
}
.contact .text{
width: 80%;
text-align: center;
margin: auto;
}
.contact .media-icons a{
color: #5800ff;
font-size: 50px;
margin: 0 6px;
padding: 30px;
}
contact.sticky .media-icons a{
color: #FFF;
}
/* Footer CSS */
footer{
background: #4c505a;
text-align: center;
font-family: 'Poppins', sans-serif;
}
footer .text span{
font-size: 17px;
font-weight: 400;
color: #4c505a;
}
JavaScript Code:-
// Sticky Navigation Menu JS Code
let nav = document.querySelector("nav");
let scrollBtn = document.querySelector(".scroll-button a");
console.log(scrollBtn);
let val;
window.onscroll = function() {
if(document.documentElement.scrollTop > 20){
nav.classList.add("sticky");
scrollBtn.style.display = "block";
}else{
nav.classList.remove("sticky");
scrollBtn.style.display = "none";
}
}