Skip to content

Commit 4379c51

Browse files
committed
Deleted files of Heroku master from Project4-WebDevelopment
1 parent 2382248 commit 4379c51

File tree

6 files changed

+141
-1
lines changed

6 files changed

+141
-1
lines changed
-1
This file was deleted.

Project4-WebDevelopmentApp/script.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from flask import Flask ,render_template
2+
3+
app=Flask(__name__)
4+
@app.route('/')
5+
def home():
6+
return render_template("homepage.html")
7+
8+
@app.route('/about/')
9+
def about():
10+
return render_template("about.html")
11+
if __name__=="__main__":
12+
print(__name__)
13+
app.run(debug=True)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
body {
2+
margin: 0;
3+
padding: 0;
4+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
5+
color: #060;
6+
}
7+
8+
/*
9+
* Formatting the header area
10+
*/
11+
12+
header {
13+
background-color: #DFB887;
14+
height: 35px;
15+
width: 100%;
16+
opacity: .9;
17+
margin-bottom: 10px;
18+
}
19+
20+
header h1.logo {
21+
margin: 0;
22+
font-size: 1.7em;
23+
color: #fff;
24+
text-transform: uppercase;
25+
float: left;
26+
}
27+
28+
header h1.logo:hover {
29+
color: #fff;
30+
text-decoration: none;
31+
}
32+
33+
/*
34+
* Center the body content
35+
*/
36+
37+
.container {
38+
width: 1200px;
39+
margin: 0 auto;
40+
}
41+
42+
div.homepage {
43+
padding: 10px 0 30px 0;
44+
background-color: #E6E6FA;
45+
-webkit-border-radius: 6px;
46+
-moz-border-radius: 6px;
47+
border-radius: 6px;
48+
}
49+
50+
div.about {
51+
padding: 10px 0 30px 0;
52+
background-color: #E6E6FA;
53+
-webkit-border-radius: 6px;
54+
-moz-border-radius: 6px;
55+
border-radius: 6px;
56+
}
57+
58+
h2 {
59+
font-size: 3em;
60+
margin-top: 40px;
61+
text-align: center;
62+
letter-spacing: -2px;
63+
}
64+
65+
h3 {
66+
font-size: 1.7em;
67+
font-weight: 100;
68+
margin-top: 30px;
69+
text-align: center;
70+
letter-spacing: -1px;
71+
color: #999;
72+
}
73+
74+
.menu {
75+
float: right;
76+
margin-top: 8px;
77+
}
78+
79+
.menu li {
80+
display: inline;
81+
}
82+
83+
.menu li + li {
84+
margin-left: 35px;
85+
}
86+
87+
.menu li a {
88+
color: #444;
89+
text-decoration: none;
90+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{%extends "layout.html"%}
2+
{%block content%}
3+
<div class="about">
4+
<h1>About Page</h1>
5+
<p>I know JSP as well..</p>
6+
</div>
7+
{%endblock%}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{%extends "layout.html"%}
2+
{%block content%}
3+
<div class="homepage">
4+
<h1>Home Page</h1>
5+
<p>This is my First Try in Python</p>
6+
</div>
7+
{%endblock%}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Flask Application</title>
5+
<link rel="stylesheet" href="{{url_for('static',filename='css/main.css')}}">
6+
</head>
7+
<body>
8+
<header>
9+
<div class="container">
10+
<h1 class="logo">saharsh Web Page</h1>
11+
<strong><nav>
12+
<ul class="menu">
13+
<li><a href="{{url_for("home")}}">Home</a></li>
14+
<li><a href="{{url_for("about")}}">About</a></li>
15+
</ul>
16+
</nav></strong>
17+
</div>
18+
</header>
19+
<div class="container">
20+
{%block content%}
21+
{%endblock%}
22+
</div>
23+
</body>
24+
</html>

0 commit comments

Comments
 (0)