Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
primitt committed Apr 2, 2024
2 parents 240f672 + 8bf5798 commit 0ac2c09
Show file tree
Hide file tree
Showing 12 changed files with 76 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.db
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

17 changes: 0 additions & 17 deletions construction.html

This file was deleted.

23 changes: 23 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from flask import Flask, render_template, send_from_directory
from models.model import *
app = Flask(__name__)
maintainance = True

@app.route("/")
def index():
if maintainance:
return render_template('construction.html')
else:
return render_template('index.html')


# Load API's
@app.route('/images/<name>')
def images(name):
return send_from_directory('templates/images', name)
@app.route('/scripts/<name>')
def scripts(name):
return send_from_directory('scripts', name)

if __name__ == "__main__":
app.run(port=5003)
Empty file added models/model.py
Empty file.
52 changes: 52 additions & 0 deletions templates/construction.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<style>
body {
margin: 0;
padding: 0;
}

.outer-div {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: black;
color: white;
font-size: 25px;
font-family: monospace;
overflow: hidden;
}

.inner-div {
display: flex;
flex-direction: column;
align-items: center;
}

.inner-div p {
margin: 5px;
}

.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 30px;
background: black;
color:white;
text-align: center;
font-family: monospace;
line-height: 30px;
}
</style>

<body>
<div class="outer-div">
<div class="inner-div">
<p>Site Under Construction</p>
<p style="font-size:10px;">(again)</p>
</div>
</div>
<div class="footer">❤️ you :D</div>
</body>

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.

0 comments on commit 0ac2c09

Please sign in to comment.