templates/pages/lis-homepage.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|split('_')[0] }}">
  3. <head>
  4.     {% block meta %}
  5.     
  6.         <meta charset="utf-8">
  7.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8.         <meta name="viewport" content="width=device-width, initial-scale=1">
  9.         {% include "@SuluWebsite/Extension/seo.html.twig" with {
  10.             "seo": extension.seo|default([]),
  11.             "content": content|default([]),
  12.             "localizations": localizations|default([]),
  13.             "shadowBaseLocale": shadowBaseLocale|default(),
  14.         } %}
  15.         <meta name="msapplication-TileColor" content="#da532c">
  16.         <meta name="theme-color" content="#ffffff">
  17.     
  18.     {% endblock %}
  19.     {% block style %}
  20.     
  21.         <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&amp;display=swap" rel="stylesheet" media="all" onload="this.media='all'">
  22.         <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  23.         <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  24.         <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  25.         <link rel="manifest" href="/site.webmanifest">
  26.         <link rel="preconnect" href="https://fonts.googleapis.com">
  27.         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
  28.         <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&amp;display=swap" rel="stylesheet">
  29.         <link rel="stylesheet" href="/web/lis/css/main.css" media="all" onload="this.media='all'">
  30.         <style>
  31.             .dtpcnt{opacity: 0;}
  32.             .hero-image--main {
  33.                 background-image: url({{ content.heroImage.thumbnails['800x'] }});
  34.             }
  35.             .gradient-main {
  36.                 background: linear-gradient(317deg,#7673ff,rgba(75,73,212,0) 49.48%),{{ content.mainColor }};
  37.                 background: var(--blue-gradient-1,linear-gradient(317deg,#7673ff,rgba(75,73,212,0) 49.48%),{{ content.mainColor }})
  38.             }
  39.         </style>
  40.     
  41.     {% endblock %}
  42. </head>
  43. <body>
  44.     <div id="app" class="flex justify-between flex-col min-h-screen">
  45.         
  46.         <div class="cookiebar">
  47.             <div class="cookiebar__container">
  48.                 <p class="cookiebar__text">We use cookies to improve our site. By using our website you agree to their use.</p> 
  49.                 <span class="cookiebar__close"><span></span> <span></span></span>
  50.             </div>
  51.         </div>
  52.         {% block header %}
  53.         <header class="header absolute w-full">
  54.             
  55.             <div class="header__container md:px-6">
  56.                 <div class="header__left">
  57.                     <object type="image/svg+xml" data="{{ content.logoImage.thumbnails['300x'] }}" class="md:max-h-10 lg:max-h-12"></object>
  58.                 </div> 
  59.                 <div class="header__right font-primary text-sm">
  60.                     <a href="/life-insurance" class="sls__button--quote py-4 px-5 text-20 -md:px-7/8 -md:py-3 -md:text-18 md:shadow-none lg:text-20 lg:max-h-14 lg:min-h-0">Get A Quote</a>
  61.                 </div>
  62.             </div>
  63.         </header>
  64.         {% endblock %}
  65.         {% block hero %}
  66.         <section class="section-hero hero gradient-main overflow-hidden md:flex md:px-15 md:pb-10">
  67.             <div class="md:flex md:max-w-wrapper-664 md:mx-auto lg:max-w-wrapper-904 lg:gap-4 xl:max-w-wrapper-1000 xl:px-10 xl:gap-12">
  68.                 <div class="hero-description px-4 mt-4 mb-9 md:flex md:flex-col md:px-0 md:mb-4">
  69.                     <h1 class="text-32 leading-40 text-white text-center mb-3 md:text-40 md:leading-54 md:text-left md:mb-1 lg:text-54 lg:leading-64 lg:mb-4">
  70.                         {{ content.heroTitle | raw  }}
  71.                     </h1> 
  72.                     <p class="text-base leading-24 text-white text-center mb-5 md:text-18 md:leading-32 md:min-h-24 md:text-left lg:min-h-20 lg:text-20 lg:leading-32 lg:mb-3">
  73.                         {{ content.heroSubtitle | raw }}
  74.                     </p> 
  75.                     <a href="/life-insurance" class="sls__button--quote mx-auto md:ml-0 -md:max-w-50 -md:px-0">Get A Quote</a>
  76.                 </div> 
  77.                 <div class="hero-image mx-auto relative w-full h-47 md:min-w-71 md:w-71 md:h-60 md:mt-8 lg:min-w-98 lg:w-98 lg:h-87 lg:mt-9">
  78.                     <img src="/web/lis/images/hero/hero-vectors-left-desktop.svg" alt="" class="hero-image--left absolute left-0 top-0 hidden md:block -lg:max-w-23"> 
  79.                     <div class="hero-image--main h-full w-full -md:rounded-none md:min-w-58 md:w-58 md:h-58 md:ml-3 lg:w-77 lg:h-77 lg:ml-6 lg:mr-15"></div> 
  80.                     <img src="/web/lis/images/hero/hero-vectors-right-desktop.svg" alt="" class="hero-image--left absolute bottom-0 right-0 hidden md:block -lg:max-w-25 lg:mb-8">
  81.                 </div>
  82.             </div>
  83.         </section> 
  84.         {% endblock %}
  85.         {% block content %}
  86.         {% endblock %}
  87.         {% block contentBody %}
  88.             {% include 'includes/blocks.html.twig' %}
  89.         {% endblock %}
  90.     </main> 
  91.     
  92.     {% block footer %}
  93.         <footer class="footer bg-blue-500 px-4 py-6">
  94.             <div class="footer__container w-full max-w-wrapper-560 mx-auto flex flex-col gap-6 text-xs leading-18 text-white text-center">
  95.                 
  96.                 {{ content.footerMain | raw }}
  97.                 {% if content.footerLinks %}
  98.                 <span class="md:hidden">
  99.                     <div class="flex justify-center gap-4">
  100.                         {{ content.footerLinks | raw }}
  101.                     </div>
  102.                 </span> 
  103.                 {% endif %}
  104.                 <span class="md:flex md:gap-8 md:justify-center">
  105.                     Copyright © {{ 'now' | date('Y') }} life-insurance.representationmedia.co.uk
  106.                     
  107.                     {% if content.footerLinks %}
  108.                     <div class="hidden justify-center gap-4 md:flex">
  109.                         {{ content.footerLinks | raw }}
  110.                     </div>
  111.                     {% endif %}
  112.                 </span>
  113.             </div>
  114.         </footer>
  115.     {% endblock %}
  116.     </div>
  117.     {% block javascripts %}
  118.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
  119.         <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" defer=""></script>
  120.         <script src="https://cdnjs.cloudflare.com/ajax/libs/detectizr/2.2.0/detectizr.min.js" defer=""></script>
  121.         <script>
  122.             if (!localStorage.getItem('lisconsentcookie')) {
  123.                 $('div.cookiebar').addClass('active');
  124.             } 
  125.             $('span.cookiebar__close').on('click',function() {
  126.                 localStorage.setItem('lisconsentcookie',true);
  127.                 $('div.cookiebar').removeClass('active');
  128.             })
  129.         </script>
  130.     {% endblock %}
  131. </body>
  132. </html>