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:
commit
404c9fa497
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ static/fonts/*
|
||||
scss/assets
|
||||
.pytest_cache/
|
||||
.venv/
|
||||
__pycache__
|
||||
|
@ -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' ),
|
||||
|
@ -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
0
scss/base/_buttons.scss
Normal file
0
scss/base/_forms.scss
Normal file
0
scss/base/_forms.scss
Normal file
0
scss/base/_tables.scss
Normal file
0
scss/base/_tables.scss
Normal file
3
scss/base/_typography.scss
Normal file
3
scss/base/_typography.scss
Normal file
@ -0,0 +1,3 @@
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: $font-sans;
|
||||
}
|
0
scss/components/_empty_state.scss
Normal file
0
scss/components/_empty_state.scss
Normal file
15
scss/sections/_layout.scss
Normal file
15
scss/sections/_layout.scss
Normal file
@ -0,0 +1,15 @@
|
||||
.content {
|
||||
|
||||
}
|
||||
|
||||
header {
|
||||
|
||||
}
|
||||
|
||||
section {
|
||||
|
||||
}
|
||||
|
||||
footer {
|
||||
|
||||
}
|
3
scss/sections/_login.scss
Normal file
3
scss/sections/_login.scss
Normal file
@ -0,0 +1,3 @@
|
||||
.login-area {
|
||||
text-align: center;
|
||||
}
|
BIN
static/img/favicon.ico
Normal file
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
BIN
static/img/logo-alt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
@ -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
28
templates/login.html.to
Normal 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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user