-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
206 lines (186 loc) · 5.35 KB
/
index.html
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Guía turística de Lima - Descubre los mejores lugares y comidas de la ciudad"
/>
<title>Lima Guía Turística</title>
<style>
:root {
--primary-color: #2563eb;
--secondary-color: #1e40af;
--text-color: #1f2937;
--background-color: #f3f4f6;
--white: #ffffff;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: system-ui, -apple-system, sans-serif;
line-height: 1.5;
color: var(--text-color);
background-color: var(--background-color);
}
header {
background-color: var(--primary-color);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav {
display: flex;
padding: 1rem;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.logo-container {
display: flex;
align-items: center;
}
.logo-container img {
border-radius: 50%;
width: 60px;
height: 60px;
transition: transform 0.3s ease;
}
.logo-container img:hover {
transform: scale(1.1);
}
.nav-list {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-item {
color: var(--white);
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 0.25rem;
transition: background-color 0.3s ease;
}
.nav-item:hover,
.nav-item:focus {
background-color: var(--secondary-color);
outline: none;
}
/* Hamburger menu para móviles */
.menu-button {
display: none;
background: none;
border: none;
color: var(--white);
cursor: pointer;
padding: 0.5rem;
}
/* Media queries para responsividad */
@media (max-width: 768px) {
.menu-button {
display: block;
}
.nav-list {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: var(--primary-color);
flex-direction: column;
padding: 1rem;
text-align: center;
}
.nav-list.active {
display: flex;
}
}
/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
* {
transition: none !important;
}
}
/* Alto contraste */
@media (prefers-contrast: high) {
:root {
--primary-color: #0000ff;
--secondary-color: #000088;
--text-color: #000000;
--background-color: #ffffff;
}
}
/* puedo llamar a la clase banner y asignarle un style */
.banner {
margin: 20px;
height: 80px;
background-color: rgb(16, 137, 242);
color: #fff;
padding: 12px;
text-align: center;
font-size: 24px;
border-radius: 12px;
}
.hero {
background: url(https://www.peru.travel/Contenido/Destino/Imagen/es/8/1.4/Principal/lima-banner-3.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
height: 80vh;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
}
h1 {
text-shadow: 1px 1px 0 black,
/* Sombra en la parte inferior derecha */ -2px -2px 0 black,
/* Sombra en la parte superior izquierda */ -2px 2px 0 black,
/* Sombra en la parte inferior izquierda */ 2px -2px 0 black;
}
.btn-link {
background-color: rgb(16, 137, 242);
color: white;
text-decoration: none;
padding: 10px 20px;
border-radius: 8px;
}
</style>
</head>
<body>
<header>
<nav role="navigation" aria-label="Navegación principal">
<div class="logo-container">
<img
src="https://play-lh.googleusercontent.com/Q156GhBvXdhuRsgVIavCSj1i1xmNFlJtPdcRmR3M91Inh6BeDFqqpffZwX4A7e3PGg=w240-h480-rw"
alt="Logo de Lima Guía Turística"
loading="lazy"
/>
</div>
<button
class="menu-button"
aria-label="Abrir menú"
aria-expanded="false"
aria-controls="nav-list"
>
☰
</button>
<ul id="nav-list" class="nav-list">
<li><a href="#inicio" class="nav-item">Inicio</a></li>
<li><a href="#comidas" class="nav-item">Comidas</a></li>
<li><a href="#lugares" class="nav-item">Lugares</a></li>
</ul>
</nav>
</header>
<div class="hero">
<!-- si queremos crear una interacción y que el texto se escriba dentro del h1 -->
<h1>Bienvenido , a Lima!</h1>
<a href="./interactivo.html" class="btn-link">Quiero interactuar</a>
</div>
</body>
</html>