changed home page and added topics on the website also added them in navbar only shows when signed in

This commit is contained in:
ralphi3
2026-06-22 11:40:05 +12:00
parent 53fc8b90e4
commit 2b328f0ae2
6 changed files with 40 additions and 1 deletions
+16
View File
@@ -78,6 +78,22 @@ def home():
def bivariate(): def bivariate():
return render_template('bivariate.html') 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') @app.route('/about')
def about(): def about():
return render_template('about.html') return render_template('about.html')
+4 -1
View File
@@ -11,7 +11,10 @@
<li><a href="{{ url_for('about') }}">About</a></li> <li><a href="{{ url_for('about') }}">About</a></li>
{% if session.user_id %} {% if session.user_id %}
<li><a href="{{ url_for('bivariate') }}">Bivariate Data</a></li> <li><a href="{{ url_for('bivariate') }}">Bivariate Data</a></li>
<li style="margin-left: auto; color: white; margin-top: 14px; margin-left: 900px;">Hi, {{ session.username }}</li> <li><a href="{{ url_for('simultaneousequations') }}">Simultaneous Equations</a></li>
<li><a href="{{ url_for('calculus') }}">Calculus</a></li>
<li><a href="{{ url_for('triganometry') }}">Triganometry</a></li>
<li style="margin-left: auto; color: white; margin-top: 14px; margin-left: 550px;">Hi, {{ session.username }}</li>
<li style="margin-left: 20px;"><a href="{{ url_for('logout') }}">Sign Out</a></li> <li style="margin-left: 20px;"><a href="{{ url_for('logout') }}">Sign Out</a></li>
{% else %} {% else %}
<li style="margin-left: auto;"><a href="{{ url_for('signup') }}">Sign Up</a></li> <li style="margin-left: auto;"><a href="{{ url_for('signup') }}">Sign Up</a></li>
+4
View File
@@ -0,0 +1,4 @@
{% extends 'base.html' %}
{% block content %}
<h1>Calculus</h1>
{% endblock %}
+8
View File
@@ -7,6 +7,14 @@
<h2>If you want to access the math topics on this website you must be signed into a account</h2> <h2>If you want to access the math topics on this website you must be signed into a account</h2>
<h2>
The math topics that will be on this website
<li>Bivariate Data</li>
<li>Simultaneous Equations</li>
<li>Calculus</li>
<li>Triganometry</li>
</h2>
</div> </div>
+4
View File
@@ -0,0 +1,4 @@
{% extends 'base.html' %}
{% block content %}
<h1>Simultaneous Equations</h1>
{% endblock %}
+4
View File
@@ -0,0 +1,4 @@
{% extends 'base.html' %}
{% block content %}
<h1>Triganometry</h1>
{% endblock %}