<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="de bons ingrédients 100% français">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Jekyll v4.1.1">
<title>{% block title %} Sur Le Pouce {% endblock %}</title>
<!-- Bootstrap core CSS -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link rel="stylesheet" href="{{ asset('assets/css/styles.css') }}">
{% block javascript %}
{% endblock %}
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<!-- Custom styles for this template -->
<link href="{{ asset('assets/css/carousel.css') }}" rel="stylesheet">
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="{{ path('home') }}">Sur Le Pouce</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="{{ path('app_produit') }}">Nos produits</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="{{ path('app_somme_nous') }}">Qui sommes nous</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="{{ path('app_contact') }}">Contact</a>
</li>
</ul>
<div class="navbar-item-custom">
{% if app.user %}
<a href="{{path('account') }}"> Mon compte <small>({{ app.user.firstname }})</small> </a>
<a href="{{path('app_logout') }}"> Déconnexion </a>
{% else %}
<a href="{{path('app_login')}}"> connexion </a> | <a href="{{path('register')}}"> Inscription </a>
{% endif %}
</div>
<a href="{{path('cart')}}">
{% set cartLength = app.session.get('cart')|length %}
<img src="{{asset('assets/img/shopping-cart.png')}}" class="cart-icon" alt = "Mon panier">
<span><span class="text-left">{{ app.session.get('cartLength') }}</span></span>
{% if cartLength is defined and cartLength > 0 %}
<span>{{ cartLength }}</span>
{% endif %}
</a>
</div>
</nav>
</header>
<main role="main">
{% if block('carousel') is defined %}
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
{% for key,header in headers %}
<li data-target="#myCarousel" data-slide-to="{{ key }}" {% if key == 0 %}class="active"{% endif %}></li>
{% endfor %}
</ol>
<div class="carousel-inner">
{% for key,header in headers %}
<div class="carousel-item {% if key == 0 %} active {% endif %}" style="background: url('/uploads/{{ header.illustration }}');background-size:cover; background-position:center;">
<div class="container">
<div class="carousel-caption text-left">
<h1>{{ header.title }}</h1>
<p>{{ header.content }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
<a class="carousel-control-prev" href="#myCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#myCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
{% endif %}
<!-- Marketing messaging and featurettes
================================================== -->
<!-- Wrap the rest of the page in another container to center all the content. -->
<div class="container marketing {% if block('carousel') is not defined %}mt-5{% endif %}">
{% block content %}
{% endblock %}
<!-- /END THE FEATURETTES -->
</div><!-- /.container -->
<!-- FOOTER -->
<footer md-6 class="footer-custom">
<p>
© 2020-2023 Sur Le Pouce
<small>Les sandwichs made in france<br/>
</p>
</footer>
</main>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="{{asset('assets/js/bootstrap.bundle.js')}}"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
<script type="text/javascript">
function placeFooter() {
if( $(document.body).height() < $(window).height() ) {
$("footer").css({position: "fixed", bottom:"0px"});
} else {
$("footer").css({position: ""});
}
}
placeFooter();
</script>
</body>
{% block script %}
{% endblock %}
</html>