{% extends 'base.html.twig' %}{% block title %}Cor Tennisclub Rheda e.V.{% endblock %}{# Home #}{% block content %} {# Video #} <div class="video--holder overflow-x--hidden"> <div class="video--filter"></div> <div class="arrow"> <svg width="22" height="13" viewBox="0 0 22 13" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M11 9.29309L20.293 9.44138e-05L21.707 1.41409L11 12.1211L0.292969 1.41409L1.70697 9.44138e-05L11 9.29309Z" fill="currentColor"/> </svg> </div> <video class="hero--video" preload="auto" poster="{{ asset('assets/images/home/membership.png') }}" autoplay loop muted playsinline> <source src="{{ asset('assets/videos/home/home-video.mp4') }}" type="video/mp4"> <img src="{{ asset('assets/images/home/membership.png') }}" alt="Video image fallback"/> </video> </div> {# News #} <section class="section--news" id="news"> <div class="section--inner"> {# Slider #} {% if sliderItems %} <div class="row justify-content--center"> <div class="col col-12"> <div class="col-inner"> <div class="owl-carousel owl-theme owl-loaded owl-drag"> {% for sliderItem in sliderItems %} {% if sliderItem.active %} {% if sliderItem.title|length > 1 or sliderItem.subTitle|length > 1 or sliderItem.ctaTitle|length > 1 %} <div class="slider--item" style="background-image:url('https://api.ctc-rheda.de/{{ sliderItem.image.path }}');"> <div class="slider-item--inner display--flex justify-content--center"> <div class="content--holder text-align--center"> <h2 class="tb1 tb4-xs tb5-s color--white mb1">{{ sliderItem.title|u.truncate(30, '...') }}</h2> {% if sliderItem.subTitle %} <p class="tm-1 tm-xs tm1-s color--white mb2">{{ sliderItem.subTitle|u.truncate(80, '...') }}</p> {% endif %} {% if sliderItem.ctaUrl and sliderItem.ctaTitle %} <a href="{{ sliderItem.ctaUrl }}" class="btn is--white is--s"{% if sliderItem.targetBlank %} target="_blank"{% endif %}>{{ sliderItem.ctaTitle }}</a> {% endif %} </div> </div> </div> {% elseif sliderItem.ctaUrl %} <a class="slider--item no--overlay" href="{{ sliderItem.ctaUrl }}" {% if sliderItem.targetBlank %} target="_blank"{% endif %} style="background-image:url('https://api.ctc-rheda.de/{{ sliderItem.image.path }}');"></a> {% endif %} {% endif %} {% endfor %} </div> </div> </div> </div> {% endif %} {# Newsposts #} <div class="row justify-content--center"> {% for newsItem in newsItems|sort((a, b) => a.publishDate|date("Y-m-d") <=> b.publishDate|date("Y-m-d"))|reverse|slice(0, 4) %} {% if newsItem.active %} <div class="col col-12 col-s-6 col-xl-3 news--item"> <div class="col-inner"> <div class="image--holder"> <a href="/news/{{ newsItem.slug }}/" title="{{ newsItem.title }}"> {% if newsItem.image.path is defined %} <img src="https://api.ctc-rheda.de/{{ newsItem.image.path }}"> {% else %} <img src="https://api.ctc-rheda.de/news/ctc-general.png"> {% endif %} </a> </div> <div class="text--holder mt1"> <div class="title"> <a href="/news/{{ newsItem.slug }}/" title="{{ newsItem.title }}"> <h3 class="tm1 color--black">{{ newsItem.title|u.truncate(80, '...') }}</h3> </a> </div> <div class="details"> <h4 class="t-1">{{ newsItem.publishDate|date("d.m.Y") }} – {{ newsItem.author }}</h4> </div> </div> </div> </div> {% endif %} {% endfor %} </div> <div class="row justify-content--center mt2"> <div class="col col-12"> <div class="col-inner text-align--center"> <a class="btn" href="{{ path('news_index') }}" title="Alle News lesen">Alle News</a> </div> </div> </div> </div> </section> {# Membership #}{# <section class="section--membership">#}{# <div class="section--inner">#}{# <div class="row justify-content--center">#}{# <div class="col col-12">#}{# <div class="col-inner">#}{# <div class="membership--holder">#}{# <div class="title">#}{# <h2 class="tb2 tb4-m color--white mb2 mb0-m">Du möchtest Mitglied im Cor Tennisclub werden?</h2>#}{# </div>#}{# <div class="button">#}{# <a class="btn is--white" href="{{ path('membership_index') }}" title="Mitglied werden">Mitglied werden</a>#}{# </div>#}{# </div>#}{# </div>#}{# </div>#}{# </div>#}{# </div>#}{# </section>#} {# Advertisement #} <section class="section--advertisement"> <div class="section--inner"> <div class="row justify-content--center"> <div class="col col-12 text-align--center"> <a rel="sponsored" href="https://www.awin1.com/cread.php?s=3085103&v=10984&q=324870&r=764023"> <img src="https://www.awin1.com/cshow.php?s=3085103&v=10984&q=324870&r=764023" border="0"> </a> </div> </div> </div> </section> {# Sponsors #} <section class="section--sponsors"> <div class="section--inner"> {# Title #} <div class="row justify-content--center"> <div class="col col-12"> <div class="col-inner text-align--center"> <h2 class="tb3 color--black">Sponsoren</h2> </div> </div> </div> {# Logos #} <div class="row justify-content--center"> {% for sponsorItem in sponsorItems %} {% if sponsorItem.active %} <div class="col col-12 col-xs-10 col-s-6 col-m-4 col-l-3"> <div class="col-inner"> <div class="logo--holder"> <img src="https://api.ctc-rheda.de/{{ sponsorItem.logo.path }}" alt="{{ sponsorItem.name }}"> </div> </div> </div> {% endif %} {% endfor %} </div> {# Button #} <div class="row justify-content--center"> <div class="col col-12"> <div class="col-inner text-align--center"> <a class="btn variant--link is--underlined" href="{{ path('sponsors_index') }}" title="Zu den Sponsoren">Mehr über die Sponsoren erfahren</a> </div> </div> </div> </div> </section>{% endblock %}