templates/numbers/detail.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block meta %}
  3.     <meta name="description"
  4.           content="Détail et signification du {{ number }}, {{ numberData['title'] }}. Découvrez l'influence des nombres sur votre vie en quelques minutes.">
  5. {% endblock %}
  6. {% block title %}Détail du nombre {{ number }}, {{ numberData['title'] }} · Logia{% endblock %}
  7. {% block stylesheets %}
  8.     {{ parent() }}
  9.     <link
  10.             rel="stylesheet"
  11.             href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"
  12.     />
  13. {% endblock %}
  14. {% block body %}
  15.     <div class="bg-glow animated-glow">
  16.         <section id="hero-section"
  17.                  class="faded-black-transparent position-relative overflow-hidden">
  18.             <div class="bg-particles">
  19.                 <dotlottie-player src="https://lottie.host/eefac7be-0d95-4a21-ad60-21bb234ac075/W9Zk10fSKb.lottie"
  20.                                   background="transparent" speed="0.6" style="width: 100%;" loop
  21.                                   autoplay></dotlottie-player>
  22.             </div>
  23.             <div class="container">
  24.                 <div class="d-flex justify-content-center flex-column align-items-center">
  25.                     <h1 class="text-gold text-shadow-dark">Présentation du {{ number }}</h1>
  26.                     <div class="col-12 col-md-6 m-auto">
  27.                         <p class="text-beige text-center py-3 pb-5 fw-bold">
  28.                             Découvrez la signification et l'influence du {{ number }}
  29.                         </p>
  30.                     </div>
  31.                 </div>
  32.             </div>
  33.             <div class="position-absolute z-1">
  34.                 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 248.3 143.96" width="300px" height="300px">
  35.                     <defs>
  36.                         <clipPath id="number-clip">
  37.                             <path
  38.                                     id="initialSVG"
  39.                                     d="{{ numberData.svgPathValue }}"
  40.                             />
  41.                             <path d="M83.3,120.86c-19.55,0-19.55,0-19.55,19.54,0-19.54,0-19.54-19.54-19.54,9.56,0,14.44,0,16.94-2.29s2.6-7.27,2.6-17.25C63.75,120.86,63.75,120.86,83.3,120.86Z"/>
  42.                             <path d="M59.38,112.54c-7.33,0-7.33,0-7.33,7.32,0-7.32,0-7.32-7.32-7.32,3.66,0,5.49,0,6.41-.92s.91-2.74.91-6.41C52.05,112.54,52.05,112.54,59.38,112.54Z"/>
  43.                             <path d="M77.4,128.54c-4.32,0-4.32,0-4.32,4.32,0-4.32,0-4.32-4.33-4.32,4.33,0,4.33,0,4.33-4.33,0,2.62,0,3.65,1,4.06A10.14,10.14,0,0,0,77.4,128.54Z"/>
  44.                             <path d="M77.25,110.56c-2.1,0-3.18,0-3.74.5s-.59,1.6-.59,3.83c0-4.33,0-4.33-4.33-4.33,4.33,0,4.33,0,4.33-4.32C72.92,110.56,72.92,110.56,77.25,110.56Z"/>
  45.                             <path d="M260.69,270.26c-19.54,0-19.54,0-19.54,19.54,0-19.54,0-19.54-19.54-19.54,19.54,0,19.54,0,19.54-19.55,0,9.77,0,14.66,2.44,17.1S250.92,270.26,260.69,270.26Z"/>
  46.                             <path d="M260.69,244.31c-7.32,0-7.32,0-7.32,7.32,0-7.32,0-7.32-7.33-7.32,3.41,0,5.24,0,6.21-.74,1.12-.85,1.12-2.67,1.12-6.58C253.37,244.31,253.37,244.31,260.69,244.31Z"/>
  47.                             <path d="M262,260.83c-4.32,0-4.32,0-4.32,4.33,0-4.33,0-4.33-4.33-4.33,4.33,0,4.33,0,4.33-4.32,0,2.16,0,3.24.54,3.78S259.86,260.83,262,260.83Z"/>
  48.                             <path d="M252.25,281.56c-4.33,0-4.33,0-4.33,4.33,0-4.33,0-4.33-4.33-4.33,2.14,0,3.22,0,3.77-.52s.56-1.61.56-3.8C247.92,281.56,247.92,281.56,252.25,281.56Z"/>
  49.                             <path d="M261.94,93.46c0,19.54,0,19.54-19.55,19.54,19.55,0,19.55,0,19.55,19.55,0-19.55,0-19.55,19.54-19.55-9.35,0-14.23,0-16.77-2.14C261.94,108.53,261.94,103.66,261.94,93.46Z"/>
  50.                             <path d="M246.34,89.92c0-19.55,0-19.55,19.54-19.55-9.34,0-14.22,0-16.76-2.13-2.78-2.33-2.78-7.21-2.78-17.41,0,19.54,0,19.54-19.54,19.54C246.34,70.37,246.34,70.37,246.34,89.92Z"/>
  51.                             <path d="M239,95.61c0,2,0,3.13-.46,3.7s-1.59.62-3.86.62c4.32,0,4.32,0,4.32,4.33,0-4.33,0-4.33,4.33-4.33C239,99.93,239,99.93,239,95.61Z"/>
  52.                             <path d="M237.92,64.89c0-2.7,0-3.72,1.06-4.1a11.45,11.45,0,0,1,3.27-.23c-4.33,0-4.33,0-4.33-4.32,0,4.32,0,4.32-4.33,4.32C237.92,60.56,237.92,60.56,237.92,64.89Z"/>
  53.                             <path d="M271.92,84.89a11.45,11.45,0,0,1,.23-3.27c.38-1.06,1.39-1.06,4.1-1.06-4.33,0-4.33,0-4.33-4.32,0,4.32,0,4.32-4.33,4.32C271.92,80.56,271.92,80.56,271.92,84.89Z"/>
  54.                             <path d="M105.38,203.31c-7.33,0-7.33,0-7.33,7.32,0-7.32,0-7.32-7.32-7.32,3.32,0,5.14,0,6.13-.68,1.19-.83,1.19-2.64,1.19-6.64C98.05,203.31,98.05,203.31,105.38,203.31Z"/>
  55.                             <path d="M116.07,220.56c-13.15,0-13.15,0-13.15,13.16,0-13.16,0-13.16-13.15-13.16,6.42,0,9.7,0,11.38-1.52s1.77-4.89,1.77-11.63C102.92,220.56,102.92,220.56,116.07,220.56Z"/>
  56.                         </clipPath>
  57.                     </defs>
  58.                 </svg>
  59.             </div>
  60.             <div class="svg-number-container">
  61.                 <img class="unrestrained-img image-clipped {{ number in [11,22,33] ? "left-clip" : '' }} scaled opacity-25"
  62.                      style="
  63.                              position: absolute;
  64.                              left: 0;
  65.                              right: 0;
  66.                              margin-left: auto;
  67.                              margin-right: auto;
  68.                              width: 300px; /* Need a specific value to work */
  69.                              height: 300px; /* Need a specific value to work */
  70.                              filter: invert(1);
  71.                              clip-path: url(#number-clip);"
  72.                      src="{{ asset('build/images/bg-number-item.jpg') }}"
  73.                      alt="number image"/>
  74.                 {% if number in [11,22,33] %}
  75.                     <img class="unrestrained-img image-clipped scaled opacity-25 {{ number in [11,22,33] ? "right-clip" : '' }}"
  76.                          style="
  77.                      position: absolute;
  78.   left: 250px;
  79.   right: 0;
  80.   margin-left: auto;
  81.   margin-right: auto;
  82.   width: 300px; /* Need a specific value to work */
  83.   height: 300px; /* Need a specific value to work */
  84.                      filter: invert(1);
  85.                                  clip-path: url(#number-clip);"
  86.                          src="{{ asset('build/images/bg-number-item.jpg') }}"
  87.                          alt="number image"/>
  88.                 {% endif %}
  89.             </div>
  90.         </section>
  91.     </div>
  92.     <div class="bg-white">
  93.         <div>
  94.             {{ include('includes/_breadcrumbs.html.twig', {currentName: number, previousName: "Nombres", previousPath: path('numbers')}) }}
  95.             <div class="container">
  96.                 <div>
  97.                     <h2 class="text-deepblue">Le {{ number }} : {{ numberData['title'] }}</h2>
  98.                     <div class="text-justify">
  99.                         {{ numberData['content'] | raw }}
  100.                     </div>
  101.                 </div>
  102.             </div>
  103.         </div>
  104.         <div class="container pb-5">
  105.             <h2 class="text-deepblue">Interprétation</h2>
  106.             <p class="text-justify">
  107.                 La signification globale du {{ number }} reste fondamentalement la même. Son interprétation varie
  108.                 dans votre thème numérologique selon les contextes.
  109.             </p>
  110.             <div>
  111.                 <h4>Qualités que l'on retrouve souvent chez le {{ number }}</h4>
  112.                 {{ expressionNumbersData[number].qualities|raw }}
  113.             </div>
  114.             <div>
  115.                 <h4>Défauts que l'on retrouve souvent chez le {{ number }}</h4>
  116.                 {{ expressionNumbersData[number].defaults|raw }}
  117.             </div>
  118.         </div>
  119.     </div>
  120.     <div class="bg-glow animated-glow">
  121.         <section id="interested" class="faded-black-transparent position-relative overflow-hidden">
  122.             <div class="bg-particles">
  123.                 <dotlottie-player src="https://lottie.host/eefac7be-0d95-4a21-ad60-21bb234ac075/W9Zk10fSKb.lottie"
  124.                                   background="transparent" speed="0.6" style="width: 100%;" loop
  125.                                   autoplay></dotlottie-player>
  126.             </div>
  127.             <div class="container">
  128.                 <div class="d-flex justify-content-center flex-column text-center">
  129.                     <h3 class="text-gold text-shadow-dark mb-4">Curieux·se ?</h3>
  130.                     <div class="col-12 col-md-6 m-auto">
  131.                         <p class="fw-bold text-beige text-center pb-5">
  132.                             Découvrez à quel point le {{ number }} est présent dans votre thème et quelles sont
  133.                             ses
  134.                             influences
  135.                             sur votre
  136.                             vie.
  137.                         </p>
  138.                     </div>
  139.                     <div>
  140.                         <a href="{{ path('test') }}" class="text-decoration-none">
  141.                             <button type="button"
  142.                                     class="py-3 px-5 btn btn-gold rounded-pill text-beige fw-bold btn-hover-effect">
  143.                                 <span class="d-none d-sm-inline">Calculer mon thème</span>
  144.                                 <span class="d-inline d-sm-none">Mon thème</span>
  145.                             </button>
  146.                         </a>
  147.                     </div>
  148.                 </div>
  149.             </div>
  150.         </section>
  151.     </div>
  152.     <div>
  153.         <div class="container">
  154.             <section class="related-content pb-5">
  155.                 <h3 class="text-deepblue">Découvrez d'autres nombres</h3>
  156.                 <div>
  157.                     {{ include('includes/_related_content.html.twig') }}
  158.                 </div>
  159.             </section>
  160.         </div>
  161.     </div>
  162. {% endblock %}
  163.     {% block javascripts %}
  164.         {{ parent() }}
  165.         <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
  166.         <script>
  167.             document.addEventListener('DOMContentLoaded', function () {
  168.                 const swiper = new Swiper('.swiper', {
  169.                     // Optional parameters
  170.                     direction: 'horizontal',
  171.                     loop: true,
  172.                     // If we need pagination
  173.                     pagination: {
  174.                         el: '.swiper-pagination',
  175.                     },
  176.                     // Navigation arrows
  177.                     navigation: {
  178.                         nextEl: '.swiper-button-next',
  179.                         prevEl: '.swiper-button-prev',
  180.                     },
  181.                     // And if we need scrollbar
  182.                     scrollbar: {
  183.                         el: '.swiper-scrollbar',
  184.                     },
  185.                 });
  186.             }, false);
  187.         </script>
  188.     {% endblock %}