Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sprattj11 authored Jun 4, 2023
0 parents commit 75e4d5e
Show file tree
Hide file tree
Showing 17 changed files with 2,234 additions and 0 deletions.
Binary file added Jason-Spratt-Resume.pdf
Binary file not shown.
45 changes: 45 additions & 0 deletions app.js
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();
Binary file added img/blog1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/blog2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/blog3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/me-pic.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/port1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/port2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/port3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/port4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/port5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/port6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
430 changes: 430 additions & 0 deletions index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions styles/_media.scss
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;
}
}
}
}
Loading

0 comments on commit 75e4d5e

Please sign in to comment.