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([
(r"/", MainHandler),
],
template_path='./templates',
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__":

View File

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

View File

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