Merge pull request #8 from dod-ccpo/login

Login screen to access AT-AT to be set up with CAC auth.
This commit is contained in:
luisgov 2018-05-29 11:20:59 -04:00 committed by GitHub
commit 404c9fa497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 66 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>

28
templates/login.html.to Normal file
View File

@ -0,0 +1,28 @@
<!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>
<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>
<a class="usa-button" href='{{ reverse_url('home') }}'><span>Sign In with CAC</span></a>
<button class="usa-button" disabled>Sign In via MFA</button>
</main>
</body>
</html>