forked from kishanrajput23/Awesome-Python-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnkur project
72 lines (64 loc) · 1.3 KB
/
Ankur project
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Kalyani's Resume</title>
</head>
<body>
<h1>
Kalyani's Resume
This page will contain my resume
</h1>
</body>
</html>
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template("index.html")
if "__name__" == "__main__":
app.run(debug=True)
//css code
body {
margin:0;
color: #333
font-family: verdana;
font-size: 20px;
background-color: rgb(201, 76, 76);
}
.styled {
background-color: #92a8d1;
font-family: verdana;
font-size: 20px;
}
//index html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ankur Resume</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css')}}">
</head>
<body>
<h1 class="styled">
Ankur Resume
This page will contain my resume
</h1>
</body>
</html>
The HTML code would look as follows:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ankur Resume</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css')}}">
</head>
<body>
<img src="/static/images/Ankur.jpg" height="200" />
<h1 class="styled">
Ankur Resume
</h1>
This page will contain my resume
</body>
</html>