add more structure in base template
This commit is contained in:
parent
6aa77329e6
commit
0e9cc0b912
7
assets/styles/_nav.scss
Normal file
7
assets/styles/_nav.scss
Normal file
@ -0,0 +1,7 @@
|
||||
#nav_menu{
|
||||
padding: 0.5rem;
|
||||
border-bottom: solid 1px $bg_color;
|
||||
a{
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
@import 'variables';
|
||||
@import 'global';
|
||||
@import 'nav';
|
||||
@import 'forms';
|
||||
@import 'clickables';
|
||||
|
||||
|
@ -15,9 +15,18 @@
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div id="main_content">
|
||||
<div id="main_content">
|
||||
<div id="main_header">
|
||||
{% block header %}
|
||||
{% include 'common/nav.html.twig' %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
<div id="main_body">
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
<div id="main_footer">
|
||||
{% block footer %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,16 +1,17 @@
|
||||
<div id="nav_menu">
|
||||
<nav>
|
||||
<nav><div class="mb-3">
|
||||
<a href="{{path('app_index')}}">Accueil</a>
|
||||
{% if app.user %}
|
||||
<div class="mb-3">
|
||||
|
||||
You are logged in as
|
||||
<a class="account-link" href="{{path('app_account')}}">{{ app.user.userIdentifier }}</a>
|
||||
, <a href="{{ path('app_logout') }}">Logout</a>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
<a href="{{path('app_login')}}">{{ 'user.login'|trans }}</a>
|
||||
<a href="{{path('app_register')}}">Register</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{# <a href="{{path('admin')}}">Admin</a>#}
|
||||
</nav>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user