forked from fzsun/BFL-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.html
100 lines (85 loc) · 2.61 KB
/
layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<title>{{ title|striptags }} - VT BFL Team</title>
<!-- Style Sheets-->
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/flatly/bulmaswatch.min.css">
<style>
body {
padding-top: 60px;
}
.columns {
flex-wrap: wrap;
}
.card {
height: 100%;
display: flex;
flex-direction: column;
}
.is-bottom {
margin-top: auto;
}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar is-fixed-top is-primary">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="/"><img src="/favicon.ico"></a>
<span class="navbar-burger burger" data-target="navMenu">
<span></span>
<span></span>
<span></span>
</span>
</div>
<div id="navMenu" class="navbar-menu">
<div class="navbar-end">
<a href="/" class="navbar-item">Home</a>
<a href="/team/" class="navbar-item">Team</a>
<a href="/contact/" class="navbar-item">Contact</a>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">Projects</a>
<div class="navbar-dropdown is-boxed">
<a class="navbar-item" href="/s-bfls/">Sorghum BFLS</a>
<a class="navbar-item" href="/tsp/">TSP Example</a>
</div>
</div>
</div>
</div>
</div>
</nav>
<!-- Page Content -->
{% block hero %}{% endblock %}
<section class="section">
<div class="container">
<h1 class="title">{{ title|safe }}</h1>
{% block content %}{% endblock %}
</div>
</section>
<!-- Footer -->
<footer class="footer has-background-primary">
<div class="content has-text-centered has-text-white">
<p>Copyright © VT BFL Team 2018</p>
</div>
</footer>
<!-- Script -->
<script>
// for navbar burger animation, this part works without jQuery
(function() {
var burger = document.querySelector('.burger');
var nav = document.querySelector('#'+burger.dataset.target);
burger.addEventListener('click', function(){
burger.classList.toggle('is-active');
nav.classList.toggle('is-active');
});
})();
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="{{ url_for('static', filename='js/my_util.js') }}"></script>
{% block myscript %}{% endblock %}
</body>
</html>