Top nav (TODO: flags)

This commit is contained in:
Emily 2019-04-24 15:57:54 +02:00
parent d6755bf837
commit 1853e2e62f
3 changed files with 49 additions and 9 deletions

View File

@ -9,17 +9,17 @@
{% endif %}
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">Navbar</a>
</nav>
<div class="p-2">
<div class="d-flex">
<div class="p-2" style="flex:0 0 320px;">
{% include 'layout/includes/nav.html' %}
<div class="col p-2" style="flex:0 0 320px;">
{% include 'layout/includes/side_nav.html' %}
</div>
<div class="col p-2">
{% include 'layout/includes/top_nav.html' %}
{% block content %}{% endblock %}
</div>
</div>
</div>
{% include 'layout/includes/boot-body.html' %}
</body>
</html>

View File

@ -9,7 +9,6 @@
flex-direction: column;
max-width: 100%;
width: 280px;
height: 100%;
}

View File

@ -0,0 +1,41 @@
<style>
.rndblock {
border-radius: 100%;
background: #B507DB;
width: 40px;
height: 40px;
color: white;
text-align: center;
font-size: 24px;
vertical-align: middle;
display: table-cell;
}
.languk {
background: url("{{ url_for('static', filename='const/img/flags/uk.png') }}");
}
.langno {
background: url("{{ url_for('static', filename='const/img/flags/no.png') }}");
}
</style>
<nav class="navbar navbar-dark bg-dark" style="margin-bottom: 10px;">
<a class="navbar-brand" href="#">Dashboard</a>
<div class="my-2 my-lg-0 d-flex">
<div class="col">
<div class="rndblock languk"></div>
</div>
<div class="col">
<div class="rndblock">
<i class="fas fa-bell"></i>
</div>
</div>
<div class="col">
<div class="rndblock"> <!-- OR INCLUDE BACKGROUND TEXTURE -->
T <!-- FIRST CHAR OF USER -->
</div>
</div>
</div>
</nav>