templates/default/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.     {{ encore_entry_link_tags('home') }}
  5. {% endblock %}
  6. {% block javascripts %}
  7.     {{ parent() }}
  8.     {{ encore_entry_script_tags('homejs') }}
  9.     {{ encore_entry_script_tags('vimeo') }}
  10. {% endblock %}
  11. {% block body %}
  12.     <div id="carouselExampleIndicators" class="carousel slide carousel-fade"
  13.             data-bs-ride="carousel">
  14.         <div class="carousel-indicators">
  15.             <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
  16.             <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button>
  17.             <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button>
  18.         </div>
  19.         <div class="carousel-inner">
  20.             <div class="bg-mid-green carousel-item active" data-bs-interval="10000">
  21.                 <div class="carousel-content d-flex flex-column-reverse flex-xl-row position-relative pt-5 w-100 z-index-1" id="who-we-are-slide">
  22.                     <div class="col-xl-1"></div>
  23.                     <div class="col-xl-4 col-10 homepage-banner-text-container">
  24.                         <h2 class="fs-4 text-uppercase yellow">Who we are</h2>
  25.                         <p class="fw-light fs-1 lh-sm max-width-650 pb-4 text-white">We specialise in designing and manufacturing professional lighting systems<span class="yellow">.</span>
  26.                         </p>
  27.                         <a class="btn white-border" href="{{ path('about_route') }}#who-are-we" rel="nofollow">Learn more</a>
  28.                     </div>
  29.                     <div class="col-xl-1"></div>
  30.                     <div class="bg-white col-xl-5 col-10 homepage-media-frame mb-3 mb-xl-0 mt-xl-5 position-relative rounded-5">
  31.                         <div class="home-video-wrap position-absolute h-100">
  32.                             <div class="home-video-embed w-100 h-100 top-0 bottom-0 start-0 end-0">
  33.                                 <iframe class="w-100 h-100 about-video position-absolute" src="https://player.vimeo.com/video/726750162?background=1&amp;controls=0&amp;quality=1080p" allow="autoplay; fullscreen" rel="nofollow noopener"></iframe>
  34.                             </div>
  35.                         </div>
  36.                     </div>
  37.                     <div class="col-xl-1"></div>
  38.                 </div>
  39.                 <img src="{{ asset('build/images/home/dark-green-curve-l.svg') }}" alt="dark green curve" class="dark-green-curve-l">
  40.                 <img src="{{ asset('build/images/home/light-green-curve-r.svg') }}" alt="light green curve" class="light-green-curve-r">
  41.             </div>
  42.             <div class="bg-dark-green carousel-item" data-bs-interval="10000">
  43.                 <div class="carousel-content d-flex flex-column-reverse flex-xl-row position-relative pt-5 w-100 z-index-1" id="purpose-slide">
  44.                     <div class="col-xl-1"></div>
  45.                     <div class="col-xl-4 col-10 homepage-banner-text-container">
  46.                         <h2 class="fs-4 text-uppercase yellow">Our purpose</h2>
  47.                         <p class="fw-light fs-1 lh-sm max-width-650 pb-4 text-white">To provide technically advanced lighting solutions that deliver long-term lowest cost of ownership<span class="yellow">.</span>
  48.                         </p>
  49.                         <a class="btn white-border" href="{{ path('about_route') }}#our-purpose" rel="nofollow">Learn more</a>
  50.                     </div>
  51.                     <div class="col-xl-1"></div>
  52.                     <div class="bg-white col-xl-5 col-10 homepage-media-frame mb-3 mb-xl-0 mt-xl-5 position-relative rounded-5">
  53.                         <div class="home-video-wrap position-absolute h-100">
  54.                             <div class="home-video-embed w-100 h-100 top-0 bottom-0 start-0 end-0">
  55.                                 <iframe class="w-100 h-100 homepage-video position-absolute" src="https://player.vimeo.com/video/726750180?background=1&amp;controls=0&amp;quality=1080p" allow="autoplay; fullscreen" rel="nofollow noopener"></iframe>
  56.                             </div>
  57.                         </div>
  58.                     </div>
  59.                     <div class="col-xl-1"></div>
  60.                 </div>
  61.                 <img src="{{ asset('build/images/home/mid-green-curve-l.svg') }}" alt="mid green curve" class="mid-green-curve-l">
  62.                 <img src="{{ asset('build/images/home/light-green-curve-r.svg') }}" alt="light green curve" class="light-green-curve-r">
  63.             </div>
  64.             <div class="bg-light-green carousel-item" data-bs-interval="10000">
  65.                 <div class="carousel-content d-flex flex-column-reverse flex-xl-row position-relative pt-5 w-100 z-index-1" id="vision-slide">
  66.                     <div class="col-xl-1"></div>
  67.                     <div class="col-xl-4 col-10 homepage-banner-text-container">
  68.                         <h2 class="fs-4 text-uppercase yellow">Our vision</h2>
  69.                         <p class="fw-light fs-1 lh-sm max-width-650 pb-4 text-white">To maintain a consistently respected and profitable organisation with an environmental conscience<span class="yellow">.</span>
  70.                         </p>
  71.                         <a class="btn white-border" href="{{ path('about_route') }}#our-vision" rel="nofollow">Learn more</a>
  72.                     </div>
  73.                     <div class="col-xl-1"></div>
  74.                     <div class="bg-white col-xl-5 col-10 homepage-media-frame mb-3 mb-xl-0 mt-xl-5 position-relative rounded-5">
  75.                         <div class="home-video-wrap position-absolute h-100">
  76.                             <div class="home-video-embed w-100 h-100 top-0 bottom-0 start-0 end-0">
  77.                                 <iframe class="w-100 h-100 homepage-video" src="https://player.vimeo.com/video/726750205?background=1&amp;controls=0&amp;quality=1080p" allow="autoplay; fullscreen" rel="nofollow noopener"></iframe>
  78.                             </div>
  79.                         </div>
  80.                     </div>
  81.                     <div class="col-xl-1"></div>
  82.                 </div>
  83.                 <img src="{{ asset('build/images/home/dark-green-curve-l.svg') }}" alt="dark green curve" class="dark-green-curve-l">
  84.                 <img src="{{ asset('build/images/home/mid-green-curve-r.svg') }}" alt="mid green curve" class="mid-green-curve-r">
  85.             </div>
  86.         </div>
  87.     </div>
  88.     <a href="{{ path('index_route') }}#global-presence" class="position-relative slide-in-up z-index-1" id="down-arrow-link" rel="nofollow"
  89.             data-toggle="animation"
  90.             data-animation-start="onScroll"
  91.             data-animation="slide-in-up"
  92.     > <img src="{{ asset('build/images/yellow-down-arrow.svg') }}" alt="yellow down arrow" class="yellow-down-arrow">
  93.     </a>
  94.     <div class="bg-white d-flex pt-7 w-100" id="global-presence">
  95.         <div class="col-1"></div>
  96.         <div class="col-10 pb-xl-5 pb-3">
  97.             <h2 class="dark-green mb-0 text-center">Global Locations<span class="yellow">.</span></h2>
  98.         </div>
  99.         <div class="col-1"></div>
  100.     </div>
  101.     <div class="bg-white container-fluid">
  102.         <div class="position-relative" id="map">
  103.             <div class="position-relative" id="map-wrapper">
  104.                 <img class="w-100" src="{{ asset('build/images/home/world-map.webp') }}" alt="Global Presence">
  105.                 <img src="{{ asset('build/images/home/location-pin.svg') }}" class="location-pin position-absolute" id="uk-pin" alt="UK" title="UK">
  106.                 <img src="{{ asset('build/images/home/location-pin.svg') }}" class="location-pin position-absolute" id="ie-pin" alt="Ireland" title="Ireland">
  107.                 <img src="{{ asset('build/images/home/location-pin.svg') }}" class="location-pin position-absolute" id="fr-pin" alt="France" title="France">
  108.                 <img src="{{ asset('build/images/home/location-pin.svg') }}" class="location-pin position-absolute" id="nl-pin" alt="Netherlands" title="Netherlands">
  109.                 <img src="{{ asset('build/images/home/location-pin.svg') }}" class="location-pin position-absolute" id="de-pin" alt="Germany" title="Germany">
  110.                 <img src="{{ asset('build/images/home/location-pin.svg') }}" class="location-pin position-absolute" id="es-pin" alt="Spain" title="Spain">
  111.                 <img src="{{ asset('build/images/home/location-pin.svg') }}" class="location-pin position-absolute" id="uae-pin" alt="U.A.E." title="U.A.E.">
  112.                 <img src="{{ asset('build/images/home/location-pin.svg') }}" class="location-pin position-absolute" id="aus-pin" alt="Australia" title="Australia">
  113.             </div>
  114.             <div class="bg-white-70 location-list small-circle" id="aus-list">
  115.                 <div class="list-close position-absolute"></div>
  116.                 <div class="country-circle-content">
  117.                     <h3 class="country mid-green fs-2 text-center" id="aus-title">Australia</h3>
  118.                     <div class="companies mx-auto ps-xl-0 w-md-50" id="aus-companies">
  119.                         <h4 class="company fs-5 my-0">
  120.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('thorlux_route') }}">Thorlux Lighting Australasia</a>
  121.                         </h4>
  122.                         <p class="mid-green fs-6 mb-2">Sydney</p>
  123.                     </div>
  124.                 </div>
  125.             </div>
  126.             <div class="bg-white-70 location-list small-circle" id="fr-list">
  127.                 <div class="list-close position-absolute"></div>
  128.                 <div class="country-circle-content">
  129.                     <h3 class="country mid-green fs-2 text-center" id="fr-title">France</h3>
  130.                     <div class="companies mx-auto ps-xl-0 w-md-50" id="fr-companies">
  131.                         <h4 class="company fs-5 my-0">
  132.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('zemper_route') }}">Zemper</a>
  133.                         </h4>
  134.                         <p class="mid-green fs-6 mb-2">Charnay-lès-Mâcon</p>
  135.                     </div>
  136.                 </div>
  137.             </div>
  138.             <div class="bg-white-70 location-list small-circle" id="de-list">
  139.                 <div class="list-close position-absolute"></div>
  140.                 <div class="country-circle-content">
  141.                     <h3 class="country mid-green fs-2 text-center" id="de-title">Germany</h3>
  142.                     <div class="companies mx-auto ps-xl-0 w-md-50" id="de-companies">
  143.                         <h4 class="company fs-5 my-0">
  144.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('thorlux_route') }}">Thorlux Lighting</a>
  145.                         </h4>
  146.                         <p class="mid-green fs-6 mb-2">Moers</p>
  147.                         <h4 class="company fs-5 my-0">
  148.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('schahlled_route') }}">SchahlLED Lighting</a>
  149.                         </h4>
  150.                         <p class="mid-green fs-6 mb-2">Unterschleißheim</p>
  151.                     </div>
  152.                 </div>
  153.             </div>
  154.             <div class="bg-white-70 location-list small-circle" id="ie-list">
  155.                 <div class="list-close position-absolute"></div>
  156.                 <div class="country-circle-content">
  157.                     <h3 class="country mid-green fs-2 text-center" id="ie-title">Ireland</h3>
  158.                     <div class="companies mx-auto ps-xl-0 w-md-50" id="ie-companies">
  159.                         <h4 class="company fs-5 my-0">
  160.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('thorlux_route') }}">Thorlux Lighting</a>
  161.                         </h4>
  162.                         <p class="mid-green fs-6 mb-2">Dublin</p>
  163.                     </div>
  164.                 </div>
  165.             </div>
  166.             <div class="bg-white-70 location-list small-circle" id="nl-list">
  167.                 <div class="list-close position-absolute"></div>
  168.                 <div class="country-circle-content">
  169.                     <h3 class="country mid-green fs-2 text-center" id="nl-title">Netherlands</h3>
  170.                     <div class="companies mx-auto ps-xl-0 w-md-50" id="nl-companies">
  171.                         <h4 class="company fs-5 my-0">
  172.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('famostar_route') }}">Famostar</a>
  173.                         </h4>
  174.                         <p class="mid-green fs-6 mb-2">Velp</p>
  175.                         <h4 class="company fs-5 my-0">
  176.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('lightronics_route') }}">Lightronics</a>
  177.                         </h4>
  178.                         <p class="mid-green fs-6 mb-2">Waalwijk</p>
  179.                         <h4 class="company fs-5 my-0">
  180.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('ratio_route') }}">Ratio</a>
  181.                         </h4>
  182.                         <p class="mid-green fs-6 mb-2">Nijkerk</p>
  183.                     </div>
  184.                 </div>
  185.             </div>
  186.             <div class="bg-white-70 location-list small-circle" id="es-list">
  187.                 <div class="list-close position-absolute"></div>
  188.                 <div class="country-circle-content">
  189.                     <h3 class="country mid-green fs-2 text-center" id="es-title">Spain</h3>
  190.                     <div class="companies mx-auto ps-xl-0 w-md-50" id="es-companies">
  191.                         <h4 class="company fs-5 my-0">
  192.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('zemper_route') }}">Zemper</a>
  193.                         </h4>
  194.                         <p class="mid-green fs-6 mb-2">Ciudad Real</p>
  195.                     </div>
  196.                 </div>
  197.             </div>
  198.             <div class="bg-white-70 location-list small-circle" id="uae-list">
  199.                 <div class="list-close position-absolute"></div>
  200.                 <div class="country-circle-content">
  201.                     <h3 class="country mid-green fs-2 text-center" id="uae-title">UAE</h3>
  202.                     <div class="companies mx-auto ps-xl-0 w-md-50" id="uae-companies">
  203.                         <h4 class="company fs-5 my-0">
  204.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('thorlux_route') }}">Thorlux Lighting</a>
  205.                         </h4>
  206.                         <p class="mid-green fs-6 mb-2">Abu Dhabi</p>
  207.                     </div>
  208.                 </div>
  209.             </div>
  210.             <div class="bg-white-70 location-list" id="uk-list">
  211.                 <div class="list-close"></div>
  212.                 <h3 class="col-12 country mid-green fs-2 text-center" id="uk-title">UK</h3>
  213.                 <div class="companies mx-auto ps-xl-0 w-md-50" id="uk-companies-list">
  214.                     <div>
  215.                         <h4 class="company fs-5 my-0">
  216.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('philip_payne_route') }}">Philip Payne</a>
  217.                         </h4>
  218.                         <p class="mid-green fs-6 mb-2">Solihull</p>
  219.                         <h4 class="company fs-5 my-0">
  220.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('portland_route') }}">Portland Lighting</a>
  221.                         </h4>
  222.                         <p class="mid-green fs-6 mb-2">Walsall</p>
  223.                         <h4 class="company fs-5 my-0">
  224.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('solite_route') }}">Solite Europe</a>
  225.                         </h4>
  226.                         <p class="mid-green fs-6 mb-2">Stockport</p>
  227.                     </div>
  228.                     <div>
  229.                         <h4 class="company fs-5 my-0">
  230.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('thorlux_route') }}">Thorlux Lighting</a>
  231.                         </h4>
  232.                         <p class="mid-green fs-6 mb-2">Redditch</p>
  233.                         <h4 class="company fs-5 my-0">
  234.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('trt_route') }}">TRT Lighting</a>
  235.                         </h4>
  236.                         <p class="mid-green fs-6 mb-2">Redditch</p>
  237.                         <h4 class="company fs-5 my-0">
  238.                             <a class="mid-green hover-yellow text-decoration-none" href="{{ path('ratio_route') }}">Ratio EV Charging</a>
  239.                         </h4>
  240.                         <p class="mid-green fs-6 mb-2">Redditch</p>
  241.                     </div>
  242.                 </div>
  243.             </div>
  244.         </div>
  245.     </div>
  246.     <div class="bg-white container-fluid d-flex py-5" id="latest-news">
  247.         <div class="col-1"></div>
  248.         <div class="col-10 py-5">
  249.             <h2 class="dark-green mb-0 pb-5 text-center">Latest news and updates<span class="yellow">.</span>
  250.             </h2>
  251.             <section>
  252.                 <div class="gx-lg-5 justify-content-center row">
  253.                     {% for news_article in latest_news %}
  254.                         <div class="col-lg-4 col-md-6 mb-4 mb-lg-0">
  255.                             <a class="dark-green text-decoration-none hover-light-green" href="{{ path('news_article_view_route', {'id': news_article.id}) }}">
  256.                                 <div class="bg-image hover-overlay news-thumbnail-container overflow-hidden ripple rounded-5 mb-4" data-mdb-ripple-color="light">
  257.                                     {% if news_article.thumbnailFilename %}
  258.                                         <img class="w-100" src="{{ path('news_article_thumbnail_route', {'size': 'original', 'filename': news_article.thumbnailFilename}) }}" alt="{{ news_article.title }}">
  259.                                     {% endif %}
  260.                                     <div class="mask" style="background-color: rgba(251, 251, 251, 0.15);"></div>
  261.                                 </div>
  262.                                 <div class="row mb-2">
  263.                                     <div class="col-12">
  264.                                         <p class="mid-grey m-0 small">{{ news_article.datePosted|format_date('full') }}</p>
  265.                                     </div>
  266.                                 </div>
  267.                                 <h3 class="fs-4 mb-2">{{ news_article.title }}</h3>
  268.                                 <p class="text-truncate">{{ news_article.content|u.truncate(100, '...', false) }}</p>
  269.                                 {% if isAdminUser is same as(true) %}
  270.                                     {% if news_article.published is same as(false) %}
  271.                                         <div style="color: red;">UNPUBLISHED</div>
  272.                                     {% endif %}
  273.                                 {% endif %}
  274.                             </a>
  275.                         </div>
  276.                     {% endfor %}
  277.                 </div>
  278.                 <div class="d-flex text-center justify-content-center">
  279.                     <a href="{{ path('news_route') }}" class="btn dark-green-border mt-5">View all news</a>
  280.                 </div>
  281.             </section>
  282.         </div>
  283.         <div class="col-1"></div>
  284.     </div>
  285. {% endblock %}