Initial commit

This commit is contained in:
Fergal Moran
2021-01-18 19:46:31 +00:00
parent 579cd0fcd7
commit 29a650714c
5 changed files with 66 additions and 0 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"python.pythonPath": "/home/fergalm/.virtualenvs/buttnerdz/bin/python"
}

16
server.py Normal file
View File

@@ -0,0 +1,16 @@
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('body.html')
@app.route('/test')
def test():
return render_template('test.html')
app.run(debug=True)

17
templates/_base.html Normal file
View File

@@ -0,0 +1,17 @@
<html>
<head>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>

22
templates/body.html Normal file
View File

@@ -0,0 +1,22 @@
{% extends '_base.html' %}
{% block content %}
<div class="container-fluid">
<div class="row">
<div id="buttons-pane"
class="col-1">
</div>
<div id="channels-pane"
class="col-2">
Channels
</div>
<div id="main-pane"
class="col-7">
Main
</div>
<div id="friends-pane"
class="col-2">
Friends
</div>
</div>
</div>
{% endblock %}

8
templates/test.html Normal file
View File

@@ -0,0 +1,8 @@
{% extends '_base.html' %}
{% block content %}
<div class="container-fluid">
<div class="row">
<h1>This is a test</h1>
</div>
</div>
{% endblock %}