Repository navigation
Expand file tree
/
Copy pathapp.py
More file actions
31 lines (27 loc) · 1.77 KB
/
Copy pathapp.py
File metadata and controls
31 lines (27 loc) · 1.77 KB
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
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
#define our list of dictionaries where each dictionary represents a project (Image, Title, and Description)
projects = [{"image": "/static/images/project_1_img.jpg",
"title":"PROJECT TITLE 1",
"description": "Yuji Itadori is the main protagonist of the Jujutsu Kaisen series. He is the son of Jin Itadori and Kaori Itadori, and the grandson of Wasuke Itadori.",
"github": "https://github.com/"},
{"image": "/static/images/project_2_img.jpg",
"title":"PROJECT TITLE 2",
"description": "Megumi is a Jujutsu sorcerer utilizing the Ten Shadows Technique to fight against Curse Demons. Past his cold exterior, Megumi wishes to protect people he values.",
"github": "https://github.com/"},
{"image": "/static/images/project_3_img.jpg",
"title":"PROJECT TITLE 3",
"description": "Nobara Kugisaki is a first-year student at Tokyo Jujutsu High, an academy that trains students to fight Cursed Spirits using Cursed Techniques.",
"github": "https://github.com/"},
{"image": "/static/images/project_4_img.jpg",
"title":"PROJECT TITLE 4",
"description": "Suguru Geto is an antagonist in both the Jujutsu Kaisen series. He was originally a student of Masamichi Yaga's alongside Satoru Gojo and Shoko Ieiri at Tokyo Jujutsu High.",
"github": "https://github.com/"}]
return render_template('index.html', projects = projects)
@app.route('/contact')
def contact():
return render_template('contact.html')
if __name__ == '__main__':
app.run(debug=True)