templates/hotel/sitemaps.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.     <link rel="stylesheet" href="{{ asset('css/collections-page.css') }}??v=26-01-2024-1" type="text/css">
  5.     <link rel="stylesheet" href="{{ asset('css/collections-tours.css') }}??v=26-01-2024-1" type="text/css">
  6.     <link rel="stylesheet" href="{{ asset('css/rating-list.css') }}??v=26-01-2024-1" type="text/css">
  7.     <style>
  8.         .sitemap-list {
  9.             list-style: none;
  10.             -webkit-padding-start: 0;
  11.             -webkit-column-count: 3;
  12.             -moz-column-count: 3;
  13.             column-count: 3;
  14.             -webkit-column-gap: 30px;
  15.             -moz-column-gap: 30px;
  16.             column-gap: 30px;
  17.             margin-top: 0;
  18.             width: 100%;
  19.         }
  20.         .sitemap-item {
  21.             float: none;
  22.             width: auto;
  23.             position: relative;
  24.             -webkit-column-break-inside: avoid;
  25.             page-break-inside: avoid;
  26.             break-inside: avoid;
  27.             font-size: 16px;
  28.             line-height: 1.75 !important;
  29.         }
  30.         .pagination {
  31.             display: flex;
  32.             flex-wrap: wrap;
  33.             width: 100%;
  34.             justify-content: center;
  35.             margin-top: 32px;
  36.             gap: 16px;
  37.         }
  38.         .pagination-item {
  39.             cursor: pointer;
  40.             width: 32px;
  41.             height: 32px;
  42.             border-radius: 5px;
  43.             background-color: #ededee;
  44.             display: flex;
  45.             justify-content: center;
  46.             align-items: center;
  47.             font-size: 15px;
  48.             font-weight: 500;
  49.             color: #25292c;
  50.             text-decoration: none !important;
  51.         }
  52.         .pagination-item:hover {
  53.             background-color: #dddee0;
  54.             color: #0d0f10;
  55.         }
  56.         .pagination-item.active {
  57.             background-color: #0072ed !important;
  58.             color: #fff !important;
  59.         }
  60.         @media (max-width: 767px) {
  61.             .sitemap-list {
  62.                 -webkit-column-count: 2;
  63.                 -moz-column-count: 2;
  64.                 column-count: 2;
  65.             }
  66.         }
  67.         @media (max-width: 480px) {
  68.             .sitemap-list {
  69.                 -webkit-column-count: 1;
  70.                 -moz-column-count: 1;
  71.                 column-count: 1;
  72.             }
  73.         }
  74.     </style>
  75. {% endblock %}
  76. {% block body %}
  77.     <div class="container">
  78.         <div class="collections-page_row">
  79.             <div class="sitemap-list">
  80.                 {% for hotel in data.hotels %}
  81.                 <div class="sitemap-item">
  82.                     <a href="{{ path('app_hotel', { hotelId: hotel.id, hotelSlug: hotel.slug }) }}" class="sitemap-link">
  83.                         {{ hotel.name }} {{ hotel.stars }}
  84.                     </a>
  85.                 </div>
  86.                 {% endfor %}
  87.             </div>
  88.             <div class="pagination">
  89.                 {% for i in 1..data.pages %}
  90.                     <a href="{{ path('app_hotel_sitemaps', { page: i }) }}"
  91.                        class="pagination-item {% if i == app.request.get('page') %}active{% endif %}">
  92.                         {{ i }}
  93.                     </a>
  94.                 {% endfor %}
  95.             </div>
  96.         </div>
  97.     </div>
  98. {% endblock %}