-
Notifications
You must be signed in to change notification settings - Fork 172
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
maykos_launchbase
committed
Mar 17, 2020
1 parent
347f700
commit f85237e
Showing
7 changed files
with
232 additions
and
3 deletions.
There are no files selected for viewing
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
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
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,12 @@ | ||
let show = true; | ||
|
||
const menuSection = document.querySelector(".menu-section") | ||
const menuToggle = menuSection.querySelector(".menu-toggle") | ||
|
||
menuToggle.addEventListener("click", () => { | ||
|
||
document.body.style.overflow = show ? "hidden" : "initial" | ||
|
||
menuSection.classList.toggle("on", show) | ||
show = !show; | ||
}) |
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,20 @@ | ||
header, | ||
.hero, | ||
.image, | ||
#form { | ||
display: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.cards { | ||
display: block; | ||
} | ||
|
||
.card { | ||
border-bottom: 1px solid; | ||
} | ||
|
||
.text--medium { | ||
color: black; | ||
} |
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,104 @@ | ||
|
||
/* media queries */ | ||
html { | ||
font-size: 50%; | ||
} | ||
|
||
@media (max-width: 630px) { | ||
|
||
.hero .container { | ||
flex-direction: column; | ||
text-align: center; | ||
} | ||
|
||
.hero .container img { | ||
order: -1; | ||
} | ||
|
||
.form-group { | ||
display: block; | ||
} | ||
} | ||
|
||
@media (max-width: 540px) { | ||
nav { | ||
display: none; | ||
} | ||
|
||
.one, | ||
.two, | ||
.three { | ||
background-color: #fff; | ||
height: 5px; | ||
width: 100%; | ||
margin: 6px auto; | ||
|
||
transition-duration: 0.3s; | ||
} | ||
|
||
.menu-toggle { | ||
width: 40px; | ||
height: 30px; | ||
margin-right: 20px; | ||
} | ||
|
||
/* fullscreen */ | ||
.menu-section.on { | ||
position: absolute; | ||
top:0; | ||
left:0; | ||
|
||
width: 100vw; | ||
height: 100vh; | ||
|
||
background-color: #7159c1; | ||
|
||
z-index: 10; | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.menu-section.on nav { | ||
display: block; | ||
} | ||
|
||
.menu-section.on .menu-toggle { | ||
position: absolute; | ||
right: 25px; | ||
top: 15px; | ||
} | ||
|
||
.menu-section.on .menu-toggle .one { | ||
transform: rotate(45deg) translate(7px, 7px); | ||
} | ||
|
||
.menu-section.on .menu-toggle .two { | ||
opacity: 0; | ||
} | ||
|
||
.menu-section.on .menu-toggle .three { | ||
transform: rotate(-45deg) translate(8px, -9px); | ||
} | ||
|
||
.menu-section.on nav ul { | ||
text-align: center; | ||
display: block; | ||
} | ||
|
||
.menu-section.on nav ul a{ | ||
transition-duration: 0.5s; | ||
font-size: 3rem; | ||
line-height: 4rem; | ||
display: block; | ||
|
||
} | ||
|
||
} | ||
|
||
@media (max-width: 320px) { | ||
#form h3 { | ||
font-size: 2rem; | ||
} | ||
} |
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
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