templates/home/index.html.twig line 201

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{% endblock %}
  3. {% block body %}
  4.     <style>
  5.         
  6.         .hero {
  7.             height: 50vh;
  8.             background: url('/images/test.png') no-repeat center center/cover;
  9.             display: flex;
  10.             align-items: center;
  11.             justify-content: center;
  12.             position: relative;
  13.             text-align: center;
  14.             color: white;
  15.         }
  16.         .hero-overlay {
  17.             position: absolute;
  18.             top: 0;
  19.             left: 0;
  20.             width: 100%;
  21.             height: 100%;
  22.             background: rgba(0, 0, 0, 0.5);
  23.             z-index: 1;
  24.         }
  25.         .hero-content {
  26.             position: relative;
  27.             z-index: 2;
  28.         }
  29.         .hero-content h1 {
  30.             font-size: 4rem;
  31.             font-weight: 600;
  32.             margin-bottom: 20px;
  33.             text-shadow: 2px 2px 5px #000;
  34.         }
  35.         .hero-content p {
  36.             font-size: 1.5rem;
  37.             margin-bottom: 30px;
  38.             text-shadow: 1px 1px 3px #000;
  39.         }
  40.         .hero-content .btn {
  41.             margin: 10px;
  42.             padding: 15px 30px;
  43.             font-size: 1.2rem;
  44.             background-color: #e50914;
  45.             color: white;
  46.             border: none;
  47.             transition: transform 0.3s ease, background-color 0.3s ease;
  48.         }
  49.         .hero-content .btn:hover {
  50.             background-color: #c10812;
  51.             transform: scale(1.05);
  52.         }
  53.         
  54.         .section-title {
  55.             font-weight: 600;
  56.             margin-bottom: 0px;
  57.             color: #e50914;
  58.         }
  59.         .card:hover {
  60.             transform: translateY(-5px);
  61.             box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  62.         }
  63.         .carousel-item img {
  64.             object-fit: cover;
  65.             height: 400px;
  66.         }
  67.         .popup-img {
  68.             cursor: pointer;
  69.         }
  70.         .carousel-indicators button {
  71.             background-color: #f8f9fa;
  72.             width: 20px;
  73.             height: 20px;
  74.         }
  75.         .carousel-indicators .active {
  76.             background-color: #dc3545!important; /* Un tono más claro para destacar */
  77.         }
  78.         .carousel-indicators {
  79.              /* Un tono más claro para destacar */
  80.         }
  81.         .b-r {
  82.             border: 1px solid #dc3545!important;
  83.             background-color: #f8f9fa !important;
  84.             border-radius: 100px;
  85.         }
  86.     </style>
  87.     <!-- Estilos -->
  88.     <style>
  89.         /* Estilo para las tarjetas (hover zoom) */
  90.         .hover-card {
  91.             transition: transform 0.3s ease, box-shadow 0.3s ease;
  92.         }
  93.         .hover-card:hover {
  94.             transform: scale(1.05);
  95.             box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  96.         }
  97.         /* Estilo adicional para las imágenes redondeadas en la tarjeta */
  98.         .card-img-top {
  99.             border-radius: 8px 8px 0 0;
  100.         }
  101.     </style>
  102.     <!-- Estilos -->
  103.     <style>
  104.         #events h3 {
  105.             font-weight: bold;
  106.             font-size: 1.75rem;
  107.         }
  108.         #events p {
  109.             line-height: 1.8;
  110.             font-size: 1rem;
  111.             color: #555;
  112.         }
  113.         /* Ajustes de imágenes */
  114.         #events img {
  115.             height: auto;
  116.             max-height: 50vh;
  117.             object-fit: cover;
  118.         }
  119.         /* Control hover para flechas del carrusel */
  120.         .carousel-control-prev-icon,
  121.         .carousel-control-next-icon {
  122.             
  123.             /*background-color: rgba(0, 0, 0, 0.5);*/
  124.             filter: invert(1);
  125.             border-radius: 50%;
  126.             width: 50px;
  127.             height: 50px;
  128.             
  129.         }
  130.         .carousel-control-next,
  131.         .carousel-control-prev{
  132.             opacity: 0.2;
  133.             background: lightgrey;
  134.         }
  135.         .carousel-control-next:hover,
  136.         .carousel-control-prev:hover{
  137.             opacity: 0.3;
  138.             background: lightgrey;
  139.         }
  140.         .carousel-control-next:focus,
  141.         .carousel-control-prev:focus{
  142.             opacity: 0.3;
  143.             background: lightgrey;
  144.         }
  145.         /* Ajustes responsivos */
  146.         @media (max-width: 768px) {
  147.             .hero h1{
  148.                 font-size:2.5rem;
  149.             }
  150.             #events img {
  151.                 max-height: 250px;
  152.             }
  153.             #events h3 {
  154.                 font-size: 1.5rem;
  155.             }
  156.             #events p {
  157.                 font-size: 0.9rem;
  158.             }
  159.             .carousel-control-next,
  160.             .carousel-control-prev{
  161.                 display:none;
  162.             }
  163.         }
  164.         .stiky-container{
  165.             height:50vh;
  166.         }
  167.     </style>
  168. <!-- Estilos para centrar el contenido -->
  169. <style>
  170.     .event-content {
  171.         display: flex;
  172.         flex-direction: column;
  173.         align-items: center;
  174.         justify-content: center;
  175.         min-height: 300px; /* Ajusta este valor según el alto deseado */
  176.     }
  177.     
  178. </style>
  179. <body>
  180.     <!-- Header -->
  181.     {{ render(controller('App\\Controller\\HeaderController::index')) }}
  182.     <!-- Hero Section -->
  183.     <section id="hero" class="py-3" style="min-height: 50vh; background-color: #fff;">
  184.         <div class="container">
  185.             <div class="hero rounded">
  186.                 <div class="hero-overlay rounded"></div>
  187.                 <div class="hero-content text-white">
  188.                     <h1>Bienvenido a TCGBUNKER</h1>
  189.                     <p>Donde cada deck es único</p>
  190.                     <div>
  191.                         <button class="btn" onclick="window.location.href='/order'">Ver Decks</button>
  192.                     </div>
  193.                 </div>
  194.             </div>
  195.         </div>
  196.     </section>
  197.     <section id="best-dishes" class="py-3" style="background-color: #fff;" >
  198.         <div class="container h-100 d-flex flex-column justify-content-center">
  199.                 {{ render(controller('App\\Controller\\Blocks\\BestProductsController::index')) }}
  200.             </div>
  201.         </div>
  202.     </section>
  203.     <section class="py-3" style="background-color: #fff;">
  204.         <div class="container">
  205.             <div class="row align-items-center">
  206.             <!-- Column 1: Imagen -->
  207.             <div class="col-md-7 mb-4 mb-md-0 " >
  208.                 <img src="/images/b6v8unpgk1b91.jpg" alt="Imagen de vendedor" class="img-fluid rounded w-100" style="max-height: 450px" />
  209.             </div>
  210.             <!-- Column 2: Texto y Botón -->
  211.             <div class="col-md-5 text-center text-md-start">
  212.                 <h1 class="h1 mb-4 text-center fw-bolder section-title">Conviértete en Vendedor</h1>
  213.                 <button type="button" class="btn btn-primary w-100" onclick="window.location.href = '/contact'">Contactanos</button>
  214.             </div>
  215.             </div>
  216.         </div>
  217.     </section>
  218.     <section id="best" class="py-3" style="background-color: #fff;" >
  219.         <div class="container h-100 d-flex flex-column justify-content-center">
  220.                 {{ render(controller('App\\Controller\\Blocks\\CategoryViewController::index')) }}
  221.             </div>
  222.         </div>
  223.     </section>
  224.     
  225. </body>
  226. {% endblock %}