-
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.
Merge branch 'main' of https://github.com/ddionteh/FED-Assignment-2 i…
…nto diontae
- Loading branch information
Showing
9 changed files
with
929 additions
and
350 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,154 +1,149 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&family=Roboto:wght@100;300;400&display=swap'); | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
font-family: 'Outfit', sans-serif; | ||
} | ||
|
||
body { | ||
height: 100vh; | ||
} | ||
|
||
/*nav */ | ||
nav { | ||
position: fixed; | ||
z-index: 2; | ||
display: flex; | ||
justify-content: space-between; | ||
max-width: 100%; | ||
width: 90vw; | ||
margin: auto; | ||
padding: 1.4rem 1rem; | ||
border-radius: 3rem; | ||
margin-top: 1rem; | ||
|
||
/* box-shadow: 0px 0px 3px rgb(254 116 62); */ | ||
} | ||
|
||
.logo { | ||
font-size: 1.3rem; | ||
font-weight: 600; | ||
|
||
} | ||
|
||
.logo a { | ||
color: #fff; | ||
text-decoration: none; | ||
} | ||
|
||
ul { | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
padding: 0; | ||
background-color: transparent; | ||
overflow: hidden; | ||
margin-bottom: 0; | ||
} | ||
|
||
li { | ||
padding: 0rem 1.1rem; | ||
float: left; | ||
} | ||
|
||
li a { | ||
color: #e96d3f; | ||
text-decoration: none; | ||
font-size: 1rem; | ||
font-weight: 600; | ||
letter-spacing: .7px; | ||
} | ||
|
||
ul li a { | ||
position: relative; | ||
} | ||
|
||
ul li a::before { | ||
content: ""; | ||
position: absolute; | ||
bottom: -6px; | ||
width: 100%; | ||
height: 3px; | ||
background-color: #fff; | ||
} | ||
|
||
/* Center Animation */ | ||
ul li a::before { | ||
transform: scale(0, 1); | ||
transition: transform .3s ease; | ||
} | ||
|
||
ul li a:hover::before { | ||
transform: scale(1, 1); | ||
} | ||
|
||
|
||
li a.active, | ||
li a:hover { | ||
color: #fff; | ||
transition: all .3s ease-in-out | ||
} | ||
|
||
#click { | ||
display: none; | ||
} | ||
|
||
.menu { | ||
display: none; | ||
} | ||
|
||
@media only screen and (max-width:1024px) { | ||
nav { | ||
max-width: 98%; | ||
} | ||
} | ||
|
||
@media only screen and (max-width:768px) { | ||
html { | ||
font-size: 80%; | ||
} | ||
|
||
nav { | ||
max-width: 100%; | ||
} | ||
} | ||
|
||
@media only screen and (max-width:480px) { | ||
html { | ||
font-size: 85%; | ||
} | ||
|
||
header { | ||
height: 100vh; | ||
} | ||
|
||
li { | ||
padding: 1rem 1.1rem; | ||
} | ||
|
||
.menu { | ||
display: block; | ||
font-size: 2rem; | ||
font-weight: bold; | ||
color: #fff; | ||
} | ||
|
||
ul { | ||
width: 100%; | ||
height: 100vh; | ||
position: absolute; | ||
display: flex; | ||
flex-direction: column; | ||
text-align: center; | ||
top: 4rem; | ||
left: -100%; | ||
background-color: #000000b5; | ||
} | ||
|
||
#click:checked~ul { | ||
left: 0%; | ||
transition: all 0.3s ease; | ||
} | ||
|
||
} | ||
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&family=Roboto:wght@100;300;400&display=swap"); | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
font-family: "Outfit", sans-serif; | ||
} | ||
|
||
body { | ||
height: 100vh; | ||
} | ||
|
||
/*nav */ | ||
nav { | ||
position: fixed; | ||
z-index: 2; | ||
display: flex; | ||
justify-content: space-between; | ||
max-width: 100%; | ||
width: 90vw; | ||
margin: auto; | ||
border: 0; | ||
background-color: #ffffff; /* White background */ | ||
border-bottom: 2px solid #000000; | ||
width: 100%; /* Set the width of the border to 100% */ | ||
} | ||
|
||
.logo { | ||
font-size: 1.3rem; | ||
font-weight: 600; | ||
} | ||
|
||
.logo a { | ||
color: #000000; | ||
text-decoration: none; | ||
} | ||
|
||
ul { | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
padding: 0; | ||
background-color: transparent; | ||
overflow: hidden; | ||
margin-bottom: 0; | ||
} | ||
|
||
li { | ||
padding: 0rem 1.1rem; | ||
float: left; | ||
} | ||
|
||
li a { | ||
color: #e96d3f; | ||
text-decoration: none; | ||
font-size: 1rem; | ||
font-weight: 600; | ||
letter-spacing: 0.7px; | ||
} | ||
|
||
ul li a { | ||
position: relative; | ||
} | ||
|
||
ul li a::before { | ||
content: ""; | ||
position: absolute; | ||
bottom: -6px; | ||
width: 100%; | ||
height: 3px; | ||
background-color: #000000; | ||
} | ||
|
||
/* Center Animation */ | ||
ul li a::before { | ||
transform: scale(0, 1); | ||
transition: transform 0.3s ease; | ||
} | ||
|
||
ul li a:hover::before { | ||
transform: scale(1, 1); | ||
} | ||
li a.active, | ||
li a:hover { | ||
color: #000000; | ||
transition: all 0.3s ease-in-out; | ||
} | ||
|
||
#click { | ||
display: none; | ||
} | ||
|
||
.menu { | ||
display: none; | ||
} | ||
|
||
@media only screen and (max-width: 1024px) { | ||
nav { | ||
max-width: 98%; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 768px) { | ||
html { | ||
font-size: 80%; | ||
} | ||
|
||
nav { | ||
max-width: 100%; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 480px) { | ||
html { | ||
font-size: 85%; | ||
} | ||
|
||
header { | ||
height: 100vh; | ||
} | ||
|
||
li { | ||
padding: 1rem 1.1rem; | ||
} | ||
|
||
.menu { | ||
display: block; | ||
font-size: 2rem; | ||
font-weight: bold; | ||
color: #fff; | ||
} | ||
|
||
ul { | ||
width: 100%; | ||
height: 100vh; | ||
position: absolute; | ||
display: flex; | ||
flex-direction: column; | ||
text-align: center; | ||
top: 4rem; | ||
left: -100%; | ||
background-color: #000000b5; | ||
} | ||
|
||
#click:checked ~ ul { | ||
left: 0%; | ||
transition: all 0.3s ease; | ||
} | ||
} |
Oops, something went wrong.