templates/home/index.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}Hello HomeController!{% endblock %}
{% block body %}
<!-- start::categories -->
<section
class="py-20 border-b border-gray-200 dark:border-foreground dark:bg-background"
>
<div class="container mx-auto lg:p-0 p-5">
<div
class="flex lg:flex-row flex-col lg:text-left text-center flex-wrap items-center justify-between mb-12"
>
<div class="lg:mb-0 mb-4" data-aos="fade-up">
<h2
class="text-2xl lg:text-3xl font-medium mb-2 dark:text-gray-100"
>
Explorez par catégorie
</h2>
<h6
class="text-sm lg:text-base text-gray-500 dark:text-gray-400 font-normal"
>
Nous sélectionnons pour vous les professionnels de qualité du Sarladais
</h6>
</div>
<div data-aos="fade-up">
<a
href="{{ path('app_home_list') }}"
class="text-gray-500 dark:text-gray-400 hover:text-blue-500 flex items-center"
>
Voir toutes les catégories
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 ml-3"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M14 5l7 7m0 0l-7 7m7-7H3"
/>
</svg>
</a>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-7">
{% for category in allCategory %}
<a
href="{{ path('app_home_list_category', {id:category.id}) }}"
class="relative overflow-hidden group rounded-lg group"
data-aos="fade-up"
data-aos-duration="800"
>
<img
class="w-full h-[277px] object-cover rounded-lg transition-all group-hover:scale-105"
src="{{ category.picture }}"
alt=""
/>
<div
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"
>
<h5 class="text-2xl font-medium mb-1 text-white">{{ category.name }}</h5>
<p class="text-base font-normal text-gray-100">
{{ category.shops|length }} commerces disponibles
</p>
</div>
</a>
{% endfor %}
</div>
</div>
</section>
<!-- end::categories -->
<!-- strat wrapper -->
<div class="font-inter">
<!-- start::trending-listing -->
<section
class="py-20 border-b border-gray-200 dark:border-foreground dark:bg-background"
>
<div class="container mx-auto lg:p-0 p-5">
<div
class="flex lg:flex-row flex-col lg:text-left text-center flex-wrap items-center justify-between mb-12"
>
<div class="lg:mb-0 mb-4" data-aos="fade-up">
<h2
class="text-2xl lg:text-3xl font-medium mb-2 dark:text-gray-100"
>
Les commerces du moment !
</h2>
<h6
class="text-sm lg:text-base text-gray-500 dark:text-gray-400 font-normal"
>
Une sélection de commerces vérifiés par Best of Sarlat
</h6>
</div>
<div data-aos="fade-up">
<a
href="{{ path('app_home_list') }}"
class="text-gray-500 dark:text-gray-400 hover:text-blue-500 flex items-center"
>
Voir tous les commerces
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 ml-3"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M14 5l7 7m0 0l-7 7m7-7H3"
/>
</svg>
</a>
</div>
</div>
<!-- Slider main container -->
<div class="relative">
<div class="swiper">
<!-- Additional required wrapper -->
<div class="swiper-wrapper relative h-full">
<!-- Slides -->
<!-- Slide -->
{% for shop in shopForView %}
{% if shop.homepagePlace == 2 %}
<div
class="swiper-slide overflow-hidden rounded-lg"
data-aos="fade-up"
>
<a
href="{{ path('app_home_show', {'slug' : shop.slug })}}"
class="relative overflow-hidden group"
>
<img
class="w-full h-80 object-cover rounded-t-lg group-hover:scale-105 transition-all"
src="{{ vich_uploader_asset(shop, 'picture1') }}"
alt=""
/>
<div
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"
>
{% for category in shop.categories %}
<span
class="bg-pink-600 text-xs text-white rounded-full px-3 py-1 mb-3 inline-flex"
>{{ category.name }}</span
>
{% endfor %}
<div class="flex text-white items-center mb-2">
<h2 class="text-xl capitalize font-semibold mr-2">
{{shop.name}}
</h2>
{% if shop.verified == true %}
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5 text-green-600"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fill-rule="evenodd"
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"
clip-rule="evenodd"
/>
</svg>
{% endif %}
</div>
<p class="text-sm font-normal text-white mb-4">
{{shop.AddressCity}}
</p>
</div>
</a>
</div>
{% endif %}
{% endfor %}
<div
class="swiper-slide overflow-hidden rounded-lg"
data-aos="fade-up"
>
</div>
</div>
<!-- If we need pagination -->
<div class="swiper-pagination"></div>
<!-- If we need navigation buttons -->
</div>
<div class="swiper-button-prev left-2 lg:-left-3 after:hidden">
<button
type="button"
class="bg-white dark:bg-foreground text-blue-500 hover:bg-blue-500 hover:text-white rounded-full p-3 shadow-small-content-1"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
class="h-6 w-6"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10 19l-7-7m0 0l7-7m-7 7h18"
/>
</svg>
</button>
</div>
<div class="swiper-button-next absolute right-2 lg:-right-3 after:hidden">
<button
type="button"
class="bg-white dark:bg-foreground text-blue-500 hover:bg-blue-500 hover:text-white rounded-full p-3 shadow-small-content-1"
>
<svg
class="h-6 w-6"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M14 5l7 7m0 0l-7 7m7-7H3"
/>
</svg>
</button>
</div>
</div>
<div class="relative w-24 mx-auto mt-10"></div>
</div>
</section>
<!-- end::listing-area -->
<!-- start::blogs -->
<section
class="py-20 border-b border-gray-200 dark:border-foreground dark:bg-background"
>
<div class="container mx-auto lg:p-0 p-5">
<div
class="flex lg:flex-row flex-col lg:text-left text-center flex-wrap items-center justify-between mb-12"
>
<div class="lg:mb-0 mb-4">
<h1
class="text-2xl dark:text-gray-200 lg:text-3xl font-medium capitalize mb-2"
data-aos="fade-up"
data-aos-duration="800"
>
Notre blog
</h1>
<h6
class="text-sm dark:text-gray-400 lg:text-base text-gray-500 font-normal"
data-aos="fade-up"
data-aos-duration="1000"
>
En savoir plus ce qui se passe près de Sarlat
</h6>
</div>
<div data-aos="fade-up" data-aos-duration="800">
<a
href="#"
type="button"
class="text-gray-500 dark:text-gray-400 hover:text-blue-500 flex items-center"
>
Voir le blog
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 ml-3"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M14 5l7 7m0 0l-7 7m7-7H3"
/>
</svg>
</a>
</div>
</div>
<!-- Slider main container -->
<div class="relative">
<div class="swiper">
<!-- Additional required wrapper -->
<div class="swiper-wrapper relative h-full">
<!-- Slides -->
<div
class="swiper-slide mt-4 lg:mb-8"
data-aos="fade-up"
data-aos-duration="800"
>
<div
class="shadow-front-1 rounded-lg [&>div]:hover:shadow-front-3 group dark:bg-foreground"
>
<a href="#">
<img
class="w-full h-64 object-cover rounded-t-lg"
src="img/Image/landing-page-image/house.jpg"
alt=""
/>
</a>
<div class="p-8 dark:bg-foreground rounded-b-lg shadow-front-1">
<a
href="#"
class="text-2xl group-hover:text-blue-500 font-semibold text-gray-700 dark:text-gray-100 mb-4"
>
Quel hébergement choisir ?
</a>
<div class="text-sm text-gray-500 mb-7 dark:text-gray-400">
Plusieurs types d'hébergements sont à votre disposition mais, lequel choisir ?
</div>
</div>
</div>
</div>
<div
class="swiper-slide mt-4 mb-8"
data-aos="fade-up"
data-aos-duration="800"
>
<div
class="rounded-lg shadow-front-1 [&>div]:hover:shadow-front-3 dark:bg-foreground group"
>
<a href="#">
<img
class="w-full h-64 object-cover rounded-t-lg"
src="img/Image/event-landing-page/concert.jpg"
alt=""
/>
</a>
<div
class="p-8 dark:bg-foreground rounded-b-lg border-b-lg shadow-front-1"
>
<a
href="#"
class="text-2xl font-semibold text-gray-700 dark:text-gray-100 mb-4 group-hover:text-blue-500"
>
Les meilleurs concert de l'été
</a>
<div class="text-sm text-gray-500 mb-7 dark:text-gray-400">
Notre sélection des meilleurs concerts et meilleurs lieux en Dordogne.
</div>
</div>
</div>
</div>
<div
class="swiper-slide mt-4 mb-8"
data-aos="fade-up"
data-aos-duration="800"
>
<div
class="shadow-front-1 rounded-lg dark:bg-foreground [&>div]:hover:shadow-front-3 group"
>
<a href="#">
<img
class="w-full h-64 object-cover rounded-t-lg"
src="img/Image/landing-page-image/dish.jpg"
alt=""
/>
</a>
<div class="p-8 dark:bg-foreground shadow-front-1">
<a
href="#"
class="text-2xl font-semibold text-gray-700 dark:text-gray-100 mb-4 group-hover:text-blue-500"
>
Les spécialités locales
</a>
<div class="text-sm text-gray-500 dark:text-gray-400 mb-7">
Nos spécialités n'auront plus de secret pour vous après cet article
</div>
</div>
</div>
</div>
<div
class="swiper-slide mt-4 mb-8"
data-aos="fade-up"
data-aos-duration="800"
>
<div
class="shadow-front-1 rounded-lg [&>div]:hover:shadow-front-3 group dark:bg-foreground"
>
<a href="#">
<img
class="w-full h-64 object-cover rounded-t-lg"
src="img/Image/landing-page-image/house.jpg"
alt=""
/>
</a>
<div class="p-8 dark:bg-foreground rounded-b-lg shadow-front-1">
<a
href="#"
class="text-2xl group-hover:text-blue-500 font-semibold text-gray-700 dark:text-gray-100 mb-4"
>
Quel hébergement choisir ?
</a>
<div class="text-sm text-gray-500 mb-7 dark:text-gray-400">
Plusieurs types d'hébergements sont à votre disposition mais, lequel choisir ?
</div>
</div>
</div>
</div>
</div>
<!-- If we need pagination -->
<div class="swiper-pagination"></div>
<!-- If we need navigation buttons -->
</div>
<div class="swiper-button-prev left-2 lg:-left-3 after:hidden">
<button
type="button"
class="bg-white dark:bg-foreground text-blue-500 hover:bg-blue-500 hover:text-white rounded-full p-3"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10 19l-7-7m0 0l7-7m-7 7h18"
/>
</svg>
</button>
</div>
<div class="swiper-button-next absolute right-2 lg:-right-3 after:hidden">
<button
type="button"
class="bg-white dark:bg-foreground text-blue-500 hover:bg-blue-500 hover:text-white rounded-full p-3"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M14 5l7 7m0 0l-7 7m7-7H3"
/>
</svg>
</button>
</div>
</div>
<div class="relative w-24 mx-auto mt-10"></div>
</div>
</section>
<!-- end::blogs -->
<!-- start::scroll-top-btn -->
<div class="scroll-top-btn opacity-0 transition-all">
<button
type="button"
class="bg-blue-500 p-2 fixed z-50 bottom-0 hover:-translate-y-2 transition-all right-0 m-10 rounded-full"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 text-white"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M7 11l5-5m0 0l5 5m-5-5v12"
/>
</svg>
</button>
</div>
<!-- end::newsletter -->
{% endblock %}