From 2756dbff4a436f201a64391a3a1c5d780f047502 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sat, 25 Dec 2021 01:17:25 -0800 Subject: [PATCH] added about page and local ipfs --- suchwowx/config.py | 5 +++-- suchwowx/routes.py | 4 ++++ suchwowx/templates/about.html | 29 +++++++++++++++++++++++++ suchwowx/templates/includes/navbar.html | 1 + suchwowx/templates/meme.html | 4 ++-- 5 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 suchwowx/templates/about.html diff --git a/suchwowx/config.py b/suchwowx/config.py index a646150..1480f16 100644 --- a/suchwowx/config.py +++ b/suchwowx/config.py @@ -4,9 +4,10 @@ from dotenv import load_dotenv load_dotenv() # App -SECRET_KEY = getenv('SECRET_KEY', 'yyyyyyyyyyyyy') # whatever you want it to be -DATA_FOLDER = getenv('DATA_FOLDER', '/path/to/uploads') # some stable storage path +SECRET_KEY = getenv('SECRET_KEY', 'yyyyyyyyyyyyy') # whatever you want it to be +DATA_FOLDER = getenv('DATA_FOLDER', '/path/to/uploads') # some stable storage path SERVER_NAME = getenv('SERVER_NAME', '127.0.0.1:5000') # name of your DNS resolvable site (.com) +IPFS_SERVER = getenv('IPFS_SERVER', 'http://127.0.0.1:8080') # ip/endpoint of ipfs explorer # Cache CACHE_HOST = getenv('CACHE_HOST', 'localhost') diff --git a/suchwowx/routes.py b/suchwowx/routes.py index 8c29583..4a6ebda 100644 --- a/suchwowx/routes.py +++ b/suchwowx/routes.py @@ -28,6 +28,10 @@ def index(): # total_supply = contract.functions.totalSupply().call() return render_template('index.html', memes=memes, contract=contract) +@bp.route('/about') +def about(): + return render_template('about.html') + @bp.route('/new', methods=['GET', 'POST']) def new(): meme = None diff --git a/suchwowx/templates/about.html b/suchwowx/templates/about.html new file mode 100644 index 0000000..8e1048c --- /dev/null +++ b/suchwowx/templates/about.html @@ -0,0 +1,29 @@ + + + {% include 'includes/head.html' %} + +
+
+ {% include 'includes/navbar.html' %} + +
+
+

+ Welcome.
+
+ Up until now there has been a small group of people who were responsible for reviewing and approving the 4600+ memes submitted to the prior platform. + Wownero has become a meme powerhouse via SuchWow, but it's a highly centralized, aging, and fragile service. + +

+
+

+ This service is a continuation of SuchWow for the Wownero cryptocurrency project. + It has been remixed onto the Avalanche network and Interplanetary Filesystem and launched with a smart contract with some useful features. +

+
+
+
+
+ {% include 'includes/footer.html' %} + + diff --git a/suchwowx/templates/includes/navbar.html b/suchwowx/templates/includes/navbar.html index 4749c85..b0b3808 100644 --- a/suchwowx/templates/includes/navbar.html +++ b/suchwowx/templates/includes/navbar.html @@ -6,6 +6,7 @@ Memes. Interplanetary!

{% if request.path == '/' %} + About New Meme {% else %} Go Home diff --git a/suchwowx/templates/meme.html b/suchwowx/templates/meme.html index 5eb3906..c83fb6a 100644 --- a/suchwowx/templates/meme.html +++ b/suchwowx/templates/meme.html @@ -22,8 +22,8 @@

Title: {{ meme.title }}

Description: {{ meme.description }}

Creator handle: {{ meme.creator_handle }}

-

Meta IPFS: {{ meme.meta_ipfs_hash }}

-

Meme IPFS: {{ meme.meme_ipfs_hash }}

+

Meta IPFS: {{ meme.meta_ipfs_hash }}

+

Meme IPFS: {{ meme.meme_ipfs_hash }}

Meme ID: {{ meme }}