Init nav UI

This commit is contained in:
2023-07-17 15:47:16 +07:00
commit d0a548d7b4
24 changed files with 4374 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
.header {
position: relative;
display: flex;
justify-content: space-between;
max-width: $max-width;
min-width: $min-width;
padding: 24px;
margin: auto;
}
@media screen and (min-width: 840px) {
.header {
padding-top: 32px;
padding-inline: 24px;
gap: 10px;
}
.header-content {
display: flex;
justify-content: space-between;
gap: 10px;
width: 100%;
max-width: 918px;
height: auto;
}
}
+62
View File
@@ -0,0 +1,62 @@
.nav-list {
list-style: none;
transition: 0.1s;
position: fixed;
border: 2px solid $primary-color;
top: 0px;
right: -300px;
width: auto;
height: auto;
margin-top: 80px;
margin-right: 10px;
z-index: 2;
}
.nav-item {
font-size: 14px;
padding: 14px;
border-bottom: 1px solid $black;
&:last-child {
border-bottom: unset;
}
&:hover {
background-color: $secondary-color;
}
}
.nav-link {
text-decoration: none;
color: $black;
}
@media screen and (min-width: 840px) {
.nav {
margin: auto;
width: 100%;
height: auto;
}
.nav-list {
position: unset;
display: flex;
justify-content: space-between;
border: none;
margin: auto;
max-width: 600px;
}
.nav-item {
border-bottom: none;
padding: 0px;
&:hover {
background-color: unset;
}
}
.nav-link:hover {
color: $secondary-color;
}
}