Skip to content

Commit 18d249a

Browse files
committed
Fixed all templates
1 parent 70c055c commit 18d249a

File tree

4 files changed

+56
-13
lines changed

4 files changed

+56
-13
lines changed

part2/reverse_flask_reza/project/static/bootstrap.min.css

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,40 @@
11
body {
2-
margin: 0;
3-
padding: 0;
2+
padding-top: 60px;
3+
padding-bottom: 40px;
4+
background-color: #eee;
5+
}
6+
7+
.container {
8+
width: auto;
9+
max-width: 680px;
10+
padding: 0 15px;
11+
}
12+
13+
.center {
14+
padding: 40px 15px;
415
text-align: center;
5-
}
6-
7-
.container{
8-
margin: 0 auto;
9-
text-align: left;
10-
width: 800px;
11-
position: relative;
12-
float: right;
13-
}
16+
}
17+
18+
19+
20+
21+
/* Sticky footer styles
22+
-------------------------------------------------- */
23+
html {
24+
position: relative;
25+
min-height: 100%;
26+
}
27+
body {
28+
/* Margin bottom by footer height */
29+
margin-bottom: 60px;
30+
}
31+
.footer {
32+
position: absolute;
33+
bottom: 0;
34+
width: 100%;
35+
/* Set the fixed height of the footer here */
36+
height: 60px;
37+
background-color: #f5f5f5;
38+
}
39+
40+
/* ************************************************ */

part2/reverse_flask_reza/project/templates/index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<html>
44
<head>
55
<title>Reversing string.</title>
6-
<link rel="stylesheet" type="text/css" href="main.css">
6+
<link href="{{ url_for('static', filename='css/main.css') }}" rel="stylesheet">
7+
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
78

89
</head>
910
<body>
@@ -14,6 +15,7 @@ <h2>Reverse your string!</h2>
1415
<input type="submit" value="Reverse!">
1516
</form>
1617
</div>
18+
1719

1820
</body>
1921
</html>

part2/reverse_flask_reza/project/templates/reversed.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
<!DOCTYPE html>
1+
<! DOCTYPE html>
22

33
<html>
4+
5+
<head>
6+
<title>Reversing string.</title>
7+
<link href="{{ url_for('static', filename='css/main.css') }}" rel="stylesheet">
8+
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
9+
10+
</head>
411

512
<div class="container">
613
<h2>Original String:</h2>

0 commit comments

Comments
 (0)