Recicler / src /templates /components /header.html
castecabas's picture
Upload 84 files
f34a8a6 verified
Raw History Blame Contribute Delete
2.49 kB
<header>
<style>
body {
transition: all 0.15s ease-in;
}
header {
z-index: 9000;
display: flex;
justify-content: space-around;
min-height: min-content;
align-items: center;
padding: 10px;
background-color: white;
border-bottom: 1px solid #f3f3f3;
}
.logo {
max-height: 50px;
aspect-ratio: 1/1;
}
.nav-link {
text-decoration: none;
color: black;
font-weight: bold;
font-size: 18px;
margin: 15px 15px;
font-family: "Roboto", sans-serif;
text-wrap: nowrap;
}
.navbar a{
transition: ease 0.3s;
}
.navbar a:hover {
color: #20c721;
}
.navbar input.btn_darkmode {
display: none;
}
.navbar label:hover {
color: #20c721;
cursor: pointer;
}
@media (max-width: 800px) {
header {
flex-direction: column;
}
.navbar {
justify-content: center;
padding: 20px 10px 10px 10px;
}
}
/* MODO OSCURO */
body.dark-mode header {
background: rgb(29, 0, 28);
background: linear-gradient(
90deg,
rgba(29, 0, 28, 1) 0%,
rgba(11, 0, 34, 1) 8%,
rgba(0, 0, 22, 1) 100%
);
border-bottom: 1px solid #000030;
}
body.dark-mode header .navbar a,
body.dark-mode header .navbar label {
color: white;
}
body.dark-mode .navbar a:hover {
color: #00dd00;
}
body.dark-mode .navbar label:hover {
color: #20c721;
}
</style>
<img
alt="Logo de reciclaje"
src="{{ url_for('static', filename='img/logo.webp') }}"
class="logo"
/>
<div class="navbar">
<a href="{{ url_for('index') }}" class="nav-link"> Inicio </a>
<a href="{{ url_for('model') }}" class="nav-link"> Modelo </a>
<a href="{{ url_for('learn')}}" class="nav-link"> Aprender </a>
<a href="{{ url_for('recycle')}}" class="nav-link"> Reciclar </a>
<a href="{{ url_for('news')}}" class="nav-link"> Noticias </a>
<a href="{{ url_for('about')}}" class="nav-link"> Nosotros </a>
<label class="nav-link" for="darkModeToggle"
><input type="checkbox" class="btn_darkmode" id="darkModeToggle" /> Modo
Oscuro</label
>
</div>
<script src="{{ url_for('static', filename='js/dark_mode.js') }}"></script>
</header>