{% extends 'front/base.html.twig' %}{% block title %}Hello MainController!{% endblock %}{% block body %} <!-- WELCOME --> <section class="py-10 py-md-14 overlay overlay-black overlay-60 bg-cover" style="background-image: url({{ post.image }});"> <div class="container"> <div class="row justify-content-center"> <div class="col-12 col-md-10 col-lg-8 text-center"> <!-- Heading --> <h1 class="display-2 fw-bold text-white"> {{ post.title }} </h1> <!-- Text --> </div> </div> <!-- / .row --> </div> <!-- / .container --> </section> <!-- SHAPE --> <div class="position-relative"> <div class="shape shape-bottom shape-fluid-x text-light"> <svg viewBox="0 0 2880 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M0 48h2880V0h-720C1442.5 52 720 0 720 0H0v48z" fill="currentColor"/> </svg> </div> </div> <div class="container"> <div class="row"> <nav aria-label="breadcrumb"> <ol class="breadcrumb breadcrumb-scroll"> <li class="breadcrumb-item"> <a class="text-gray-700" href="{{ path('home') }}"> Accueil </a> </li> <li class="breadcrumb-item active" aria-current="page"> {{ post.title }} </li> </ol> </nav> </div> </div> <!-- ARTICLES --> <section class="pt-7 pt-md-5"> <div class="container"> <div class="row"> <div class="lead text-muted mb-0"> {{ post.description|raw }} </div> {% if contentChildren(1) is not null %} {% for child in contentChildren(1) %} {% if child.id % 2 == 0 %} <div class="col-12"> <!-- Card --> <div class="card card-row shadow-light-lg mb-6 lift lift-lg"> <div class="row gx-0"> <a class="col-12 col-md-6 order-md-2 bg-cover card-img-end" style="background-image: url({{ child.image }});" href="#!"> <!-- Shape --> <div class="shape shape-start shape-fluid-y text-white d-none d-md-block"> <svg viewBox="0 0 112 690" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M0 0h62.759v172C38.62 384 112 517 112 517v173H0V0z" fill="currentColor"/> </svg> </div> </a> <div class="col-12 col-md-6 order-md-1"> <!-- Body --> <a class="card-body" href="#!"> <!-- Heading --> <h3> {{ child.title }} </h3> <!-- Text --> <div class="mb-0 text-muted"> {{ child.description|raw }} </div> </a> <!-- Meta --> <a class="card-meta" href="#!"> <!-- Divider --> <hr class="card-meta-divider"> </a> </div> </div> <!-- / .row --> </div> </div> {% else %} <div class="col-12"> <!-- Card --> <div class="card card-row shadow-light-lg"> <div class="row gx-0"> <a class="col-12 col-md-6 bg-cover card-img-start" style="background-image: url({{ child.image }});" href="#!"> <!-- Image (placeholder) --> <img src="{{ child.image }}" alt="..." class="img-fluid d-md-none invisible"> <!-- Shape --> <div class="shape shape-end shape-fluid-y text-white d-none d-md-block"> <svg viewBox="0 0 112 690" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M116 0H51v172C76 384 0 517 0 517v173h116V0z" fill="currentColor"></path></svg> </div> </a> <div class="col-12 col-md-6 order-md-1"> <!-- Body --> <div class="card-body"> <blockquote class="blockquote mb-0 text-left"> <!-- Heading --> <h3> {{ child.title }} </h3> <!-- Text --> <div class="mb-5 mb-md-7 text-muted"> {{ child.description|raw }} </div> </blockquote> </div> </div> </div> </div> </div> {% endif %} {% endfor %} {% endif %} </div> <!-- / .row --> </div> <!-- / .container --> </section> <!-- SHAPE --> <div class="position-relative"> <div class="shape shape-bottom shape-fluid-x text-gray-200"> <svg viewBox="0 0 2880 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 48h2880V0h-720C1442.5 52 720 0 720 0H0v48z" fill="currentColor"/></svg> </div> </div>{% endblock %}