From 49a9af8b902bb9094455a339d5303b764e48dc5d Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 29 Nov 2019 20:16:42 -0500 Subject: [PATCH] Set up with a rough copy of crux.best --- .gitignore | 110 ++++++++++++++++++++++++++++++++++++++++ app.py | 14 +++++ requirements.txt | 6 +++ static/sexy.css | 77 ++++++++++++++++++++++++++++ templates/age-gate.html | 10 ++++ 5 files changed, 217 insertions(+) create mode 100644 .gitignore create mode 100644 app.py create mode 100644 requirements.txt create mode 100644 static/sexy.css create mode 100644 templates/age-gate.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65ad377 --- /dev/null +++ b/.gitignore @@ -0,0 +1,110 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ + +.vscode + +# current data + +*.json \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..4bf3e69 --- /dev/null +++ b/app.py @@ -0,0 +1,14 @@ +from flask import Flask, render_template + +app = Flask( + __name__, + static_url_path='', + static_folder='static/', + template_folder='templates/' +) +@app.route('/') +def index(): + return render_template("age-gate.html") + +if __name__ == "__main__": + app.run(debug=True, host='0.0.0.0', port=5001) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a6d2d3a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +Click==7.0 +Flask==1.1.1 +itsdangerous==1.1.0 +Jinja2==2.10.3 +MarkupSafe==1.1.1 +Werkzeug==0.16.0 diff --git a/static/sexy.css b/static/sexy.css new file mode 100644 index 0000000..afb228a --- /dev/null +++ b/static/sexy.css @@ -0,0 +1,77 @@ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} + +body, html { + height: 100%; + width: 100%; +} + +body { + display: flex; + justify-content: center; + text-align: center; + flex-direction: column; + font-family: sans-serif; + background-color: #100d1e; +} + +.best { + font-size: 100px; + flex-wrap: center; + color: #7991cd; +} + +.footer { + position: sticky; + top: 95%; + color: #58678e; +} + +a { + color: #3e3852; +} + +a:hover { + color: #726899; +} diff --git a/templates/age-gate.html b/templates/age-gate.html new file mode 100644 index 0000000..12036df --- /dev/null +++ b/templates/age-gate.html @@ -0,0 +1,10 @@ + + + + Age Gate + + + +

OI

+ +