File size: 2,488 Bytes
f34a8a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<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>