Skip to content

Commit

Permalink
contact
Browse files Browse the repository at this point in the history
  • Loading branch information
atongjonathan committed Nov 26, 2023
1 parent f8321a6 commit f0384f9
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 22 deletions.
Binary file added images/photo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
136 changes: 117 additions & 19 deletions index.html

Large diffs are not rendered by default.

26 changes: 24 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
document.addEventListener("DOMContentLoaded", ()=>{
showSection(document.getElementById("home"));
window.onscroll = ()=>{
let distanceScrolled = window.scrollY;
let arrowBtn = document.getElementById("arrow")
if (distanceScrolled>0)
if (distanceScrolled>10)
{
arrowBtn.style.visibility = "visible";
}
else{
arrowBtn.style.visibility = "hidden";
}
// console.log(distanceScrolled)
};
});
function showSection(section){
const sections = document.getElementsByClassName("section");
Array.from(sections).forEach((section)=>{
section.style.display = "none";
});

section.style.display = "block";
};

const links = document.getElementsByClassName("nav-link");
Array.from(links).forEach((nav)=>
{
let section = nav.dataset.section;
nav.addEventListener("click", ()=>
{
showSection(document.getElementById(`${section}`));
});

})

});
107 changes: 106 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ a > span
{
background-color: rgb(166 225 249);
}
.nav-link:active
{
background-color: rgb(40, 160, 207);
}

.main
.home
{
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -357,4 +361,105 @@ a{
font-size: 30px;
border-radius: 47%;
visibility: hidden;
z-index: 1;
}
.footer
{
text-align: center;
display: flex;
justify-content: center;
font-family: "Merriweather", serif;
}

/* Contact Page CSS */
.contact
{
width: 100%;
padding: 0 5%;
/* background-color: red; */
display: flex;
flex-direction: column;
row-gap: 20px;
}
.contact-me
{
width: 100%;

/* background-color: yellow; */
}
.contact-me-div
{
width: 100%;
display: flex;
justify-content: space-between;

/* background-color: blue; */
}
.my-photo-div
{
width: 45%;
height: 500px;
padding: 20px;
}
.my-photo
{
width: 100%;
height: 100%;
border-radius: 50%;
border: 4px solid black;

}
.contact-desc-div
{
width: 45%;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
row-gap: 5px;
padding: 50px 0;
}
.resume
{
width: 100%;
padding: 10px 20px;

}
.blogs
{
width: 100%;
}
.blogs-div
{
width: 100%;
display: flex;
justify-content: space-between;
}
.blogs-img-div
{
width: 45%;
order: 2;
}
.blogs-desc-div
{
width: 45%;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
row-gap: 5px;
/* background-color: yellow; */

}
.blog-btn
{
width: 100%;
padding: 10px 20px;
margin: 0;
}
.address-img-div
{
order: 0;
}

0 comments on commit f0384f9

Please sign in to comment.