-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (147 loc) · 6.63 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Galería de Autos Deportivos</title>
<link rel="stylesheet" href="css/style.css">
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<header class="bg-secondary text-white text-center p-3">
<h1>Galería de Autos Deportivos</h1>
<h5>Para los amantes del lujo y la velocidad</h5>
</header>
<nav class="navbar navbar-expand-lg navbar-dark bg-secondary">
<div class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mx-auto">
<li class="nav-item active">
<a class="nav-link" href="#" onclick="showSection('home')">Inicio</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" onclick="showSection('gallery')">Galería</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" onclick="showSection('news')">Noticias</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" onclick="showSection('contact')">Contacto</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container mt-4">
<div class="banner">
<img src="banner.jpeg" class="img-fluid">
</div>
<div class="row" id="home">
<div class="col-lg-12">
<h2>Exhibición de autos deportivos</h2>
<iframe width="100%" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div class="row" id="gallery" style="display: none;">
<div class="col-sm-6 col-md-4 col-lg-3" data-aos="fade-up">
<div class="card">
<img src="aston.jpeg" class="card-img-top" alt="Aston Martin">
<div class="card-body">
<h5 class="card-title">Aston Martin</h5>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3" data-aos="fade-up">
<div class="card">
<img src="ferrari.jpeg" class="card-img-top" alt="Ferrari">
<div class="card-body">
<h5 class="card-title">Ferrari</h5>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3" data-aos="fade-up">
<div class="card">
<img src="lamb.jpeg" class="card-img-top" alt="Lamborghini">
<div class="card-body">
<h5 class="card-title">Lamborghini</h5>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3" data-aos="fade-up">
<div class="card">
<img src="bugatti.jpeg" class="card-img-top" alt="Bugatti">
<div class="card-body">
<h5 class="card-title">Bugatti</h5>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3" data-aos="fade-up">
<div class="card">
<img src="maserati.jpeg" class="card-img-top" alt="Maserati">
<div class="card-body">
<h5 class="card-title">Maserati</h5>
</div>
</div>
</div>
</div>
<div class="row" id="news" style="display:none;">
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="ferarri2.jpg" class="card-img-top" alt="Noticia 1">
<div class="card-body">
<h5 class="card-title">Se repite el milagro y recuperan otro Ferrari robado hace más de 20 años: ¿cómo lo han hecho?</h5>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="McLaren-Artura-Spider.jpg" class="card-img-top" alt="Noticia 2">
<div class="card-body">
<h5 class="card-title">McLaren Artura Spider: deportivo, híbrido enchufable y ahora también descapotable</h5>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="Ferrari-296-GTB.jpg" class="card-img-top" alt="Noticia 3">
<div class="card-body">
<h5 class="card-title">El Ferrari que solo van a tener cinco personas en todo el mundo</h5>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="cupra.jpg" class="card-img-top" alt="Noticia 4">
<div class="card-body">
<h5 class="card-title">DarkRebel, el lado más rebelde y futurista de Cupra</h5>
</div>
</div>
</div>
</div>
<div class="row" id="contact" style="display:none;">
<div class="col-lg-12 text-center">
<h2>Contacto</h2>
<p>Email: info@autosdeportivos.com</p>
<p>Teléfono: +1 123-456-7890</p>
</div>
</div>
</div>
<script>
function showSection(sectionId) {
const sections = document.querySelectorAll('.row');
sections.forEach(section => {
section.style.display = 'none'; // Oculta todas las secciones
});
document.getElementById(sectionId).style.display = 'flex'; // Muestra la sección deseada
}
</script>
<!-- Bootstrap JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.3/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>