-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 75e4d5e
Showing
17 changed files
with
2,234 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
const sections = document.querySelectorAll('.section'); | ||
const sectBtns = document.querySelectorAll('.controls'); | ||
const sectBtn = document.querySelectorAll('.control'); | ||
const allSections = document.querySelector('.main-content'); | ||
|
||
|
||
function PageTransitions(){ | ||
//Button click active class | ||
for(let i = 0; i < sectBtn.length; i++){ | ||
sectBtn[i].addEventListener('click', function(){ | ||
let currentBtn = document.querySelectorAll('.active-btn'); | ||
currentBtn[0].className = currentBtn[0].className.replace('active-btn', ''); | ||
this.className += ' active-btn'; | ||
}) | ||
} | ||
|
||
//Sections Active Class | ||
allSections.addEventListener('click', (e) =>{ | ||
const id = e.target.dataset.id; | ||
if(id){ | ||
//Remove selected from the other buttons | ||
sectBtns.forEach((btn) =>{ | ||
btn.classList.remove('active') | ||
}) | ||
e.target.classList.add('active') | ||
|
||
//Hide other sections | ||
sections.forEach((section) =>{ | ||
section.classList.remove('active') | ||
}) | ||
|
||
const element = document.getElementById(id); | ||
element.classList.add('active'); | ||
} | ||
}) | ||
|
||
// Toggle theme | ||
const themeBtn = document.querySelector('.theme-btn'); | ||
themeBtn.addEventListener('click', () =>{ | ||
let element = document.body; | ||
element.classList.toggle('light-mode'); | ||
}) | ||
} | ||
|
||
PageTransitions(); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
.about-container{ | ||
grid-template-columns: 1fr; | ||
.right-about{ | ||
grid-template-columns: 1fr; | ||
padding-top: 2.5rem; | ||
} | ||
.left-about{ | ||
padding-right: 0; | ||
p{ | ||
padding-left: 0; | ||
} | ||
} | ||
} | ||
|
||
.timeline{ | ||
grid-template-columns: 1fr; | ||
padding-bottom: 6rem; | ||
} | ||
|
||
.portfolios{ | ||
grid-template-columns: 1fr; | ||
padding-bottom: 6rem; | ||
} | ||
|
||
.blogs{ | ||
grid-template-columns: 1fr; | ||
padding-bottom: 6rem; | ||
} | ||
|
||
.section{ | ||
padding: 2rem 2.5rem; | ||
} | ||
|
||
.main-title{ | ||
h2{ | ||
font-size: 2rem; | ||
span{ | ||
font-size: 2.5rem; | ||
} | ||
.bg-text{ | ||
font-size: 3rem; | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
@media screen and (max-width: 1432px){ | ||
header{ | ||
padding: 0 !important; | ||
} | ||
.section{ | ||
padding: 7rem 11rem; | ||
} | ||
.contact-content-con{ | ||
flex-direction: column; | ||
.right-contact{ | ||
margin-left: 0; | ||
margin-top: 2.5rem; | ||
} | ||
} | ||
|
||
.contact-content-con .right-contact .i-c-2{ | ||
flex-direction: column; | ||
} | ||
.contact-content-con .right-contact .i-c-2 :last-child{ | ||
margin-left: 0; | ||
margin-top: 1.5rem; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 1070px){ | ||
.about-container{ | ||
grid-template-columns: 1fr; | ||
.right-about{ | ||
padding-top: 2.5rem; | ||
} | ||
} | ||
|
||
.portfolios{ | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
.blogs{ | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
.main-title{ | ||
h2{ | ||
font-size: 4rem; | ||
span{ | ||
font-size: 4rem; | ||
} | ||
.bg-text{ | ||
font-size: 4.5rem; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media screen and (max-width: 970px){ | ||
.section{ | ||
padding: 7rem 6rem; | ||
} | ||
header{ | ||
padding: 0; | ||
} | ||
header .right-header{ | ||
padding: 0 !important; | ||
} | ||
|
||
.theme-btn{ | ||
width: 50px; | ||
height: 50px; | ||
} | ||
|
||
.header-content{ | ||
grid-template-columns: 1fr; | ||
padding-bottom: 6rem; | ||
} | ||
.left-header{ | ||
.h-shape{ | ||
display: none; | ||
} | ||
} | ||
.right-header{ | ||
grid-row: 1; | ||
width: 90%; | ||
margin: 0 auto; | ||
.name{ | ||
font-size: 2.5rem !important; | ||
} | ||
} | ||
.header-content .left-header .image{ | ||
margin: 0 auto; | ||
width: 90%; | ||
} | ||
.controls{ | ||
top: auto; | ||
bottom: 0; | ||
flex-direction: row; | ||
justify-content: center; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
width: 100%; | ||
background-color: var(--color-gray-5); | ||
.control{ | ||
margin: .6rem 2rem !important; | ||
} | ||
} | ||
} | ||
|
||
@media screen and (max-width: 700px){ | ||
.section{ | ||
padding: 7rem 3rem; | ||
} | ||
.about-stats{ | ||
.progress-bars{ | ||
grid-template-columns: 1fr; | ||
} | ||
} | ||
.main-title{ | ||
h2{ | ||
font-size: 3rem; | ||
span{ | ||
font-size: 3rem; | ||
} | ||
.bg-text{ | ||
font-size: 4rem; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.