templates/home/index.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}Hello HomeController!{% endblock %}
  3. {% block body %}
  4.           <!-- start::categories  -->
  5.       <section
  6.   class="py-20 border-b border-gray-200 dark:border-foreground dark:bg-background"
  7. >
  8.   <div class="container mx-auto lg:p-0 p-5">
  9.     <div
  10.       class="flex lg:flex-row flex-col lg:text-left text-center flex-wrap items-center justify-between mb-12"
  11.     >
  12.       <div class="lg:mb-0 mb-4" data-aos="fade-up">
  13.         <h2
  14.           class="text-2xl lg:text-3xl font-medium mb-2 dark:text-gray-100"
  15.         >
  16.           Explorez par catégorie
  17.         </h2>
  18.         <h6
  19.           class="text-sm lg:text-base text-gray-500 dark:text-gray-400 font-normal"
  20.         >
  21.           Nous sélectionnons pour vous les professionnels de qualité du Sarladais
  22.         </h6>
  23.       </div>
  24.       <div data-aos="fade-up">
  25.         <a
  26.           href="{{ path('app_home_list') }}"
  27.           class="text-gray-500 dark:text-gray-400 hover:text-blue-500 flex items-center"
  28.         >
  29.           Voir toutes les catégories
  30.           <svg
  31.             xmlns="http://www.w3.org/2000/svg"
  32.             class="w-5 ml-3"
  33.             fill="none"
  34.             viewBox="0 0 24 24"
  35.             stroke="currentColor"
  36.             stroke-width="2"
  37.           >
  38.             <path
  39.               stroke-linecap="round"
  40.               stroke-linejoin="round"
  41.               d="M14 5l7 7m0 0l-7 7m7-7H3"
  42.             />
  43.           </svg>
  44.         </a>
  45.       </div>
  46.     </div>
  47.     <div class="grid grid-cols-1 md:grid-cols-3 gap-7">
  48.     {% for category in allCategory %}
  49.       <a
  50.         href="{{ path('app_home_list_category', {id:category.id}) }}" 
  51.         class="relative overflow-hidden group rounded-lg group"
  52.         data-aos="fade-up"
  53.         data-aos-duration="800"
  54.       >
  55.         <img
  56.           class="w-full h-[277px] object-cover rounded-lg transition-all group-hover:scale-105"
  57.           src="{{ category.picture }}"
  58.           alt=""
  59.         />
  60.         <div
  61.           class="absolute bottom-0 top-1/2 flex flex-col justify-end left-0 pb-5 pl-5 rounded-b-lg pt-2 card-linear-gradient w-full"
  62.         >
  63.           <h5 class="text-2xl font-medium mb-1 text-white">{{ category.name }}</h5>
  64.           <p class="text-base font-normal text-gray-100">
  65.     {{ category.shops|length }} commerces disponibles
  66.           </p>
  67.         </div>
  68.       </a>
  69.       {% endfor %}      
  70.     </div>
  71.   </div>
  72. </section>
  73.       <!-- end::categories  -->
  74.     <!-- strat wrapper -->
  75.     <div class="font-inter">
  76.       
  77.             <!-- start::trending-listing  -->
  78.       <section
  79.   class="py-20 border-b border-gray-200 dark:border-foreground dark:bg-background"
  80. >
  81.   <div class="container mx-auto lg:p-0 p-5">
  82.     <div
  83.       class="flex lg:flex-row flex-col lg:text-left text-center flex-wrap items-center justify-between mb-12"
  84.     >
  85.       <div class="lg:mb-0 mb-4" data-aos="fade-up">
  86.         <h2
  87.           class="text-2xl lg:text-3xl font-medium mb-2 dark:text-gray-100"
  88.         >
  89.           Les commerces du moment !
  90.         </h2>
  91.         <h6
  92.           class="text-sm lg:text-base text-gray-500 dark:text-gray-400 font-normal"
  93.         >
  94.           Une sélection de commerces vérifiés par Best of Sarlat
  95.         </h6>
  96.       </div>
  97.       <div data-aos="fade-up">
  98.         <a
  99.           href="{{ path('app_home_list') }}"
  100.           class="text-gray-500 dark:text-gray-400 hover:text-blue-500 flex items-center"
  101.         >
  102.           Voir tous les commerces
  103.           <svg
  104.             xmlns="http://www.w3.org/2000/svg"
  105.             class="w-5 ml-3"
  106.             fill="none"
  107.             viewBox="0 0 24 24"
  108.             stroke="currentColor"
  109.             stroke-width="2"
  110.           >
  111.             <path
  112.               stroke-linecap="round"
  113.               stroke-linejoin="round"
  114.               d="M14 5l7 7m0 0l-7 7m7-7H3"
  115.             />
  116.           </svg>
  117.         </a>
  118.       </div>
  119.     </div>
  120.     <!-- Slider main container -->
  121.     <div class="relative">
  122.       <div class="swiper">
  123.         <!-- Additional required wrapper -->
  124.         <div class="swiper-wrapper relative h-full">
  125.           <!-- Slides -->
  126.           <!-- Slide -->          
  127.     {% for shop in shopForView %}
  128.     {% if shop.homepagePlace == 2 %}
  129.           <div
  130.             class="swiper-slide overflow-hidden rounded-lg"
  131.             data-aos="fade-up"
  132.           >
  133.             <a
  134.               href="{{ path('app_home_show', {'slug' : shop.slug })}}"
  135.               class="relative overflow-hidden group"
  136.             >
  137.               
  138.               <img
  139.                 class="w-full h-80 object-cover rounded-t-lg group-hover:scale-105 transition-all"
  140.                 src="{{ vich_uploader_asset(shop, 'picture1') }}"
  141.                 alt=""
  142.               />
  143.               <div
  144.                 class="absolute bottom-0 top-1/2 flex items-start flex-col justify-end left-0 pb-5 pl-5 pt-2 card-linear-gradient w-full"
  145.               >
  146.               {% for category in shop.categories %}
  147.                 <span
  148.                   class="bg-pink-600 text-xs text-white rounded-full px-3 py-1 mb-3 inline-flex"
  149.                   >{{ category.name }}</span
  150.                 >
  151.               {% endfor %}
  152.                 <div class="flex text-white items-center mb-2">
  153.                   <h2 class="text-xl capitalize font-semibold mr-2">
  154.                     {{shop.name}}
  155.                   </h2>
  156.                   {% if shop.verified == true %}
  157.                   <svg
  158.                     xmlns="http://www.w3.org/2000/svg"
  159.                     class="h-5 w-5 text-green-600"
  160.                     viewBox="0 0 20 20"
  161.                     fill="currentColor"
  162.                   >
  163.                     <path
  164.                       fill-rule="evenodd"
  165.                       d="M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
  166.                       clip-rule="evenodd"
  167.                     />
  168.                   </svg>
  169.                   {% endif %}
  170.                 </div>
  171.                 <p class="text-sm font-normal text-white mb-4">
  172.                   {{shop.AddressCity}}
  173.                 </p>
  174.               </div>
  175.             </a>
  176.           </div>
  177.                   {% endif %}
  178.                   {% endfor %}
  179.           
  180.           <div
  181.             class="swiper-slide overflow-hidden rounded-lg"
  182.             data-aos="fade-up"
  183.           >
  184.           </div>
  185.         </div>
  186.         <!-- If we need pagination -->
  187.         <div class="swiper-pagination"></div>
  188.         <!-- If we need navigation buttons -->
  189.       </div>
  190.       <div class="swiper-button-prev left-2 lg:-left-3 after:hidden">
  191.         <button
  192.           type="button"
  193.           class="bg-white dark:bg-foreground text-blue-500 hover:bg-blue-500 hover:text-white rounded-full p-3 shadow-small-content-1"
  194.         >
  195.           <svg
  196.             xmlns="http://www.w3.org/2000/svg"
  197.             fill="none"
  198.             class="h-6 w-6"
  199.             viewBox="0 0 24 24"
  200.             stroke="currentColor"
  201.           >
  202.             <path
  203.               stroke-linecap="round"
  204.               stroke-linejoin="round"
  205.               stroke-width="2"
  206.               d="M10 19l-7-7m0 0l7-7m-7 7h18"
  207.             />
  208.           </svg>
  209.         </button>
  210.       </div>
  211.       <div class="swiper-button-next absolute right-2 lg:-right-3 after:hidden">
  212.         <button
  213.           type="button"
  214.           class="bg-white dark:bg-foreground text-blue-500 hover:bg-blue-500 hover:text-white rounded-full p-3 shadow-small-content-1"
  215.         >
  216.           <svg
  217.             class="h-6 w-6"
  218.             xmlns="http://www.w3.org/2000/svg"
  219.             fill="none"
  220.             viewBox="0 0 24 24"
  221.             stroke="currentColor"
  222.           >
  223.             <path
  224.               stroke-linecap="round"
  225.               stroke-linejoin="round"
  226.               stroke-width="2"
  227.               d="M14 5l7 7m0 0l-7 7m7-7H3"
  228.             />
  229.           </svg>
  230.         </button>
  231.       </div>
  232.     </div>
  233.     <div class="relative w-24 mx-auto mt-10"></div>
  234.   </div>
  235. </section>
  236.       <!-- end::listing-area  -->
  237.  
  238.       <!-- start::blogs  -->
  239.       <section
  240.   class="py-20 border-b border-gray-200 dark:border-foreground dark:bg-background"
  241. >
  242.   <div class="container mx-auto lg:p-0 p-5">
  243.     <div
  244.       class="flex lg:flex-row flex-col lg:text-left text-center flex-wrap items-center justify-between mb-12"
  245.     >
  246.       <div class="lg:mb-0 mb-4">
  247.         <h1
  248.           class="text-2xl dark:text-gray-200 lg:text-3xl font-medium capitalize mb-2"
  249.           data-aos="fade-up"
  250.           data-aos-duration="800"
  251.         >
  252.           Notre blog
  253.         </h1>
  254.         <h6
  255.           class="text-sm dark:text-gray-400 lg:text-base text-gray-500 font-normal"
  256.           data-aos="fade-up"
  257.           data-aos-duration="1000"
  258.         >
  259.           En savoir plus ce qui se passe près de Sarlat
  260.         </h6>
  261.       </div>
  262.       <div data-aos="fade-up" data-aos-duration="800">
  263.         <a
  264.           href="#"
  265.           type="button"
  266.           class="text-gray-500 dark:text-gray-400 hover:text-blue-500 flex items-center"
  267.         >
  268.           Voir le blog
  269.           <svg
  270.             xmlns="http://www.w3.org/2000/svg"
  271.             class="w-5 ml-3"
  272.             fill="none"
  273.             viewBox="0 0 24 24"
  274.             stroke="currentColor"
  275.             stroke-width="2"
  276.           >
  277.             <path
  278.               stroke-linecap="round"
  279.               stroke-linejoin="round"
  280.               d="M14 5l7 7m0 0l-7 7m7-7H3"
  281.             />
  282.           </svg>
  283.         </a>
  284.       </div>
  285.     </div>
  286.     <!-- Slider main container -->
  287.     <div class="relative">
  288.       <div class="swiper">
  289.         <!-- Additional required wrapper -->
  290.         <div class="swiper-wrapper relative h-full">
  291.           <!-- Slides -->
  292.           <div
  293.             class="swiper-slide mt-4 lg:mb-8"
  294.             data-aos="fade-up"
  295.             data-aos-duration="800"
  296.           >
  297.             <div
  298.               class="shadow-front-1 rounded-lg [&>div]:hover:shadow-front-3 group dark:bg-foreground"
  299.             >
  300.               <a href="#">
  301.                 <img
  302.                   class="w-full h-64 object-cover rounded-t-lg"
  303.                   src="img/Image/landing-page-image/house.jpg"
  304.                   alt=""
  305.                 />
  306.               </a>
  307.               <div class="p-8 dark:bg-foreground rounded-b-lg shadow-front-1">
  308.                 <a
  309.                   href="#"
  310.                   class="text-2xl group-hover:text-blue-500 font-semibold text-gray-700 dark:text-gray-100 mb-4"
  311.                 >
  312.                   Quel hébergement choisir ?
  313.                 </a>
  314.                 <div class="text-sm text-gray-500 mb-7 dark:text-gray-400">
  315.                   Plusieurs types d'hébergements sont à votre disposition mais, lequel choisir ?
  316.                 </div>
  317.                 
  318.               </div>
  319.             </div>
  320.           </div>
  321.           <div
  322.             class="swiper-slide mt-4 mb-8"
  323.             data-aos="fade-up"
  324.             data-aos-duration="800"
  325.           >
  326.             <div
  327.               class="rounded-lg shadow-front-1 [&>div]:hover:shadow-front-3 dark:bg-foreground group"
  328.             >
  329.               <a href="#">
  330.                 <img
  331.                   class="w-full h-64 object-cover rounded-t-lg"
  332.                   src="img/Image/event-landing-page/concert.jpg"
  333.                   alt=""
  334.                 />
  335.               </a>
  336.               <div
  337.                 class="p-8 dark:bg-foreground rounded-b-lg border-b-lg shadow-front-1"
  338.               >
  339.                 <a
  340.                   href="#"
  341.                   class="text-2xl font-semibold text-gray-700 dark:text-gray-100 mb-4 group-hover:text-blue-500"
  342.                 >
  343.                   Les meilleurs concert de l'été
  344.                 </a>
  345.                 <div class="text-sm text-gray-500 mb-7 dark:text-gray-400">
  346.                   Notre sélection des meilleurs concerts et meilleurs lieux en Dordogne.
  347.                 </div>
  348.                 
  349.               </div>
  350.             </div>
  351.           </div>
  352.           <div
  353.             class="swiper-slide mt-4 mb-8"
  354.             data-aos="fade-up"
  355.             data-aos-duration="800"
  356.           >
  357.             <div
  358.               class="shadow-front-1 rounded-lg dark:bg-foreground [&>div]:hover:shadow-front-3 group"
  359.             >
  360.               <a href="#">
  361.                 <img
  362.                   class="w-full h-64 object-cover rounded-t-lg"
  363.                   src="img/Image/landing-page-image/dish.jpg"
  364.                   alt=""
  365.                 />
  366.               </a>
  367.               <div class="p-8 dark:bg-foreground shadow-front-1">
  368.                 <a
  369.                   href="#"
  370.                   class="text-2xl font-semibold text-gray-700 dark:text-gray-100 mb-4 group-hover:text-blue-500"
  371.                 >
  372.                   Les spécialités locales
  373.                 </a>
  374.                 <div class="text-sm text-gray-500 dark:text-gray-400 mb-7">
  375.                   Nos spécialités n'auront plus de secret pour vous après cet article
  376.                 </div>
  377.                 
  378.               </div>
  379.             </div>
  380.           </div>
  381.           <div
  382.             class="swiper-slide mt-4 mb-8"
  383.             data-aos="fade-up"
  384.             data-aos-duration="800"
  385.           >
  386.             <div
  387.               class="shadow-front-1 rounded-lg [&>div]:hover:shadow-front-3 group dark:bg-foreground"
  388.             >
  389.               <a href="#">
  390.                 <img
  391.                   class="w-full h-64 object-cover rounded-t-lg"
  392.                   src="img/Image/landing-page-image/house.jpg"
  393.                   alt=""
  394.                 />
  395.               </a>
  396.               <div class="p-8 dark:bg-foreground rounded-b-lg shadow-front-1">
  397.                 <a
  398.                   href="#"
  399.                   class="text-2xl group-hover:text-blue-500 font-semibold text-gray-700 dark:text-gray-100 mb-4"
  400.                 >
  401.                   Quel hébergement choisir ?
  402.                 </a>
  403.                 <div class="text-sm text-gray-500 mb-7 dark:text-gray-400">
  404.                   Plusieurs types d'hébergements sont à votre disposition mais, lequel choisir ?
  405.                 </div>
  406.                 
  407.               </div>
  408.             </div>
  409.           </div>
  410.         </div>
  411.         <!-- If we need pagination -->
  412.         <div class="swiper-pagination"></div>
  413.         <!-- If we need navigation buttons -->
  414.       </div>
  415.       <div class="swiper-button-prev left-2 lg:-left-3 after:hidden">
  416.         <button
  417.           type="button"
  418.           class="bg-white dark:bg-foreground text-blue-500 hover:bg-blue-500 hover:text-white rounded-full p-3"
  419.         >
  420.           <svg
  421.             xmlns="http://www.w3.org/2000/svg"
  422.             class="h-6 w-6"
  423.             fill="none"
  424.             viewBox="0 0 24 24"
  425.             stroke="currentColor"
  426.           >
  427.             <path
  428.               stroke-linecap="round"
  429.               stroke-linejoin="round"
  430.               stroke-width="2"
  431.               d="M10 19l-7-7m0 0l7-7m-7 7h18"
  432.             />
  433.           </svg>
  434.         </button>
  435.       </div>
  436.       <div class="swiper-button-next absolute right-2 lg:-right-3 after:hidden">
  437.         <button
  438.           type="button"
  439.           class="bg-white dark:bg-foreground text-blue-500 hover:bg-blue-500 hover:text-white rounded-full p-3"
  440.         >
  441.           <svg
  442.             xmlns="http://www.w3.org/2000/svg"
  443.             class="h-6 w-6"
  444.             fill="none"
  445.             viewBox="0 0 24 24"
  446.             stroke="currentColor"
  447.           >
  448.             <path
  449.               stroke-linecap="round"
  450.               stroke-linejoin="round"
  451.               stroke-width="2"
  452.               d="M14 5l7 7m0 0l-7 7m7-7H3"
  453.             />
  454.           </svg>
  455.         </button>
  456.       </div>
  457.     </div>
  458.     <div class="relative w-24 mx-auto mt-10"></div>
  459.   </div>
  460. </section>
  461.       <!-- end::blogs  -->
  462.       <!-- start::scroll-top-btn  -->
  463.       <div class="scroll-top-btn opacity-0 transition-all">
  464.   <button
  465.     type="button"
  466.     class="bg-blue-500 p-2 fixed z-50 bottom-0 hover:-translate-y-2 transition-all right-0 m-10 rounded-full"
  467.   >
  468.     <svg
  469.       xmlns="http://www.w3.org/2000/svg"
  470.       class="h-6 w-6 text-white"
  471.       fill="none"
  472.       viewBox="0 0 24 24"
  473.       stroke="currentColor"
  474.       stroke-width="2"
  475.     >
  476.       <path
  477.         stroke-linecap="round"
  478.         stroke-linejoin="round"
  479.         d="M7 11l5-5m0 0l5 5m-5-5v12"
  480.       />
  481.     </svg>
  482.   </button>
  483. </div>
  484.       <!-- end::newsletter  -->
  485.  
  486. {% endblock %}