From 2b328f0ae21f4c50eeafe196e1da38ecb21b4d8e Mon Sep 17 00:00:00 2001 From: ralphi3 Date: Mon, 22 Jun 2026 11:40:05 +1200 Subject: [PATCH] changed home page and added topics on the website also added them in navbar only shows when signed in --- app.py | 16 ++++++++++++++++ templates/base.html | 5 ++++- templates/calculus.html | 4 ++++ templates/index.html | 8 ++++++++ templates/simultaneousequations.html | 4 ++++ templates/triganometry.html | 4 ++++ 6 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 templates/calculus.html create mode 100644 templates/simultaneousequations.html create mode 100644 templates/triganometry.html diff --git a/app.py b/app.py index de29c5f..e96f1c8 100644 --- a/app.py +++ b/app.py @@ -78,6 +78,22 @@ def home(): def bivariate(): return render_template('bivariate.html') +@app.route('/simultaneousequations') +@login_required +def simultaneousequations(): + return render_template('simultaneousequations.html') + +@app.route('/calculus') +@login_required +def calculus(): + return render_template('calculus.html') + +@app.route('/triganometry') +@login_required +def triganometry(): + return render_template('triganometry.html') + + @app.route('/about') def about(): return render_template('about.html') diff --git a/templates/base.html b/templates/base.html index f86dac6..93ac66a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,7 +11,10 @@
  • About
  • {% if session.user_id %}
  • Bivariate Data
  • -
  • Hi, {{ session.username }}
  • +
  • Simultaneous Equations
  • +
  • Calculus
  • +
  • Triganometry
  • +
  • Hi, {{ session.username }}
  • Sign Out
  • {% else %}
  • Sign Up
  • diff --git a/templates/calculus.html b/templates/calculus.html new file mode 100644 index 0000000..45eed7c --- /dev/null +++ b/templates/calculus.html @@ -0,0 +1,4 @@ +{% extends 'base.html' %} +{% block content %} +

    Calculus

    +{% endblock %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 826a51f..ab60480 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,6 +7,14 @@

    If you want to access the math topics on this website you must be signed into a account

    +

    + The math topics that will be on this website +
  • Bivariate Data
  • +
  • Simultaneous Equations
  • +
  • Calculus
  • +
  • Triganometry
  • +

    + diff --git a/templates/simultaneousequations.html b/templates/simultaneousequations.html new file mode 100644 index 0000000..eb60af0 --- /dev/null +++ b/templates/simultaneousequations.html @@ -0,0 +1,4 @@ +{% extends 'base.html' %} +{% block content %} +

    Simultaneous Equations

    +{% endblock %} \ No newline at end of file diff --git a/templates/triganometry.html b/templates/triganometry.html new file mode 100644 index 0000000..2a0f93d --- /dev/null +++ b/templates/triganometry.html @@ -0,0 +1,4 @@ +{% extends 'base.html' %} +{% block content %} +

    Triganometry

    +{% endblock %} \ No newline at end of file