Updated base.html
This commit is contained in:
31
app.py
Normal file
31
app.py
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
from flask import Flask, render_template
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
@app.route('/home')
|
||||||
|
def home():
|
||||||
|
return render_template('home.html')
|
||||||
|
|
||||||
|
@app.route('/contributors')
|
||||||
|
def contributors():
|
||||||
|
return render_template('contributors.html')
|
||||||
|
|
||||||
|
@app.route('/robot')
|
||||||
|
def robot():
|
||||||
|
return render_template('robot.html')
|
||||||
|
|
||||||
|
@app.route('/competitions')
|
||||||
|
def competitions():
|
||||||
|
return render_template('competitions.html')
|
||||||
|
|
||||||
|
@app.route('/awards')
|
||||||
|
def awards():
|
||||||
|
return render_template('awards.html')
|
||||||
|
|
||||||
|
@app.route('/contact')
|
||||||
|
def contact():
|
||||||
|
return render_template('contact.html')
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app.run(debug=True)
|
||||||
3
static/css/styles.css
Normal file
3
static/css/styles.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
0
static/js/scripts.js
Normal file
0
static/js/scripts.js
Normal file
7
templates/awards.html
Normal file
7
templates/awards.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}Awards{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
34
templates/base.html
Normal file
34
templates/base.html
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{% block title %}FTC Robotics{% endblock %}</title>
|
||||||
|
<!--Shared Files-->
|
||||||
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
||||||
|
<script src="{{ url_for('static', filename='js/scripts.js') }}"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<nav>
|
||||||
|
<ul class="nav-container">
|
||||||
|
<li class="nav-item nav-brand">
|
||||||
|
<a href="/"></a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item center">
|
||||||
|
<a href="/contributors">Contributors</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item center">
|
||||||
|
<a href="/competitions">Competitions</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item center">
|
||||||
|
<a href="/contact">Contact</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- This is where child templates will insert their content -->
|
||||||
|
{% block content %}
|
||||||
|
{% endblock %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
templates/competitions.html
Normal file
11
templates/competitions.html
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}Competition Log{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<p>competitions</p>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
11
templates/contact.html
Normal file
11
templates/contact.html
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}Communication{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<p>contact</p>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
11
templates/contributors.html
Normal file
11
templates/contributors.html
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}Members and Contributors{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<p>contributors</p>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
11
templates/home.html
Normal file
11
templates/home.html
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}Home{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<p>home</p>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/robot.html
Normal file
7
templates/robot.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}About The Robot{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user