From c993a1dcf61e4e9a0121f1b8f42d2464814fa647 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 5 Apr 2017 07:14:29 +0000 Subject: [PATCH] Slap that beta and cleanup --- htmltests/embedpagetest.html | 286 ---------------------- htmltests/titan frontend test.html | 113 --------- titanembeds/app.py | 9 - titanembeds/static/css/embedstyle.css | 6 + titanembeds/static/css/style.css | 8 + titanembeds/templates/embed.html | 78 ------ titanembeds/templates/embed.html.j2 | 4 +- titanembeds/templates/set_username.html | 21 -- titanembeds/templates/site_layout.html.j2 | 4 +- 9 files changed, 18 insertions(+), 511 deletions(-) delete mode 100644 htmltests/embedpagetest.html delete mode 100644 htmltests/titan frontend test.html delete mode 100644 titanembeds/templates/embed.html delete mode 100644 titanembeds/templates/set_username.html diff --git a/htmltests/embedpagetest.html b/htmltests/embedpagetest.html deleted file mode 100644 index 0f30d27..0000000 --- a/htmltests/embedpagetest.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - - - - - - - - - Embed - Titan Embeds for Discord - - - -
-
-

3:30PM EndenDragon#69420 Hello everyone!

-

3:30PM EndenDragon#69420 Hello everyone!

-

3:30PM EndenDragon#69420 Hello everyone!

-

3:30PM EndenDragon#69420 Hello everyone!

-

3:30PM EndenDragon#69420 Hello everyone!

-

3:30PM EndenDragon#69420 Hello everyone!

-

3:30PM EndenDragon#69420 Hello everyone!

-

3:30PM EndenDragon#69420 Hello everyone!

-

3:30PM EndenDragon#69420 adfsadfsdfas

-
-
- - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/htmltests/titan frontend test.html b/htmltests/titan frontend test.html deleted file mode 100644 index bf47628..0000000 --- a/htmltests/titan frontend test.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - Index - Titan Embeds for Discord - - -
- - -
-

Embed Discord chats like a
true Titan

-

Add Titan to your discord server to create your own personalized chat embed!

- Start here! -

-
- -
-
-
- - - - - - - diff --git a/titanembeds/app.py b/titanembeds/app.py index 48de811..64ebf99 100644 --- a/titanembeds/app.py +++ b/titanembeds/app.py @@ -23,15 +23,6 @@ app.register_blueprint(blueprints.api.api, url_prefix="/api", template_folder="/ app.register_blueprint(blueprints.user.user, url_prefix="/user", template_folder="/templates") app.register_blueprint(blueprints.embed.embed, url_prefix="/embed", template_folder="/templates") -@app.route("/set_username//", methods=["GET"]) -def get_set_username(guildid, channelid): - return render_template("set_username.html") - -@app.route("/set_username//", methods=["POST"]) -def post_set_username(guildid, channelid): - session['username'] = request.form.get('username') - return redirect(url_for("embed_get", guildid=guildid, channelid=channelid)) - @app.route("/") def index(): return render_template("index.html.j2") diff --git a/titanembeds/static/css/embedstyle.css b/titanembeds/static/css/embedstyle.css index 7c25399..9b3532b 100644 --- a/titanembeds/static/css/embedstyle.css +++ b/titanembeds/static/css/embedstyle.css @@ -127,4 +127,10 @@ float: left; .modal { background-color: #546e7a; +} + +.betatag { + font-variant: small-caps; + font-size: 15px; + color: #eceff1; } \ No newline at end of file diff --git a/titanembeds/static/css/style.css b/titanembeds/static/css/style.css index cb0e82d..acf12b1 100644 --- a/titanembeds/static/css/style.css +++ b/titanembeds/static/css/style.css @@ -50,3 +50,11 @@ nav { margin-left: auto; margin-right: auto; } + +.betatag { + font-variant: small-caps; + font-size: 25px; + border-radius: 50px; + border: 2px solid #37474f; + color: #eceff1; +} \ No newline at end of file diff --git a/titanembeds/templates/embed.html b/titanembeds/templates/embed.html deleted file mode 100644 index c8c0254..0000000 --- a/titanembeds/templates/embed.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -
- -
- -
- - - - diff --git a/titanembeds/templates/embed.html.j2 b/titanembeds/templates/embed.html.j2 index aa3330b..b8e4344 100644 --- a/titanembeds/templates/embed.html.j2 +++ b/titanembeds/templates/embed.html.j2 @@ -18,7 +18,7 @@ @@ -85,7 +85,7 @@