Basic templates

main
Ryan Rix 2017-07-01 19:19:22 -07:00
parent 489c646b58
commit 625e7b1a6f
4 changed files with 68 additions and 65 deletions

View File

@ -1,66 +1,52 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>GDQ Quick Schedule {% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="//maxcdn.bootstrapcdn.com/bootswatch/3.3.1/yeti/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="{{url_for('static', filename='main.css')}}" rel="stylesheet" media="screen">
<head>
<meta charset="utf-8">
<title>Flask Skeleton{% block title %}{% endblock %}</title>
<!-- meta -->
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- styles -->
<link href="//maxcdn.bootstrapcdn.com/bootswatch/3.3.1/yeti/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="{{url_for('static', filename='main.css')}}" rel="stylesheet" media="screen">
{% block css %}{% endblock %}
</head>
{% include 'header.html' %}
<body>
<div class="site-content">
<div class="container">
{% include 'header.html' %}
<div class="site-content">
<div class="container">
<!-- messages -->
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<!-- messages -->
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<br>
<div class="row">
<div class="col-md-12">
{% for category, message in messages %}
<div class="alert alert-{{ category }}">
<a class="close" title="Close" href="#" data-dismiss="alert">&times;</a>
{{message}}
</div>
<div class="alert alert-{{ category }}">
<a class="close" title="Close" href="#" data-dismiss="alert">&times;</a>
{{message}}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endwith %}
{% endif %}
{% endwith %}
<!-- child template -->
{% block content %}{% endblock %}
<!-- child template -->
{% block content %}{% endblock %}
<br>
<br>
<!-- errors -->
{% if error %}
<p class="error"><strong>Error:</strong> {{ error }}</p>
{% endif %}
<!-- errors -->
{% if error %}
<p class="error"><strong>Error:</strong> {{ error }}</p>
{% endif %}
</div>
</div>
</div>
</div>
<br><br>
<br><br>
{% include 'footer.html' %}
{% include 'footer.html' %}
<!-- scripts -->
<script src="//code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js" type="text/javascript"></script>
<script src="{{url_for('static', filename='main.js')}}" type="text/javascript"></script>
{% block js %}{% endblock %}
</body>
</html>
<!-- scripts -->
<script src="//code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js" type="text/javascript"></script>
<script src="{{url_for('static', filename='main.js')}}" type="text/javascript"></script>
{% block js %}{% endblock %}

View File

@ -1,7 +1,9 @@
<footer>
<div class="container">
<small>
<span>© <a href="mailto:michael@realpython.com">Real Python</a></span>
<span>Brought to you by <a href="mailto:ilianaw@buttslol.net">Iliana Weller</a>
&amp; <a href="mailto:ryan@whatthefuck.computer">Ryan Rix</a>. Based on Python Flask skeleton
created by <a href="mailto:michael@realpython.com">Real Python</a>.</span>
</small>
</div>
</footer>
</footer>

View File

@ -2,7 +2,6 @@
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
@ -10,26 +9,13 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ url_for('main.home') }}">Flask-Skeleton</a>
<a class="navbar-brand" href="{{ url_for('main.home') }}">GDQ Quick Schedule</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="{{ url_for('main.about') }}">About</a></li>
{% if current_user.is_authenticated %}
<li><a href="{{ url_for('user.members') }}">Members</a></li>
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">
{% if current_user.is_authenticated %}
<li><a href="{{ url_for('user.logout') }}">Logout</a></li>
{% else %}
<li><a href="{{ url_for('user.login') }}"><span class="glyphicon glyphicon-user"></span>&nbsp;Register/Login</a></li>
{% endif %}
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
</header>
</header>

View File

@ -5,6 +5,35 @@
<div class="body-content">
<div class="row">
<h1>About</h1>
<p>
GDQ dot moe allows you to pick the GDQ speedruns you're interested in watching, and provides a
short, easily shareable link with those speedruns listed. Share it with friends, send it to
your phone, do whatever you want with it.
</p>
<p>
GDQ dot moe was built in a frenzied pace hours before Summer Games Done Quick 2017 by <a href="https://ilianaw.net" target="_blank">Iliana Weller</a> and <a href="http://whatthefuck.computer" target="_blank">Ryan Rix</a>. GDQ dot moe is Free and Open Source software, and you can get the live code <a href="http://gdq.moe/code">here</a>, or clone it on <a href="https://github.com/rrix/kappa123">GitHub</a>{% extends "_base.html" %}
{% block content %}
<div class="body-content">
<div class="row">
<h1>About</h1>
<p>
GDQ dot moe allows you to pick the GDQ speedruns you're interested in watching, and provides a
short, easily shareable link with those speedruns listed. Share it with friends, send it to
your phone, do whatever you want with it.
</p>
<p>
GDQ dot moe was built in a frenzied pace hours before Summer Games Done Quick 2017 by <a href="https://ilianaw.net" target="_blank">Iliana Weller</a> and <a href="http://whatthefuck.computer" target="_blank">Ryan Rix</a>. GDQ dot moe is Free and Open Source software, and you can get the live code <a href="http://gdq.moe/code">here</a>, or clone it on <a href="https://github.com/rrix/kappa123">GitHub</a>.
</p>
</div>
</div>
{% endblock %}
.
</p>
</div>
</div>