From 6b2004cb27b9ba477e98de47a98e6ad058d42042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l-Kristian=20Hamre?= Date: Tue, 29 Jul 2025 18:51:29 +0200 Subject: [PATCH] Added about page. --- rstat_tool/dashboard.py | 7 ++++ templates/about.html | 77 +++++++++++++++++++++++++++++++++++ templates/dashboard_base.html | 17 ++++++++ templates/dashboard_view.html | 23 +++++++---- 4 files changed, 117 insertions(+), 7 deletions(-) create mode 100644 templates/about.html diff --git a/rstat_tool/dashboard.py b/rstat_tool/dashboard.py index ce15578..102ffb3 100644 --- a/rstat_tool/dashboard.py +++ b/rstat_tool/dashboard.py @@ -102,6 +102,13 @@ def deep_dive(symbol): return render_template("deep_dive.html", posts=posts, symbol=symbol) +@app.route("/about") +def about_page(): + """Handler for the static About page.""" + # We need to pass these so the navbar knows which items to highlight + return render_template("about.html", subreddit_name=None, view_type='daily') + + def start_dashboard(): """The main function called by the 'rstat-dashboard' command.""" log.info("Starting Flask server...") diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..9ddcd00 --- /dev/null +++ b/templates/about.html @@ -0,0 +1,77 @@ +{% extends "dashboard_base.html" %} + +{% block title %}About RSTAT{% endblock %} + +{% block content %} +
+

About RSTAT

+ +
DOGECOIN_ADDRESS_HERE_REPLACE_ME
+

What is this? +

+

+ RSTAT (Reddit Stock Analysis Tool) is an automated data pipeline that scans popular financial communities on Reddit + to identify and analyze trending stock tickers. It provides a daily and weekly snapshot of the most discussed + stocks, their social sentiment, and key financial data. +

+ +

How does it + work?

+

+ The system is composed of several automated scripts: +

+

+ +

What qualifies + as a "mention"?

+

+ The counting logic is context-aware. If a stock ticker is found in a post's title, the system + assumes the entire comment section is about that ticker and credits it with a mention for every comment. If no + ticker is in the title, it only counts direct mentions within comments. This provides a more + accurate picture of a stock's overall discussion volume. +

+ +

Supporting the + Project

+

+ RSTAT is a free and soon-to-be open-source project developed as a passion for data and financial markets. To ensure the + dashboard remains fast, reliable, and publicly accessible, it is hosted on a small virtual server with running costs + of approximately $6 per month. +

+

+ If you find this tool useful and would like to help cover these costs, donations are gratefully accepted. In the + spirit of Reddit's market communities, the preferred method is Dogecoin (DOGE). You can send any amount to the + following address: +

+ +
+    DOGECOIN_ADDRESS_HERE_REPLACE_ME
+ +

+ Thank you for your support! +

+ + +
+{% endblock %} \ No newline at end of file diff --git a/templates/dashboard_base.html b/templates/dashboard_base.html index c71da46..6d925b2 100644 --- a/templates/dashboard_base.html +++ b/templates/dashboard_base.html @@ -337,6 +337,15 @@ color: #ffffff; text-decoration: underline; } + + footer a { + color: inherit; /* Inherit the color from .brand-subtitle */ + text-decoration: none; + transition: color 0.2s; + } + footer a:hover { + color: #ffffff; /* Make it brighter on hover */ + } @@ -361,6 +370,14 @@
Daily Weekly + + + + + + + +
{% endif %} diff --git a/templates/dashboard_view.html b/templates/dashboard_view.html index bf396eb..c604e78 100644 --- a/templates/dashboard_view.html +++ b/templates/dashboard_view.html @@ -62,11 +62,12 @@ {{ ticker.market_cap | format_mc }} {% if ticker.closing_price %} - - ${{ "%.2f"|format(ticker.closing_price) }} - + + ${{ "%.2f"|format(ticker.closing_price) }} + {% else %} - N/A + N/A {% endif %} @@ -77,9 +78,17 @@ {% endfor %} -