new menubar mobile

This commit is contained in:
2025-03-05 15:13:56 -03:00
parent d366d2db97
commit 9599b31d69
5 changed files with 207 additions and 28 deletions

View File

@@ -381,3 +381,123 @@ input, textarea, select {
display: flex;
}
}
.header-mobile {
display: none;
justify-content: space-between;
align-items: center;
background-color: #171525;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
/* backdrop-filter: blur(5px); */
padding: 1rem;
padding-right: 50px;
padding-left: 10px;
position: fixed;
top: 0;
width: 100%;
z-index: 9999;
}
.header-mobile .logo {
display: flex;
align-items: center;
margin-left: 25px;
}
.header-mobile .logo i {
color: #fbbf24;
font-size: 2rem;
}
.header-mobile .logo span {
font-size: 1.25rem;
font-weight: bold;
margin-left: .5rem;
}
.header-mobile .nav-toggle {
display: block;
cursor: pointer;
background: none;
border: none;
padding-right: 0;
margin-right: 10;
}
.header-mobile .nav-toggle i {
color: white;
font-size: 1.5rem;
}
.header-mobile .nav-links {
max-width: 70%;
position: fixed;
top: 83px;
left: -100%;
width: 100%;
height: 100vh;
background-color: #222033b9;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: left 0.3s ease-in-out;
z-index: 9998;
}
.header-mobile .nav-links .nav-component{
width: 100%;
justify-items: center;
justify-content: space-between;
}
.header-mobile .nav-links.active {
left: 15%;
}
.header-mobile .nav-links a {
color: #a0aec0;
text-decoration: none;
font-size: 1.2rem;
margin: 1rem 0;
display: block;
width: 90%;
text-align: center;
padding: 1rem;
transition: all 0.3s;
}
.header-mobile .nav-links a:hover {
color: white;
scale: 1.1;
background-color: #373543;
box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
transition: all 0.3s ;
}
@media screen and (max-width: 768px) {
.background .bg1 {
max-height: 21.5%;
}
/* .nav-bar {
display: none;
} */
.header-mobile {
display: flex;
}
}