diff --git a/.gitignore b/.gitignore index b216548..ae2d4a0 100644 --- a/.gitignore +++ b/.gitignore @@ -134,3 +134,4 @@ dmypy.json .idea/ qbBuzzer.iml .env +test/ diff --git a/app.py b/app.py index cbc87c5..8222776 100644 --- a/app.py +++ b/app.py @@ -1,10 +1,14 @@ -from flask import Flask +from flask import * +from random import randint as rint app = Flask(__name__) + @app.route('/') def home(): - return "in progress!" + version = rint(0, 300000000) + return render_template('index.html', version=str(version)) + if __name__ == "__main__": - app.run() \ No newline at end of file + app.run() diff --git a/static/Abberancy-Regular.svg b/static/Abberancy-Regular.svg new file mode 100644 index 0000000..7afd491 --- /dev/null +++ b/static/Abberancy-Regular.svg @@ -0,0 +1,738 @@ + + + + +Created by FontForge 20190801 at Fri Jul 20 03:05:15 2012 + By Jimmy Wärting +(c) 1998-2012 Typodermic Fonts Inc. See attached license agreement. If agreement is missing visit typodermicfonts.com for more info. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/Abberancy-Regular.ttf b/static/Abberancy-Regular.ttf new file mode 100644 index 0000000..339ad9e Binary files /dev/null and b/static/Abberancy-Regular.ttf differ diff --git a/static/abberancy.eot b/static/abberancy.eot new file mode 100644 index 0000000..fdf5691 Binary files /dev/null and b/static/abberancy.eot differ diff --git a/static/index.css b/static/index.css new file mode 100644 index 0000000..eb969c9 --- /dev/null +++ b/static/index.css @@ -0,0 +1,82 @@ +html { + padding: 0; + margin: 0; + width: 100%; + height: 100%; +} + +body { + background-color: #e5e2c9; +} + + +.wrap { + align-items: center; +} + +.title { + text-align: center; + font-family: 'Abberancy-Regular'; + font-size: 3.3rem; +} + +.button { + align-items: center; + justify-content: center; +} + +.button a { + -webkit-appearance: none; + background: -webkit-gradient(to right,#a2ccb6 0%,#fceeb5 50%,#ee786e 100%); + background: linear-gradient(to right,#a2ccb6 0%,#fceeb5 50%,#ee786e 100%); + border-top: 18px; + padding-right: 18px; + padding-left: 18px; + padding-bottom: 9px; + padding-top: 9px; + border-radius: 5rem; + border-style: none; + box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); + width: 20rem; + letter-spacing: 0.20rem; + background-size: 300%; + text-decoration: none; + color: white; + -webkit-tap-highlight-color: transparent; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + font: 1em Raleway, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + background-position: 0% 50%; + transition: background-position 1s; +} + + +.button a:hover { + background-position: 100% +} + +.button a:focus { + color: white; +} + +@font-face { + font-family: 'Abberancy-Regular'; + src: url('Abberancy-Regular.svg#Abberancy-Regular') format('svg'), + url('Abberancy-Regular.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'abberancy'; + src: url('abberancy.eot'); + src: url('abberancy.eot?#iefix') format('embedded-opentype'); + font-weight: normal; + font-style: normal; +} + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..d59bd2c --- /dev/null +++ b/templates/index.html @@ -0,0 +1,22 @@ + + + {% if title %} + + {{ title }} - Buzzer! + + {% else %} + Buzzer! + {% endif %} + +
+

Buzzer!

+
+
+
+ Host Game +


+ Join Game +
+
+ + \ No newline at end of file diff --git a/templates/navbar.html b/templates/navbar.html new file mode 100644 index 0000000..7eebd38 --- /dev/null +++ b/templates/navbar.html @@ -0,0 +1,9 @@ + + + + + + + {% block content %}{% endblock %} + + \ No newline at end of file