diff --git a/main.py b/main.py index 70255e4..d45a7f4 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,5 @@ import os -from flask import Flask, render_template, request +from flask import Flask, render_template, request, redirect, url_for from discord_webhook import DiscordWebhook, DiscordEmbed from flask_bootstrap import Bootstrap4 from flask_wtf import FlaskForm @@ -39,8 +39,13 @@ def home(): webhook.add_embed(embed) if webhook_url != "": response = webhook.execute() - return render_template("success.html", form=form) + return redirect(location=url_for("success"),code=302) else: return render_template("index.html", form=form,anchor='application') + +@app.route("/success") +def success(): + return render_template("success.html") + app.run(host='0.0.0.0', port=5000) diff --git a/static/img/favicon.png b/static/img/favicon.png new file mode 100644 index 0000000..7fd7245 Binary files /dev/null and b/static/img/favicon.png differ diff --git a/static/img/poster.png b/static/img/poster.png new file mode 100644 index 0000000..f4dc4ed Binary files /dev/null and b/static/img/poster.png differ diff --git a/templates/index.html b/templates/index.html index 5f96d35..8ae569e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,46 +1,12 @@ {% include 'parts/head.html' %} - - -
-
- -
-
+{% include 'parts/navigation.html' %}
-

+

Welcome to Veiled Haven, a Minecraft Server Project with a focus on keeping a vanilla gameplay experience and maintaining a mature community!

@@ -58,8 +24,8 @@

Screenshots

- - Blog 1 + + Blog 1

Apr 18, 2023 - A player build.

@@ -68,8 +34,8 @@

Screenshots

- - Blog 1 + + Blog 1

Apr 18, 2023 - Townsquare.

@@ -78,8 +44,8 @@

Screenshots

- - Blog 1 + + Blog 1

Apr 21, 2023 - Dragonfight.

diff --git a/templates/parts/head.html b/templates/parts/head.html index 9ebcf9d..adb74e5 100644 --- a/templates/parts/head.html +++ b/templates/parts/head.html @@ -5,16 +5,26 @@ Veiled Haven - Vanilla Survival Minecraft - - + + - - - + + + + + + + + + + + + + - - + + + diff --git a/templates/parts/navigation.html b/templates/parts/navigation.html new file mode 100644 index 0000000..c6b32eb --- /dev/null +++ b/templates/parts/navigation.html @@ -0,0 +1,36 @@ + +
+
+ +
+
diff --git a/templates/parts/tail.html b/templates/parts/tail.html index 6207044..82bf3bf 100644 --- a/templates/parts/tail.html +++ b/templates/parts/tail.html @@ -5,6 +5,6 @@ - + diff --git a/templates/success.html b/templates/success.html index 3a5aaa8..28f6810 100644 --- a/templates/success.html +++ b/templates/success.html @@ -1,4 +1,5 @@ {% include 'parts/head.html' %} +{% include 'parts/navigation.html' %}