diff options
author | Ben Burwell <ben@benburwell.com> | 2019-07-28 12:36:47 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-07-28 12:37:12 -0400 |
commit | ae0b5d946aa3c0d5c1510450d28eb7b987923e3e (patch) | |
tree | 4f18bfb8e1e458cd60b14b258348def085e8d8e9 /templates | |
parent | 4091a14f26dbc73dccab8a0111436521266c473c (diff) |
Redirect to random beer details
Diffstat (limited to 'templates')
-rw-r--r-- | templates/Homepage.jinja2 | 14 | ||||
-rw-r--r-- | templates/base.html | 6 |
2 files changed, 9 insertions, 11 deletions
diff --git a/templates/Homepage.jinja2 b/templates/Homepage.jinja2 index 191d591..e42128d 100644 --- a/templates/Homepage.jinja2 +++ b/templates/Homepage.jinja2 @@ -1,12 +1,8 @@ {% extends "base.html" %} {% block content %} -<h1>SimilarBeer</h1> -<form action="/similar" method="post"> - <div> - <label for="q"><strong>Tell us a beer you like:</strong></label><br> - <input type="text" id="q" list="beers" autofocus> - </div> - <input type="submit" value="Show me others!"> -</form> -<p><a href="/random">Random Beer</a></p> +<div class="text-center"> + <h1>Similar.Beer</h1> + <img src="{{ url_for('static', filename='logo.jpg') }}"> + <p><a class="btn btn-primary" href="/random">Random Beer</a></p> +</div> {% endblock %} diff --git a/templates/base.html b/templates/base.html index a2fe85f..e688c41 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,7 +19,9 @@ {% endblock %} </head> <body> - <div id="content">{% block content %}{% endblock %}</div> + <div class="container"> + {% block content %}{% endblock %} + </div> <div id="footer"> {% block footer %} <p > @@ -28,4 +30,4 @@ {% endblock %} </div> </body> -</html>
\ No newline at end of file +</html> |