Use uswds styles
This commit is contained in:
parent
29248ed76e
commit
4e00773491
3
app.py
3
app.py
@ -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__":
|
||||
|
@ -1,14 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{% block title %}your title here{% end %}</title>
|
||||
<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>
|
||||
<h1>{% block title %}your title here again{% end %}</h1>
|
||||
<body>
|
||||
<ul>
|
||||
<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>
|
||||
</div>
|
||||
<script src="static/uswds-1.6.3/js/uswds.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
@ -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 %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user