templates/default/index.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block title %}Homepage {% endblock %}
  3. {% block inbody %} style="margin : 0 px;background-color: #9a99cc;" class="flex justify-center item-center"{% endblock %}
  4. {% block body %}
  5. <div
  6.     id="transition"
  7.     class="absolute top-0 left-0 bg-[#9A99CC] w-[100vw] h-[100vh] max-h-[100vh] transition-all ease-in-out duration-1000"
  8. >
  9. </div>
  10. <main class="main-wrapper bg-[#9A99CC] w-full h-[100svh] bg-cover bg-center" 
  11.     style="background-image: url('{{ asset("assets/images/home.jpg") }}')"
  12. >
  13.     <div class="w-full h-full bg-gradient-to-t from-[#9A99CC] from-30% to-[#00000099] flex justify-center">
  14.         <div class="max-w-[500px] w-full h-full flex items-center justify-end flex-col pb-4 xl:pb-[10%]">
  15.             <div class="w-[80%] max-w-[300px] absolute top-8  rounded-xl p-2 pt-2 ">
  16.                     <img src="{{ asset('resources/images/LOGO.png') }}" alt="">
  17.             </div>
  18.             <p
  19.                 class="max-w-[500px] font-black text-[#ffd742] text-4xl drop-shadow-[-2px_2px_0px_#dc2f8b] m-0 text-center w-[90svw] -rotate-[7deg]"
  20.             >
  21.                 DIVERTIRSI È BELLO MA VINCERE DI PIÙ!
  22.             </p>
  23.             <a 
  24.                 {# href="{{ path('app_home')}}" #}
  25.                 onclick="changeScreen('{{ path('app_home')}}')"
  26.                 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] "
  27.             >
  28.                 <p
  29.                 class="font-black text-white text-xl drop-shadow-[-2px_2px_0px_#dc2f8b] m-0 text-center"
  30.                 >
  31.                     ENTRA ORA!
  32.                 </p>
  33.             </a>
  34.         </div>
  35.     </div>
  36. </main>
  37. {% endblock %}
  38. {% block body_javascripts %}
  39. {{ parent() }}
  40. <script>
  41. $( document ).ready(function(){
  42.     $('#transition').addClass('max-h-0');
  43.     $('#transition').removeClass('max-h-[100vh]');
  44.     $('#transition').addClass('z-10');
  45. })
  46. function changeScreen(path) {
  47.     $('#transition').addClass('max-h-[100vh]');
  48.     $('#transition').addClass('z-10');
  49.     setTimeout(function() {
  50.         window.location.href = path;
  51.     },1000);
  52. }
  53. </script>
  54. {% endblock %}