templates/themes/theme/casestudies/study.html.twig line 1

Open in your IDE?
  1. <div class="banner-block-study pb-6 lazyBackgroundImage" data-mobile="{{ imageCache('/' ~ study.getFullImagePath, 'zoomCrop', 900, 405) }}" data-desktop="{{ imageCache('/' ~ study.getFullImagePath, 'zoomCrop', 3200, 1440) }}">
  2.     <div class="container h-full">
  3.         <div class="flex items-end h-full">
  4.             <h1>Case Study</h1>
  5.         </div>
  6.     </div>
  7. </div>
  8. <div class="container my-12">
  9.     <div class="row">
  10.     <div class="lg:col-3">
  11.         <div class="lg:sticky lg:top-36 lg:z-20">
  12.             <hr />
  13.             {% if study.client %}
  14.             <div class="mb-6">
  15.                 <h3 class="text-primary mb-2">Client</h3>
  16.                 <img class="max-w-[75%] max-h-[70px] h-auto" src="{{ imageCache('/' ~ study.client.getFullImagePath, 'cropResize', 760, 380) }}" />
  17.             </div>
  18.             {% endif %}
  19.             {% if study.location %}
  20.             <div class="mb-6">
  21.                 <h3 class="text-primary mb-0">Location</h3>
  22.                 <p>{{ study.location }}</p>
  23.             </div>
  24.             {% endif %}
  25.             {% if study.duration %}
  26.             <div class="mb-6">
  27.                 <h3 class="text-primary mb-0">Project Duration</h3>
  28.                 <p>{{ study.duration }}</p>
  29.             </div>
  30.             {% endif %}
  31.             {% if study.scope %}
  32.             <div class="mb-6">
  33.                 <h3 class="text-primary mb-0">Scope</h5>
  34.                 <p>{{ study.scope }}</p>
  35.             </div>
  36.             {% endif %}
  37.         </div>
  38.     </div>
  39.     <div class="lg:col-9 casestudy-cms">
  40.         <h1>{{ study.title }}</h1>
  41.         {{ study.content|raw }}
  42.         {% if study.image2 %}
  43.         <img class="max-w-full h-auto mt-6 md:mt-12" src="{{ imageCache('/' ~ study.getFullImage2Path, 'zoomCrop', 1600, 900) }}" loading="lazy" />
  44.         {% endif %}
  45.     </div>
  46.     </div>
  47. </div>
  48. {% if study.activeCaseStudySlideItems|length > 0 %}
  49.   <section class="pb-6">
  50.       <div class="container">
  51.         <div class="row">
  52.             <div class="col-12">
  53.                 <h3>Photo Gallery</h3>
  54.             </div>
  55.         </div>
  56.           <div class="row">
  57.               {% for item in study.activeCaseStudySlideItems %}
  58.                     <div class="md:col-4 sm:col-6">
  59.                         <img class="max-w-full h-auto mb-6" src="{{ imageCache('/' ~ item.fullImagePath, 'zoomCrop', 800, 800)  }}" alt="item.title" loading="lazy" />
  60.                     </div>
  61.               {% endfor %}
  62.           </div>
  63.       </div>
  64.   </section>
  65. {% endif %}