{% if app.user is null%}
{% extends '@SyliusShop/layout.html.twig' %}
{% block content %}
<div class="container-h" id="div-not-connected">
<div>
{% if app.request.pathInfo == '/annonce-not-connected'%}
<h1>Déposer votre Annonce</h1>
{% elseif app.request.pathInfo == '/evenement-not-connected' %}
<h1>Créer votre Évènement</h1>
{% endif %}
</div>
<div>
<p>Pour {% if app.request.pathInfo == '/annonce-not-connected'%} déposer votre annonce {% elseif app.request.pathInfo == '/evenement-not-connected' %} créer votre évènement {% endif %}, vous devez être connecté.<br><br>
Si vous ne disposez pas d'un compte, <a href="{{ path('sylius_shop_register') }}">créer le vôtre ici</a><br><br>
ou si vous en avez déjà un, <a href="{{ path('sylius_shop_login') }}">connectez-vous</a>.
</p>
</div>
</div>
<style>
/*#div-not-connected{*/
/* display: flex;*/
/* flex-direction: column;*/
/* justify-content: center;*/
/* align-items: center;*/
/* height: 50vh;*/
/*}*/
/*#div-not-connected div:first-of-type{*/
/* margin-bottom: 20px;*/
/*}*/
/*#div-not-connected div:last-of-type{*/
/* !*flex-direction: column;*!*/
/* !*justify-content: center;*!*/
/* !*align-items: center;*!*/
/*}*/
/*#div-not-connected p{*/
/* font-size: var(--sm-fz);*/
/* max-width: 500px;*/
/* text-align: center;*/
/*}*/
/*#div-not-connected a{*/
/* text-decoration: underline;*/
/* color: inherit;*/
/*}*/
</style>
{% endblock %}
{% endif %}