agregue mi cv en un visor pdf, falta agregar el botón de descarga
This commit is contained in:
parent
5dceeb5b70
commit
7d96f55670
@ -7,6 +7,8 @@ v = {
|
|||||||
'me': 'more_info/about_me.html',
|
'me': 'more_info/about_me.html',
|
||||||
'np': 'new_posts.html',
|
'np': 'new_posts.html',
|
||||||
'pjs': 'more_info/personal_projects.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'
|
8
main.py
8
main.py
@ -127,8 +127,12 @@ def projects():
|
|||||||
|
|
||||||
@app.route('/more-info/cv')
|
@app.route('/more-info/cv')
|
||||||
def cv():
|
def cv():
|
||||||
filePath=v['m.i.']['cv']
|
return render_template(v['m.i.']['cv'])
|
||||||
return send_file(filePath, as_attachment=True)
|
|
||||||
|
# @app.route('/more-info/cv')
|
||||||
|
# def cv():
|
||||||
|
# filePath=v['m.i.']['cv']
|
||||||
|
# return send_file(filePath, as_attachment=True)
|
||||||
|
|
||||||
# solo ayuda dix template
|
# solo ayuda dix template
|
||||||
@app.route('/ayuda-template')
|
@app.route('/ayuda-template')
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
blinker==1.9.0
|
blinker==1.9.0
|
||||||
|
cachelib==0.13.0
|
||||||
click==8.1.8
|
click==8.1.8
|
||||||
et_xmlfile==2.0.0
|
et_xmlfile==2.0.0
|
||||||
Flask==3.1.0
|
Flask==3.1.0
|
||||||
|
Flask-Caching==2.3.1
|
||||||
itsdangerous==2.2.0
|
itsdangerous==2.2.0
|
||||||
Jinja2==3.1.5
|
Jinja2==3.1.5
|
||||||
MarkupSafe==3.0.2
|
MarkupSafe==3.0.2
|
||||||
|
20
templates/more_info/cv.html
Normal file
20
templates/more_info/cv.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user