changed home page and added topics on the website also added them in navbar only shows when signed in
This commit is contained in:
@@ -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
@@ -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>
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
{% block content %}
|
||||||
|
<h1>Calculus</h1>
|
||||||
|
{% endblock %}
|
||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
{% block content %}
|
||||||
|
<h1>Simultaneous Equations</h1>
|
||||||
|
{% endblock %}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
{% block content %}
|
||||||
|
<h1>Triganometry</h1>
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user