Add login routes

This commit is contained in:
Luis Cielak 2018-05-25 14:41:21 -04:00
parent cfb01b5061
commit 53bc0bc521
15 changed files with 90 additions and 3 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ static/fonts/*
scss/assets
.pytest_cache/
.venv/
__pycache__

View File

@ -5,7 +5,8 @@ from tornado.web import url
def make_app(**kwargs):
app = tornado.web.Application([
url( r"/", MainHandler, {'page': 'home'}, name='home' ),
url( r"/", MainHandler, {'page': 'login'}, name='login' ),
url( r"/home", MainHandler, {'page': 'home'}, name='home' ),
url( r"/requests", MainHandler, {'page': 'requests'}, name='requests' ),
url( r"/users", MainHandler, {'page': 'users'}, name='users' ),
url( r"/reports", MainHandler, {'page': 'reports'}, name='reports' ),

View File

@ -1,2 +1,13 @@
@import '../node_modules/uswds/src/stylesheets/uswds.scss';
@import 'variables.scss';
@import '../node_modules/uswds/src/stylesheets/uswds';
@import 'variables';
@import 'base/typography';
@import 'base/forms';
@import 'base/buttons';
@import 'base/tables';
@import 'components/empty_state';
@import 'sections/layout';
@import 'sections/login';

0
scss/base/_buttons.scss Normal file
View File

0
scss/base/_forms.scss Normal file
View File

0
scss/base/_tables.scss Normal file
View File

View File

@ -0,0 +1,3 @@
h1, h2, h3, h4, h5, h6 {
font-family: $font-sans;
}

View File

View File

@ -0,0 +1,15 @@
.content {
}
header {
}
section {
}
footer {
}

View File

@ -0,0 +1,3 @@
.login-area {
text-align: center;
}

BIN
static/img/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
static/img/logo-alt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -7,6 +7,7 @@
{% for url in assets['css'].urls() %}
<link rel="stylesheet" href="{{ url }}" type="text/css">
{% end %}
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
</head>
<body>

29
templates/blank.html.to Normal file
View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% block title %}JEDI{% end %}</title>
{% for url in assets['css'].urls() %}
<link rel="stylesheet" href="{{ url }}" type="text/css">
{% end %}
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
</head>
<body>
<div class='usa-grid'>
{% block content %}
these are not the droids you are looking for
{% end %}
</div>
</body>
</html>

23
templates/hello.html.to Normal file
View File

@ -0,0 +1,23 @@
{% extends "blank.html.to" %}
{% block title %}
AT-AT - Login
{% end %}
{% block content %}
<main class="usa-grid-full usa-section login-area" id="main-content">
<img class="logo-img" src="/static/img/logo-alt.png" alt="Defense Digital Service Logo">
<h1 class="usa-display">AT-AT</h1>
<button class="usa-button">Sign In with CAC</button>
<button class="usa-button" disabled>Sign In via MFA</button>
</main>
{% end %}