[enh] add a top page menu

This commit is contained in:
Laurent Peuch 2018-10-10 04:15:42 +02:00
parent 7ce0982ca5
commit 6e8a2201b1
3 changed files with 31 additions and 0 deletions

View file

@ -11,4 +11,13 @@
.deleted * {
font-style: italic;
color: darkgrey !important;;
}
.menu-title {
font-weight: bold;
font-family: sans;
}
.navbar {
border-bottom: 0.5px solid #ddd;
}

View file

@ -18,6 +18,7 @@
<link href="<{ relative_path_to_root }>static/css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<% include "menu.html" %>
<% block content %><% endblock %>
<% block javascript %><% endblock %>
</body>

21
templates/menu.html Normal file
View file

@ -0,0 +1,21 @@
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="<{ relative_path_to_root }>">
<h2 class="menu-title">YUNORUNNER</h2>
</a>
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="<{ relative_path_to_root }>">
Home
</a>
</div>
</div>
</nav>