diff --git a/app.py b/app.py new file mode 100644 index 0000000..5c8a0d3 --- /dev/null +++ b/app.py @@ -0,0 +1,26 @@ +from flask import Flask, url_for, redirect, render_template + +app = Flask(__name__) + +@app.route('/', methods=['GET']) +def index(): + return render_template('index.html') + +@app.route('/board/', methods=['GET']) +def board(board_name): + links = [ + {'name': 'b', 'display_name': '/b/ - random'}, + {'name': 'g', 'display_name': '/g/ - technology'}, + {'name': 'a', 'display_name': '/a/ - anime'}, + {'name': 'v', 'display_name': '/v/ - video games'}, + {'name': 'w', 'display_name': '/w/ - wallpapers'}, + {'name': 'x', 'display_name': '/x/ - paranormal'}, + {'name': 'z', 'display_name': '/z/ - test'}, + {'name': 's', 'display_name': '/s/ - soyjaks'}, + {'name': 'pol', 'display_name': '/pol/ - politically incorrect'} + ] + return render_template('board.html', title=board_name, header=board_name, links=links) + + +if __name__ == '__main__': + app.run(debug=True) \ No newline at end of file diff --git a/static/css/styles.css b/static/css/styles.css new file mode 100644 index 0000000..404c233 --- /dev/null +++ b/static/css/styles.css @@ -0,0 +1,65 @@ +body { + background-color: black; + color: #00FF00; + font-family: 'Courier New', Courier, monospace; +} + +.link-container { + display: flex; + flex-direction: column; +} + +.bottom { + position: fixed; + bottom: 2vw; + width: 100%; +} + +div { + margin: 10px; + text-align: center; +} + +a { + font-size: 1vw; + color: #00FF00; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +button { + background-color: black; + color: #00FF00; + border: 1px solid #00FF00; + padding: 10px 20px; + cursor: pointer; +} + +button:hover { + background-color: #00FF00; + color: black; +} + +input, textarea { + background-color: black; + color: #00FF00; + border: 1px solid #00FF00; + padding: 5px; +} + +input::placeholder, textarea::placeholder { + color: #00FF00; +} + +h1 { + font-size: 4vw; + color: #00FF00; +} + +h4 { + font-size: 2vw; + color: #00FF00; +} diff --git a/templates/board.html b/templates/board.html new file mode 100644 index 0000000..ec475ca --- /dev/null +++ b/templates/board.html @@ -0,0 +1,19 @@ + + + + + + {{ title }} + + + +{% extends "index.html" %} + +{% block content %} + +{% endblock %} + + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..1797d30 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,28 @@ + + + + wirechan + + + +
+

wirechan

+

the wirechan imageboard

+
+ +
+ lainlounge.xyz - copyleft all wrongs released +
+ + \ No newline at end of file