Skip to content

Commit

Permalink
Merge pull request #1 from singh-ashok25/feature/add-new-page
Browse files Browse the repository at this point in the history
files added to provided structure to project
  • Loading branch information
singh-ashok25 authored Mar 28, 2020
2 parents db8cec7 + 5f6a5c4 commit 2df1e9f
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app1.py
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)
14 changes: 14 additions & 0 deletions app2.py
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)
Binary file added static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions templates/about.html
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>
14 changes: 14 additions & 0 deletions templates/index.html
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>

0 comments on commit 2df1e9f

Please sign in to comment.