mirror of
https://github.com/fergalmoran/buttcord.git
synced 2025-12-22 09:27:34 +00:00
Initial commit
This commit is contained in:
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"python.pythonPath": "/home/fergalm/.virtualenvs/buttnerdz/bin/python"
|
||||||
|
}
|
||||||
16
server.py
Normal file
16
server.py
Normal 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
17
templates/_base.html
Normal 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
22
templates/body.html
Normal 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
8
templates/test.html
Normal 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 %}
|
||||||
Reference in New Issue
Block a user