-
Notifications
You must be signed in to change notification settings - Fork 0
/
cv.html
182 lines (156 loc) · 4.06 KB
/
cv.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CV</title>
<link rel="shortcut icon" type="image/jpg" href="assets/favicon.png"/>
<!-- Archivos CSS de Bootstrap -->
<link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.min.js"></script>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="index.html">
<img src="assets/favicon.png" width="30" height="30" class="d-inline-block align-top" alt="">
Marco Yu Cordero
</a>
<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">
<li class="nav-item">
<a class="nav-link" href="about.html">Sobre mí</a>
</li>
<li class="nav-item">
<a class="nav-link" href="programs.html">Mis programas</a>
</li>
<li class="nav-item">
<a class="nav-link" href="cv.html">CV</a>
</li>
<li class="nav-item">
<a class="nav-link" href="15 puzzle.html">15 puzzle</a>
</li>
</ul>
</div>
</nav>
</header>
<main class="container">
<section id="mi-cv" class="section-divider">
<h1 class="my-4 text-center">Mi CV</h1>
<div id="cv-container">
<h2 id="nombre"></h2>
<p id="correo"></p>
<h2>Experiencia</h2>
<div class="cv-experiencia cv-subsection"></div>
<h2>Educación</h2>
<div class="cv-educacion cv-subsection"></div>
<h2>Habilidades</h2>
<ul class="cv-habilidades"></ul>
</div>
<div class="text-center my-4">
<button id="btn-generar-pdf" class="btn btn-primary button">Descargar CV en PDF</button>
</div>
</section>
</main>
<script src="cv/cv.js"></script>
<script>
fetch('cv/cv.json')
.then(response => response.json())
.then(data => {
const miCV = new CV(data);
miCV.imprimirHTML();
const btnGenerarPDF = document.getElementById('btn-generar-pdf');
btnGenerarPDF.addEventListener('click', () => {
miCV.generarPDF();
});
})
.catch(error => {
console.error('Error al cargar el CV:', error);
});
</script>
<canvas id="particle-canvas"></canvas>
<script src="particles.js"></script>
</body>
<style>
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: black;
}
header {
margin-bottom: 2rem;
}
#cv-container {
border: 1px solid #ccc;
padding: 2rem;
border-radius: 5px;
background-color: #f8f9fa;
}
section {
margin-bottom: 4rem;
}
h2 {
margin-top: 2rem;
}
.cv-section {
margin-bottom: 3rem;
}
.cv-subsection {
margin-bottom: 3rem;
margin-top: 2rem;
}
.section-divider {
margin-top: 3rem;
margin-bottom: 3rem;
border-bottom: 1px solid #ccc;
}
.navbar-nav {
margin-left: auto;
}
.navbar-brand {
padding-left: 15px;
padding-right: 15px;
}
.navbar-brand img {
margin-right: 15px;
}
html,
body {
margin: 0;
}
#particle-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: linear-gradient(to bottom, rgb(10, 10, 50) 0%, rgb(60, 10, 60) 100%);
z-index: -1;
}
.container {
position: relative;
z-index: 1;
}
h1.my-4.text-center {
color: white;
}
.button {
display: inline-block;
padding: 10px 20px;
background-color: #D76F30;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
width: 17%;
text-align: center;
}
.button:hover {
background-color: #c15f29;
}
</style>
</html>