{% extends "base.html.twig" %}
{% block title %}Homepage {% endblock %}
{% block inbody %} style="margin : 0 px;background-color: #9a99cc;" class="flex justify-center item-center"{% endblock %}
{% block body %}
<div
id="transition"
class="absolute top-0 left-0 bg-[#9A99CC] w-[100vw] h-[100vh] max-h-[100vh] transition-all ease-in-out duration-1000"
>
</div>
<main class="main-wrapper bg-[#9A99CC] w-full h-[100svh] bg-cover bg-center"
style="background-image: url('{{ asset("assets/images/home.jpg") }}')"
>
<div class="w-full h-full bg-gradient-to-t from-[#9A99CC] from-30% to-[#00000099] flex justify-center">
<div class="max-w-[500px] w-full h-full flex items-center justify-end flex-col pb-4 xl:pb-[10%]">
<div class="w-[80%] max-w-[300px] absolute top-8 rounded-xl p-2 pt-2 ">
<img src="{{ asset('resources/images/LOGO.png') }}" alt="">
</div>
<p
class="max-w-[500px] font-black text-[#ffd742] text-4xl drop-shadow-[-2px_2px_0px_#dc2f8b] m-0 text-center w-[90svw] -rotate-[7deg]"
>
DIVERTIRSI È BELLO MA VINCERE DI PIÙ!
</p>
<a
{# href="{{ path('app_home')}}" #}
onclick="changeScreen('{{ path('app_home')}}')"
class="animate-bounce card test_transition bg-[#ffd742] rounded-2xl flex flex-row items-center justify-center w-[40%] p-2 mt-5 drop-shadow-[-2px_2px_0px_#dc2f8b] "
>
<p
class="font-black text-white text-xl drop-shadow-[-2px_2px_0px_#dc2f8b] m-0 text-center"
>
ENTRA ORA!
</p>
</a>
</div>
</div>
</main>
{% endblock %}
{% block body_javascripts %}
{{ parent() }}
<script>
$( document ).ready(function(){
$('#transition').addClass('max-h-0');
$('#transition').removeClass('max-h-[100vh]');
$('#transition').addClass('z-10');
})
function changeScreen(path) {
$('#transition').addClass('max-h-[100vh]');
$('#transition').addClass('z-10');
setTimeout(function() {
window.location.href = path;
},1000);
}
</script>
{% endblock %}