add some more mockups and functionality
This commit is contained in:
9
.gitignore
vendored
9
.gitignore
vendored
@@ -153,10 +153,5 @@ dmypy.json
|
|||||||
# Cython debug symbols
|
# Cython debug symbols
|
||||||
cython_debug/
|
cython_debug/
|
||||||
|
|
||||||
# PyCharm
|
# vim
|
||||||
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
.swp
|
||||||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
||||||
#.idea/
|
|
||||||
|
|
||||||
|
|||||||
12
beertap/templates/about.html
Normal file
12
beertap/templates/about.html
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
{% block title %}About{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
</br>
|
||||||
|
<div class="media">
|
||||||
|
<img class="mr-3" src="https://cdn.dribbble.com/users/1112628/screenshots/6233083/icon3.png" alt="Cheers">
|
||||||
|
<div class="media-body">
|
||||||
|
<h5 class="mt-0">About beertap</h5>
|
||||||
|
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
<a class="navbar-brand" href="#">Beertap</a>
|
<a class="navbar-brand" href="/">Beertap</a>
|
||||||
<button
|
<button
|
||||||
class="navbar-toggler"
|
class="navbar-toggler"
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<form method="POST">
|
<form method="POST">
|
||||||
<br />
|
<br />
|
||||||
<div class="btn-group d-flex" role="group" aria-label="order_buttons">
|
<div class="btn-group d-flex" role="group" aria-label="order_buttons">
|
||||||
<button type="submit" name="submit_button" value="option1" class="btn btn-primary w-100 py-5">Left</button>
|
<button type="submit" name="submit_button" value="option_1" class="btn btn-primary w-100 py-5">Left</button>
|
||||||
<button type="submit" name="submit_button" value="option2" class="btn btn-secondary w-100 py-5">Right</button>
|
<button type="submit" name="submit_button" value="option_2" class="btn btn-secondary w-100 py-5">Right</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
12
beertap/templates/statistics.html
Normal file
12
beertap/templates/statistics.html
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
{% block title %}About{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
</br>
|
||||||
|
<div class="media">
|
||||||
|
<img class="mr-3" src="https://cdn.dribbble.com/users/1112628/screenshots/6233083/icon3.png" alt="Cheers">
|
||||||
|
<div class="media-body">
|
||||||
|
<h5 class="mt-0">Statistics</h5>
|
||||||
|
You drank approximately 6782348906890234678234698 beers.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
@@ -4,11 +4,22 @@ from flask import Blueprint, render_template, request, flash, jsonify
|
|||||||
|
|
||||||
views = Blueprint('views', __name__)
|
views = Blueprint('views', __name__)
|
||||||
|
|
||||||
@views.route('/', methods=['GET', 'POST'])
|
@views.route('/', methods=['GET'])
|
||||||
def beer_tap():
|
def render():
|
||||||
if request.method == 'POST':
|
|
||||||
if request.form['submit_button'] == 'option1':
|
|
||||||
print("Es Grosses uselah!")
|
|
||||||
if request.form['submit_button'] == 'option2':
|
|
||||||
print("Es Chliises uselah!")
|
|
||||||
return render_template('beertap.html')
|
return render_template('beertap.html')
|
||||||
|
|
||||||
|
@views.route('/', methods=['POST'])
|
||||||
|
def choice():
|
||||||
|
if request.form['submit_button'] == 'option_1':
|
||||||
|
print("Es Grosses uselah!")
|
||||||
|
if request.form['submit_button'] == 'option_2':
|
||||||
|
print("Es Chliises uselah!")
|
||||||
|
return render_template('beertap.html')
|
||||||
|
|
||||||
|
@views.route('/about', methods=['GET'])
|
||||||
|
def about():
|
||||||
|
return render_template('about.html')
|
||||||
|
|
||||||
|
@views.route('/statistics', methods=['GET'])
|
||||||
|
def statistics():
|
||||||
|
return render_template('statistics.html')
|
||||||
|
|||||||
Reference in New Issue
Block a user