{% set successStory = pimcore_relation('successStory').getElement() %}
{% if editmode %}
<!doctype html>
<html lang="{{ app.request.locale }}">
<head>
{% block stylesheets deferred %}
{{ encore_entry_link_tags('app') }}
{{ pimcore_head_link() }}
{% endblock %}
</head>
<body class="bg-black text-white font-sans{% if editmode %} editmode{% endif %}">
<main role="main">
<div class="text-white bg-black main-content">
{% endif %}
{{ pimcore_image("header_image") }}
<div class="relative max-w-md px-4 mx-auto sm:px-6 lg:px-8 sm:max-w-3xl lg:max-w-7xl">
{% if editmode %}
<span>Set SuccessStory to fill release date:</span>
{{ pimcore_relation("successStory",{
"types": ["object"],
"classes": ["SuccessStories"]
}) }}
{% endif %}
<span class="block py-4 mt-8">{{ successStory is empty ? "" : successStory.ReleaseDate|date("d.m.Y", "Europe/Berlin") }}</span>
<h1 class="pl-4 mb-8 -ml-6 text-3xl text-white border-l-8 sm:leading-none xl:text-4xl border-rs-red">
<span class="md:block">{{ pimcore_input('headline') }}</span>
</h1>
<div class="grid grid-cols-1 text-white sm:grid-cols-12">
<div class="col-span-12 mt-10">
<h3 class="col-span-2 text-2xl font-bold text-white">
<span class="md:block">{{ pimcore_input('subheadline', {placeholder: 'Projektüberblick zusammengefasst' }) }}</span>
</h3>
</div>
<dl class="grid grid-cols-2 col-span-12 gap-4 mt-5 mr-2 sm:col-span-6">
<div class="relative flex items-center justify-center p-2 text-center bg-rs-red">
<p class="text-lg">
<span class="block w-6 h-6 mx-auto text-2xl heroicon heroicon-calander"></span>
<span class="mb-1 font-bold leading-6">Projekt Entstehungsdatum</span><br>
<span>{{ pimcore_input('project_year') }}</span>
</p>
</div>
<div class="relative flex items-center justify-center p-2 text-center bg-rs-red">
<p class="text-lg">
<svg class="block w-6 h-6 mx-auto text-white" width="24" height="24" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" />
<path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10" />
<polyline points="1 4 1 10 7 10" />
<polyline points="12 7 12 12 15 15" />
</svg>
<span class="mb-1 font-bold leading-6">Projektdauer</span><br>
<span>{{ pimcore_input('project_duration') }}</span>
</p>
</div>
<div class="relative flex items-center justify-center p-2 text-center bg-rs-red">
<p class="text-lg">
<span class="block w-6 h-6 mx-auto text-2xl heroicon heroicon-store"></span>
<span class="mb-1 font-bold leading-6">Branche</span><br>
<span>{{ pimcore_input('project_industry') }}</span>
</p>
</div>
<div class="relative flex items-center justify-center p-2 text-center bg-rs-red">
<p class="text-lg">
<span class="block w-6 h-6 mx-auto text-2xl heroicon heroicon-calander"></span>
<span class="mb-1 font-bold leading-6">Technologie-Einsatz</span><br>
<span>{{ pimcore_input('project_technology_use') }}</span>
</p>
</div>
</dl>
<div></div>
<div class="col-span-5">
<p class="pl-2 mt-3 text-lg text-white sm:mt-5 sm:text-m lg:text-m xl:text-l">
{{ pimcore_textarea('description') }}
</p>
</div>
</div>
</div>
{{ pimcore_areablock('default_snippet_template_content', toolbox_areablock_config('default_snippet_template_content')) }}
<div class="">
<div class="relative max-w-md px-4 py-10 mx-auto text-white bg-rs-red sm:px-6 lg:px-8 sm:max-w-3xl lg:max-w-7xl">
<h3 class="text-2xl font-bold">
<span class="md:block">Der Nutzen, den wir unseren Kunden verschafft haben</span>
</h3>
<dl class="mt-8 ">
<dd class="flex text-lg text-white">
<span class="text-2xl heroicon heroicon-check-circle"></span>
<span class="w-full ml-3">{{ pimcore_input('use_one') }}</span>
</dd>
<dd class="flex text-lg text-white">
<span class="text-2xl heroicon heroicon-check-circle"></span>
<span class="w-full ml-3">{{ pimcore_input('use_two') }}</span>
</dd>
{% if editmode or pimcore_input("use_three") != "" %}
<dd class="flex text-lg text-white">
<span class="text-2xl heroicon heroicon-check-circle"></span>
<span class="w-full ml-3">{{ pimcore_input('use_three') }}</span>
</dd>
{% endif %}
{% for i in pimcore_block('usecasesBlock').iterator %}
<dd class="flex text-lg text-white">
<span class="text-2xl heroicon heroicon-check-circle"></span>
<span class="w-full ml-3">{{ pimcore_input('use_x') }}</span>
</dd>
{% endfor %}
</dl>
</div>
</div>
{{ pimcore_areablock('default_snippet_template_content_two', toolbox_areablock_config('default_snippet_template_content_tw')) }}
{% if editmode %}
</div>
</main>
{# output scripts added before #}
{% block scripts deferred %}
{{ encore_entry_script_tags('app') }}
{{ pimcore_head_script() }}
{% endblock %}
</body>
</html>
{% endif %}