-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from singh-ashok25/feature/add-new-page
files added to provided structure to project
- Loading branch information
Showing
5 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from flask import Flask, escape, request, render_template | ||
app = Flask(__name__) | ||
|
||
@app.route("/") | ||
|
||
def main(): | ||
return render_template('index.html') | ||
|
||
if __name__ == "__main__": | ||
app.run(debug=True, host="0.0.0.0", port=80) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from flask import Flask, escape, request, render_template | ||
app = Flask(__name__) | ||
|
||
@app.route("/") | ||
|
||
def main(): | ||
return render_template('index.html') | ||
|
||
@app.route("/about.html") | ||
def about(): | ||
return render_template('about.html') | ||
|
||
if __name__ == "__main__": | ||
app.run(debug=True, host="0.0.0.0", port=80) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title> Welcome to simple web server by CloudxLab </title> | ||
</head> | ||
<body> | ||
<h1> Welcome to CloudxLab - Flask Website </h1> | ||
<p> | ||
Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks. | ||
</p> | ||
<a href="{{ url_for('main') }}""> Return to HomePage </a> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title> Welcome to simple web server by CloudxLab </title> | ||
</head> | ||
<body> | ||
<h1> Welcome to CloudxLab - Flask Website </h1> | ||
<div class="video"> | ||
<iframe width="560" height="315" src="https://www.youtube.com/embed/2oDSVmfHtt4?start=108" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | ||
</div> | ||
<a href="{{ url_for('about') }}">About Us</a> | ||
</body> | ||
</html> | ||
|