agregue mi cv en un visor pdf, falta agregar el botón de descarga

This commit is contained in:
David Itehua Xalamihua 2025-08-27 17:38:31 -06:00
parent 5dceeb5b70
commit 7d96f55670
7 changed files with 276 additions and 248 deletions

View File

@ -7,6 +7,8 @@ v = {
'me': 'more_info/about_me.html',
'np': 'new_posts.html',
'pjs': 'more_info/personal_projects.html',
'cv': 'static/source_imgs/cv/CV_David_Itehua_Xalamihua.pdf'
'cv': 'more_info/cv.html'
}
}
# 'cv': 'static/source_imgs/cv/CV_David_Itehua_Xalamihua.pdf'

View File

@ -127,8 +127,12 @@ def projects():
@app.route('/more-info/cv')
def cv():
filePath=v['m.i.']['cv']
return send_file(filePath, as_attachment=True)
return render_template(v['m.i.']['cv'])
# @app.route('/more-info/cv')
# def cv():
# filePath=v['m.i.']['cv']
# return send_file(filePath, as_attachment=True)
# solo ayuda dix template
@app.route('/ayuda-template')

View File

@ -1,7 +1,9 @@
blinker==1.9.0
cachelib==0.13.0
click==8.1.8
et_xmlfile==2.0.0
Flask==3.1.0
Flask-Caching==2.3.1
itsdangerous==2.2.0
Jinja2==3.1.5
MarkupSafe==3.0.2

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
iframe {
width: 90%;
height: 90vh;
}
</style>
<iframe src="https://1drv.ms/b/c/94fb71847d00f5d9/IQTZ9QB9hHH7IICUNaQJAAAAATl7DPlSGna-Ko1PodcD8Wc" frameborder="0" scrolling="no"></iframe>
</body>
</html>