Use uswds styles

This commit is contained in:
Brian Duggan 2018-05-22 14:03:30 -04:00
parent 29248ed76e
commit 4e00773491
3 changed files with 30 additions and 14 deletions

3
app.py
View File

@ -12,8 +12,9 @@ def make_app():
return tornado.web.Application([ return tornado.web.Application([
(r"/", MainHandler), (r"/", MainHandler),
], ],
template_path='./templates',
debug=os.getenv('DEBUG',False), debug=os.getenv('DEBUG',False),
template_path=os.path.join(os.path.dirname(__file__), "templates"),
static_path=os.path.join(os.path.dirname(__file__), "static"),
) )
if __name__ == "__main__": if __name__ == "__main__":

View File

@ -1,14 +1,28 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>{% block title %}your title here{% end %}</title> <meta charset="utf-8">
</head> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<h1>{% block title %}your title here again{% end %}</h1> <title>{% block title %}JEDI{% end %}</title>
<body> <link rel="stylesheet" href="static/uswds-1.6.3/css/uswds.min.css">
<ul> </head>
{% block content %} <body>
your content goes here <header class="usa-header usa-header-basic" role="banner">
{% end %} <div class="usa-nav-container">
</ul> <div class="usa-navbar">
</body> <div class="usa-logo" id="basic-logo">
<em class="usa-logo-text"><a href="/" title="Home" aria-label="Home">Jedi</a></em>
</div>
</div>
</div>
</header>
<div class='usa-grid'>
{% block content %}
these are not the droids you are looking for
{% end %}
</div>
<script src="static/uswds-1.6.3/js/uswds.min.js"></script>
</body>
</html> </html>

View File

@ -1,10 +1,11 @@
{% extends "base.html.to" %} {% extends "base.html.to" %}
{% block title %} {% block title %}
this is an amazing title for hello hello
{% end %} {% end %}
{% block content %} {% block content %}
This is more content for hello <h1>Hello!</h1>
is it me you're looking for?
{% end %} {% end %}