-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (79 loc) · 4.06 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
<!--
Proyecto: Portafolio Alura Latam
Desarrollado por: Ing. Héctor Osmel Méndez López
Licencia: MIT License
-->
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portafolio Alura Latam</title>
<link rel="stylesheet" href="./styles/style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<header class="header">
<button class="menu-toggle" id="menu-toggle">☰</button>
<nav class="header__menu" id="menu">
<a href="index.html" class="header__menu__link">Home</a>
<a href="about.html" class="header__menu__link">Sobre mí</a>
<a href="curriculum.html" class="header__menu__link">Curriculum</a>
</nav>
</header>
<main class="presentacion">
<section class="presentacion__contenido">
<h1 class="presentacion__contenido__titulo">Eleve tu negocio digital a otro nivel <strong
class="textoResaltado">con un Front-end de calidad!</strong></h1>
<p class="presentacion__contenido__texto">
¡Hola! Soy Ana García, desarrolladora Front-end con especialización en React, HTML y CSS. Ayudo a
pequeños negocios y diseñadores a llevar a cabo buenas ideas. ¿Hablamos?
</p>
<div class="presentacion__enlaces">
<h2 class="presentacion__enlaces__subtitulo">Accede a mis redes</h2>
<a class="presentacion__enlaces__link" href="https://www.instagram.com">
<img src="./assets/instagram.png" alt=""> Instagram</a>
<a class="presentacion__enlaces__link" href="https://github.com">
<img src="./assets/github.png" alt=""> Github</a>
<a class="presentacion__enlaces__link" href="https://www.linkedin.com">
<img src="./assets/linkedin.png" alt=""> Linkedin</a>
</div>
</section>
<img class="presentacion__imagen" src="./assets/Imagem.png" alt="Ana García trabajando">
</main>
<footer class="footer">
<p>© Desarrollado por <a class="footer__presentacion__enlaces" href="https://osmel-dev.vercel.app"
target="_blank" rel="noopener">Osmel Dev</a></p>
</footer>
<script>
document.addEventListener("DOMContentLoaded", function () {
function applyTheme(theme) {
if (theme === "dark") {
document.documentElement.style.setProperty("--color-primario", "#000000");
document.documentElement.style.setProperty("--color-secundario", "#F6F6F6");
document.documentElement.style.setProperty("--color-terciario", "#22D4FD");
document.documentElement.style.setProperty("--color-cuaternario", "#272727");
} else {
document.documentElement.style.setProperty("--color-primario", "#FFFFFF");
document.documentElement.style.setProperty("--color-secundario", "#000000");
document.documentElement.style.setProperty("--color-terciario", "#007BFF");
document.documentElement.style.setProperty("--color-cuaternario", "#DDDDDD");
}
}
const systemTheme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
applyTheme(systemTheme);
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", (e) => {
applyTheme(e.matches ? "dark" : "light");
});
document.getElementById("menu-toggle").addEventListener("click", function () {
document.getElementById("menu").classList.toggle("active");
});
document.querySelectorAll(".header__menu__link").forEach(link => {
link.addEventListener("click", () => {
document.getElementById("menu").classList.remove("active");
});
});
});
</script>
</body>
</html>