-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (82 loc) · 3.88 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mi Proyecto</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css">
</head>
<body>
<header role="banner">
<h1>Bienvenidos a Mi Proyecto</h1>
</header>
<section class="animacion-3d">
<script type="module" src="https://unpkg.com/@splinetool/viewer@1.5.4/build/spline-viewer.js"></script>
<spline-viewer url="https://prod.spline.design/fKwdgJkPdlLSeYNR/scene.splinecode"></spline-viewer>
</section>
<main role="main">
<section class="imagenes-titulo">
<h2>Imágenes del Proyecto</h2>
</section>
<section class="media">
<div class="imagen-container" onclick="toggleFullScreen(this)">
<img src="images/imagen1.png" alt="Descripción de la imagen 1">
</div>
<div class="imagen-container" onclick="toggleFullScreen(this)">
<img src="images/imagen2.png" alt="Descripción de la imagen 2">
</div>
<div class="imagen-container" onclick="toggleFullScreen(this)">
<img src="images/imagen3.png" alt="Descripción de la imagen 3">
</div>
<div class="imagen-container" onclick="toggleFullScreen(this)">
<img src="images/imagen4.png" alt="Descripción de la imagen 4">
</div>
</section>
<section class="video-titulo">
<h2>Video</h2>
</section>
<section class="video">
<iframe class="lazy-iframe" data-src="https://www.youtube.com/embed/videoseries?list=PLXC_gcsKLD6l3eNixPfgjngvGXnOMroK-" frameborder="0" width="560" height="315" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</section>
</main>
<footer role="contentinfo">
<div class="redes-sociales">
<a href="https://www.instagram.com/nahuelsgauna/" target="_blank" class="btn btn-primary btn-lg" rel="noopener noreferrer">
<i class="bi bi-instagram"></i> Instagram
</a>
<a href="https://www.linkedin.com/in/nahuelgauna/" target="_blank" class="btn btn-primary btn-lg" rel="noopener noreferrer">
<i class="bi bi-linkedin"></i> LinkedIn
</a>
</div>
<p>© 2024 Nahuel Gauna</p>
</footer>
<script>
function toggleFullScreen(element) {
if (!document.fullscreenElement) {
element.requestFullscreen().catch(err => {
alert(`Error al intentar activar el modo pantalla completa: ${err.message}`);
});
} else {
document.exitFullscreen();
}
}
document.addEventListener("DOMContentLoaded", function() {
const lazyIframes = document.querySelectorAll('iframe.lazy-iframe');
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const iframe = entry.target;
iframe.src = iframe.getAttribute('data-src');
observer.unobserve(iframe);
}
});
});
lazyIframes.forEach(iframe => {
observer.observe(iframe);
});
});
</script>
</body>
</html>