Skip to content

Commit e22a97b

Browse files
authored
Create Ankur project
1 parent 1003a04 commit e22a97b

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

Ankur project

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Kalyani's Resume</title>
6+
</head>
7+
<body>
8+
<h1>
9+
Kalyani's Resume
10+
This page will contain my resume
11+
</h1>
12+
</body>
13+
</html>
14+
from flask import Flask, render_template
15+
16+
app = Flask(__name__)
17+
18+
@app.route('/')
19+
20+
def index():
21+
return render_template("index.html")
22+
23+
if "__name__" == "__main__":
24+
app.run(debug=True)
25+
//css code
26+
body {
27+
margin:0;
28+
color: #333
29+
font-family: verdana;
30+
font-size: 20px;
31+
background-color: rgb(201, 76, 76);
32+
}
33+
.styled {
34+
background-color: #92a8d1;
35+
font-family: verdana;
36+
font-size: 20px;
37+
}
38+
//index html
39+
<!DOCTYPE html>
40+
<html lang="en">
41+
<head>
42+
<meta charset="UTF-8">
43+
<title>Ankur Resume</title>
44+
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css')}}">
45+
</head>
46+
<body>
47+
48+
<h1 class="styled">
49+
Ankur Resume
50+
This page will contain my resume
51+
</h1>
52+
</body>
53+
</html>
54+
The HTML code would look as follows:
55+
56+
<!DOCTYPE html>
57+
<html lang="en">
58+
<head>
59+
<meta charset="UTF-8">
60+
<title>Ankur Resume</title>
61+
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css')}}">
62+
</head>
63+
<body>
64+
<img src="/static/images/Ankur.jpg" height="200" />
65+
<h1 class="styled">
66+
Ankur Resume
67+
</h1>
68+
This page will contain my resume
69+
</body>
70+
</html>
71+
72+

0 commit comments

Comments
 (0)