@@ -94,14 +94,60 @@ class CV:
94
94
</div>
95
95
<div class="right"></div>
96
96
<div id="footer">
97
- <!-- No incluir el nombre y apellidos aquí -- >
97
+ <h2 id="name">{self.nombre_apellidos}</h2 >
98
98
</div>
99
99
"""
100
100
return html
101
101
102
- print("¡Bienvenido al Creador Básico de CVs de MG!")
102
+ print("¡Bienvenido al CV Generator de MG!")
103
103
104
104
cv = CV()
105
105
106
106
nombre_apellidos = input("Introduce tu nombre y apellidos: ")
107
107
cv.agregar_nombre_apellidos(nombre_apellidos)
108
+
109
+ email = input("Introduce tu email: ")
110
+ cv.agregar_email(email)
111
+ telefono = input("Introduce tu número de teléfono: ")
112
+ cv.agregar_telefono(telefono)
113
+
114
+ while True:
115
+ año_estudio = input("Introduce el año en el que cursaste tu formación: ")
116
+ titulo_estudio = input("Introduce el título de tu formación: ")
117
+ cv.agregar_estudio((año_estudio, titulo_estudio))
118
+ agregar_otro = input("¿Quieres añadir otro estudio? (s/n): ")
119
+ if agregar_otro.lower() != 's':
120
+ break
121
+
122
+ while True:
123
+ año_experiencia = input("Introduce el intervalo de tu experiencia laboral: ")
124
+ descripcion_experiencia = input("Introduce la descripción de esta experiencia laboral: ")
125
+ cv.agregar_experiencia((año_experiencia, descripcion_experiencia))
126
+ agregar_otra = input("¿Quieres añadir otra experiencia laboral? (s/n): ")
127
+ if agregar_otra.lower() != 's':
128
+ break
129
+
130
+ agregar_certificados = input("¿Quieres añadir certificados? (s/n): ")
131
+ if agregar_certificados.lower() == 's':
132
+ while True:
133
+ certificado = input("Introduce un certificado: ")
134
+ cv.agregar_certificado(certificado)
135
+ agregar_otro = input("¿Quieres añadir otro certificado? (s/n): ")
136
+ if agregar_otro.lower() != 's':
137
+ break
138
+
139
+ agregar_idiomas = input("¿Quieres añadir idiomas? (s/n): ")
140
+ if agregar_idiomas.lower() == 's':
141
+ while True:
142
+ idioma = input("Introduce un idioma: ")
143
+ cv.agregar_idioma(idioma)
144
+ agregar_otro = input("¿Quieres añadir otro idioma? (s/n): ")
145
+ if agregar_otro.lower() != 's':
146
+ break
147
+
148
+ cv_html = cv.generar_cv_html()
149
+
150
+ with open("cv_generado.html", "w") as file:
151
+ file.write(cv_html)
152
+
153
+ print("¡Gracias por usar CV Generator de MG! Tu CV ha sido generado como cv_generado.html!")
0 commit comments