diff --git a/index.py b/index.py new file mode 100755 index 0000000..f543b10 --- /dev/null +++ b/index.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +from flask import Flask, render_template, redirect, url_for, session +from flask_wtf import Form +from wtforms.fields import PasswordField, SelectField, StringField, SubmitField +from wtforms.validators import Required + +app = Flask(__name__) +app.config['SECRET_KEY'] = 'CHANGE!ME' +app.jinja_env.trim_blocks = True +app.jinja_env.lstrip_blocks = True + + +@app.route('/') +def index(): + return render_template('index.html') + + +if __name__ == '__main__': + app.run(host='0.0.0.0', port=5000, debug=True) diff --git a/index.wsgi b/index.wsgi new file mode 100644 index 0000000..4aeaa3f --- /dev/null +++ b/index.wsgi @@ -0,0 +1,7 @@ +import sys +import os + +sitepath = os.path.realpath(os.path.dirname(__file__)) +sys.path.insert(0, sitepath) + +from index import app as application diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..dc9f710 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,93 @@ +html { + box-sizing: border-box; +} + +*, ::before, ::after { + box-sizing: inherit; +} + +body{ + margin: 10px auto; + max-width: 60em; + font-family: sans-serif; + color: #111111; +} + +header, nav, nav a, main, article, section, aside, footer { + border: 1px solid; + padding: 10px; + margin: 10px; +} + +header { + background: #F7F7F7; + border-color: #DDDDDD; +} + +header img { + width: 13em; + height: 5em; + margin-right: 50px; + float: left; +} + +nav { + font-size: 0.91em; + float: left; + width: 15em; + padding: 0; + margin-top: 0; + background: #E6E6E6; + border-color: #CCCCCC; +} + +nav ul { + padding:0; +} + +nav li { + list-style: none; + margin: 0; + padding: 0.5em; +} + +nav a { + display: block; + padding: 0.2em 10px; + font-weight: bold; + text-decoration: none; + background-color: #e7c157; + color: #333; +} + +nav ul a:hover, +nav ul a:active { + color: #fffbf0; + background-color: #dfac20;; +} + +main { + background: #D5D5D5; + border-color: #BBBBBB; + margin-left: 15em; + min-width: 16em; +} + +section { + background: #F1F3F4; + border-color: slateblue; +} + +footer { + background: #C4C4C4; + border-color: #AAAAAA; + clear: both; +} + +footer a, footer p { + margin: 0; +} + +* { + box-shadow: none!important; +} diff --git a/static/img/binary_kitchen.svg b/static/img/binary_kitchen.svg new file mode 100644 index 0000000..9713d56 --- /dev/null +++ b/static/img/binary_kitchen.svg @@ -0,0 +1,265 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..4141f73 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,25 @@ + + + + + + Binary Kitchen: LDAP User Administration Portal + + +
+ Binary Kitchen +

User Self-Service Portal

+
+ +
+ {% block content %} + {% endblock %} +
+ + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..3b8ff08 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block content %} +

Hello, World!

+{% endblock %} +{% block navigation %} + +{% endblock %}