Skip to content

Commit

Permalink
building out flask application
Browse files Browse the repository at this point in the history
Signed-off-by: Upkar Lidder <[email protected]>
Signed-off-by: Upkar Lidder <[email protected]>
  • Loading branch information
upkarlidder committed Dec 9, 2020
1 parent b1a2097 commit 1fd654b
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 4 deletions.
17 changes: 16 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
venv/
venv/
*.pyc
__pycache__/
instance/
.cache/
.pytest_cache/
.coverage
htmlcov/
dist/
build/
*.egg-info/
.idea/
*.swp
*~

.vscode/
7 changes: 4 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from flask import Flask
from flask import Response
from flask import render_template

app = Flask(__name__)


@app.route("/")
def hello():
return "Hello , i can't seem to get 5000 to work."
@app.route('/')
def index():
return render_template("index.html")


@app.route("/healthz")
Expand Down
12 changes: 12 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
body,html {

margin: 0;

}

.image {
background-image: url("../images/IBM_Microbites_MockSite_120820.jpg");
background-size: 100%;
background-repeat: no-repeat;
height:300vh;
}
Binary file added static/images/IBM_Error500_MockSite_120820.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/IBM_Error500_MockSite_120820.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/IBM_Microbites_MockSite_120820.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/IBM_Microbites_MockSite_120820.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- <link href="static/css/style.css" rel="stylesheet"> -->
<link
rel="stylesheet"
href="{{ url_for('static', filename='css/style.css') }}"
/>
</head>
<body>
<div class="image"></div>
</body>
</html>

0 comments on commit 1fd654b

Please sign in to comment.