var/cache/dev/twig/14/14dc7beb3f27dd2530953d003e980069.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* home/index.html.twig */
  16. class __TwigTemplate_ad6196f156176f29b6eceed694f7750b extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home/index.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home/index.html.twig"));
  44.         $this->parent $this->load("base.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.         yield from [];
  67.     }
  68.     // line 5
  69.     /**
  70.      * @return iterable<null|scalar|\Stringable>
  71.      */
  72.     public function block_body(array $context, array $blocks = []): iterable
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  79.         // line 6
  80.         yield "
  81.     <style>
  82.         
  83.         .hero {
  84.             height: 50vh;
  85.             background: url('/images/test.png') no-repeat center center/cover;
  86.             display: flex;
  87.             align-items: center;
  88.             justify-content: center;
  89.             position: relative;
  90.             text-align: center;
  91.             color: white;
  92.         }
  93.         .hero-overlay {
  94.             position: absolute;
  95.             top: 0;
  96.             left: 0;
  97.             width: 100%;
  98.             height: 100%;
  99.             background: rgba(0, 0, 0, 0.5);
  100.             z-index: 1;
  101.         }
  102.         .hero-content {
  103.             position: relative;
  104.             z-index: 2;
  105.         }
  106.         .hero-content h1 {
  107.             font-size: 4rem;
  108.             font-weight: 600;
  109.             margin-bottom: 20px;
  110.             text-shadow: 2px 2px 5px #000;
  111.         }
  112.         .hero-content p {
  113.             font-size: 1.5rem;
  114.             margin-bottom: 30px;
  115.             text-shadow: 1px 1px 3px #000;
  116.         }
  117.         .hero-content .btn {
  118.             margin: 10px;
  119.             padding: 15px 30px;
  120.             font-size: 1.2rem;
  121.             background-color: #e50914;
  122.             color: white;
  123.             border: none;
  124.             transition: transform 0.3s ease, background-color 0.3s ease;
  125.         }
  126.         .hero-content .btn:hover {
  127.             background-color: #c10812;
  128.             transform: scale(1.05);
  129.         }
  130.         
  131.         .section-title {
  132.             font-weight: 600;
  133.             margin-bottom: 0px;
  134.             color: #e50914;
  135.         }
  136.         .card:hover {
  137.             transform: translateY(-5px);
  138.             box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  139.         }
  140.         .carousel-item img {
  141.             object-fit: cover;
  142.             height: 400px;
  143.         }
  144.         .popup-img {
  145.             cursor: pointer;
  146.         }
  147.         .carousel-indicators button {
  148.             background-color: #f8f9fa;
  149.             width: 20px;
  150.             height: 20px;
  151.         }
  152.         .carousel-indicators .active {
  153.             background-color: #dc3545!important; /* Un tono más claro para destacar */
  154.         }
  155.         .carousel-indicators {
  156.              /* Un tono más claro para destacar */
  157.         }
  158.         .b-r {
  159.             border: 1px solid #dc3545!important;
  160.             background-color: #f8f9fa !important;
  161.             border-radius: 100px;
  162.         }
  163.     </style>
  164.     <!-- Estilos -->
  165.     <style>
  166.         /* Estilo para las tarjetas (hover zoom) */
  167.         .hover-card {
  168.             transition: transform 0.3s ease, box-shadow 0.3s ease;
  169.         }
  170.         .hover-card:hover {
  171.             transform: scale(1.05);
  172.             box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  173.         }
  174.         /* Estilo adicional para las imágenes redondeadas en la tarjeta */
  175.         .card-img-top {
  176.             border-radius: 8px 8px 0 0;
  177.         }
  178.     </style>
  179.     <!-- Estilos -->
  180.     <style>
  181.         #events h3 {
  182.             font-weight: bold;
  183.             font-size: 1.75rem;
  184.         }
  185.         #events p {
  186.             line-height: 1.8;
  187.             font-size: 1rem;
  188.             color: #555;
  189.         }
  190.         /* Ajustes de imágenes */
  191.         #events img {
  192.             height: auto;
  193.             max-height: 50vh;
  194.             object-fit: cover;
  195.         }
  196.         /* Control hover para flechas del carrusel */
  197.         .carousel-control-prev-icon,
  198.         .carousel-control-next-icon {
  199.             
  200.             /*background-color: rgba(0, 0, 0, 0.5);*/
  201.             filter: invert(1);
  202.             border-radius: 50%;
  203.             width: 50px;
  204.             height: 50px;
  205.             
  206.         }
  207.         .carousel-control-next,
  208.         .carousel-control-prev{
  209.             opacity: 0.2;
  210.             background: lightgrey;
  211.         }
  212.         .carousel-control-next:hover,
  213.         .carousel-control-prev:hover{
  214.             opacity: 0.3;
  215.             background: lightgrey;
  216.         }
  217.         .carousel-control-next:focus,
  218.         .carousel-control-prev:focus{
  219.             opacity: 0.3;
  220.             background: lightgrey;
  221.         }
  222.         /* Ajustes responsivos */
  223.         @media (max-width: 768px) {
  224.             .hero h1{
  225.                 font-size:2.5rem;
  226.             }
  227.             #events img {
  228.                 max-height: 250px;
  229.             }
  230.             #events h3 {
  231.                 font-size: 1.5rem;
  232.             }
  233.             #events p {
  234.                 font-size: 0.9rem;
  235.             }
  236.             .carousel-control-next,
  237.             .carousel-control-prev{
  238.                 display:none;
  239.             }
  240.         }
  241.         .stiky-container{
  242.             height:50vh;
  243.         }
  244.     </style>
  245. <!-- Estilos para centrar el contenido -->
  246. <style>
  247.     .event-content {
  248.         display: flex;
  249.         flex-direction: column;
  250.         align-items: center;
  251.         justify-content: center;
  252.         min-height: 300px; /* Ajusta este valor según el alto deseado */
  253.     }
  254.     
  255. </style>
  256. <body>
  257.     <!-- Header -->
  258.     ";
  259.         // line 201
  260.         yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\HeaderController::index"));
  261.         yield "
  262.     <!-- Hero Section -->
  263.     <section id=\"hero\" class=\"py-3\" style=\"min-height: 50vh; background-color: #fff;\">
  264.         <div class=\"container\">
  265.             <div class=\"hero rounded\">
  266.                 <div class=\"hero-overlay rounded\"></div>
  267.                 <div class=\"hero-content text-white\">
  268.                     <h1>Bienvenido a TCGBUNKER</h1>
  269.                     <p>Donde cada deck es único</p>
  270.                     <div>
  271.                         <button class=\"btn\" onclick=\"window.location.href='/order'\">Ver Decks</button>
  272.                     </div>
  273.                 </div>
  274.             </div>
  275.         </div>
  276.     </section>
  277.     <section id=\"best-dishes\" class=\"py-3\" style=\"background-color: #fff;\" >
  278.         <div class=\"container h-100 d-flex flex-column justify-content-center\">
  279.                 ";
  280.         // line 220
  281.         yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Blocks\\BestProductsController::index"));
  282.         yield "
  283.             </div>
  284.         </div>
  285.     </section>
  286.     <section class=\"py-3\" style=\"background-color: #fff;\">
  287.         <div class=\"container\">
  288.             <div class=\"row align-items-center\">
  289.             <!-- Column 1: Imagen -->
  290.             <div class=\"col-md-7 mb-4 mb-md-0 \" >
  291.                 <img src=\"/images/b6v8unpgk1b91.jpg\" alt=\"Imagen de vendedor\" class=\"img-fluid rounded w-100\" style=\"max-height: 450px\" />
  292.             </div>
  293.             <!-- Column 2: Texto y Botón -->
  294.             <div class=\"col-md-5 text-center text-md-start\">
  295.                 <h1 class=\"h1 mb-4 text-center fw-bolder section-title\">Conviértete en Vendedor</h1>
  296.                 <button type=\"button\" class=\"btn btn-primary w-100\" onclick=\"window.location.href = '/contact'\">Contactanos</button>
  297.             </div>
  298.             </div>
  299.         </div>
  300.     </section>
  301.     <section id=\"best\" class=\"py-3\" style=\"background-color: #fff;\" >
  302.         <div class=\"container h-100 d-flex flex-column justify-content-center\">
  303.                 ";
  304.         // line 243
  305.         yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Blocks\\CategoryViewController::index"));
  306.         yield "
  307.             </div>
  308.         </div>
  309.     </section>
  310.     
  311. </body>
  312. ";
  313.         
  314.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  315.         
  316.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  317.         yield from [];
  318.     }
  319.     /**
  320.      * @codeCoverageIgnore
  321.      */
  322.     public function getTemplateName(): string
  323.     {
  324.         return "home/index.html.twig";
  325.     }
  326.     /**
  327.      * @codeCoverageIgnore
  328.      */
  329.     public function isTraitable(): bool
  330.     {
  331.         return false;
  332.     }
  333.     /**
  334.      * @codeCoverageIgnore
  335.      */
  336.     public function getDebugInfo(): array
  337.     {
  338.         return array (  344 => 243,  318 => 220,  296 => 201,  99 => 6,  86 => 5,  64 => 3,  41 => 1,);
  339.     }
  340.     public function getSourceContext(): Source
  341.     {
  342.         return new Source("{% extends 'base.html.twig' %}
  343. {% block title %}{% endblock %}
  344. {% block body %}
  345.     <style>
  346.         
  347.         .hero {
  348.             height: 50vh;
  349.             background: url('/images/test.png') no-repeat center center/cover;
  350.             display: flex;
  351.             align-items: center;
  352.             justify-content: center;
  353.             position: relative;
  354.             text-align: center;
  355.             color: white;
  356.         }
  357.         .hero-overlay {
  358.             position: absolute;
  359.             top: 0;
  360.             left: 0;
  361.             width: 100%;
  362.             height: 100%;
  363.             background: rgba(0, 0, 0, 0.5);
  364.             z-index: 1;
  365.         }
  366.         .hero-content {
  367.             position: relative;
  368.             z-index: 2;
  369.         }
  370.         .hero-content h1 {
  371.             font-size: 4rem;
  372.             font-weight: 600;
  373.             margin-bottom: 20px;
  374.             text-shadow: 2px 2px 5px #000;
  375.         }
  376.         .hero-content p {
  377.             font-size: 1.5rem;
  378.             margin-bottom: 30px;
  379.             text-shadow: 1px 1px 3px #000;
  380.         }
  381.         .hero-content .btn {
  382.             margin: 10px;
  383.             padding: 15px 30px;
  384.             font-size: 1.2rem;
  385.             background-color: #e50914;
  386.             color: white;
  387.             border: none;
  388.             transition: transform 0.3s ease, background-color 0.3s ease;
  389.         }
  390.         .hero-content .btn:hover {
  391.             background-color: #c10812;
  392.             transform: scale(1.05);
  393.         }
  394.         
  395.         .section-title {
  396.             font-weight: 600;
  397.             margin-bottom: 0px;
  398.             color: #e50914;
  399.         }
  400.         .card:hover {
  401.             transform: translateY(-5px);
  402.             box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  403.         }
  404.         .carousel-item img {
  405.             object-fit: cover;
  406.             height: 400px;
  407.         }
  408.         .popup-img {
  409.             cursor: pointer;
  410.         }
  411.         .carousel-indicators button {
  412.             background-color: #f8f9fa;
  413.             width: 20px;
  414.             height: 20px;
  415.         }
  416.         .carousel-indicators .active {
  417.             background-color: #dc3545!important; /* Un tono más claro para destacar */
  418.         }
  419.         .carousel-indicators {
  420.              /* Un tono más claro para destacar */
  421.         }
  422.         .b-r {
  423.             border: 1px solid #dc3545!important;
  424.             background-color: #f8f9fa !important;
  425.             border-radius: 100px;
  426.         }
  427.     </style>
  428.     <!-- Estilos -->
  429.     <style>
  430.         /* Estilo para las tarjetas (hover zoom) */
  431.         .hover-card {
  432.             transition: transform 0.3s ease, box-shadow 0.3s ease;
  433.         }
  434.         .hover-card:hover {
  435.             transform: scale(1.05);
  436.             box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  437.         }
  438.         /* Estilo adicional para las imágenes redondeadas en la tarjeta */
  439.         .card-img-top {
  440.             border-radius: 8px 8px 0 0;
  441.         }
  442.     </style>
  443.     <!-- Estilos -->
  444.     <style>
  445.         #events h3 {
  446.             font-weight: bold;
  447.             font-size: 1.75rem;
  448.         }
  449.         #events p {
  450.             line-height: 1.8;
  451.             font-size: 1rem;
  452.             color: #555;
  453.         }
  454.         /* Ajustes de imágenes */
  455.         #events img {
  456.             height: auto;
  457.             max-height: 50vh;
  458.             object-fit: cover;
  459.         }
  460.         /* Control hover para flechas del carrusel */
  461.         .carousel-control-prev-icon,
  462.         .carousel-control-next-icon {
  463.             
  464.             /*background-color: rgba(0, 0, 0, 0.5);*/
  465.             filter: invert(1);
  466.             border-radius: 50%;
  467.             width: 50px;
  468.             height: 50px;
  469.             
  470.         }
  471.         .carousel-control-next,
  472.         .carousel-control-prev{
  473.             opacity: 0.2;
  474.             background: lightgrey;
  475.         }
  476.         .carousel-control-next:hover,
  477.         .carousel-control-prev:hover{
  478.             opacity: 0.3;
  479.             background: lightgrey;
  480.         }
  481.         .carousel-control-next:focus,
  482.         .carousel-control-prev:focus{
  483.             opacity: 0.3;
  484.             background: lightgrey;
  485.         }
  486.         /* Ajustes responsivos */
  487.         @media (max-width: 768px) {
  488.             .hero h1{
  489.                 font-size:2.5rem;
  490.             }
  491.             #events img {
  492.                 max-height: 250px;
  493.             }
  494.             #events h3 {
  495.                 font-size: 1.5rem;
  496.             }
  497.             #events p {
  498.                 font-size: 0.9rem;
  499.             }
  500.             .carousel-control-next,
  501.             .carousel-control-prev{
  502.                 display:none;
  503.             }
  504.         }
  505.         .stiky-container{
  506.             height:50vh;
  507.         }
  508.     </style>
  509. <!-- Estilos para centrar el contenido -->
  510. <style>
  511.     .event-content {
  512.         display: flex;
  513.         flex-direction: column;
  514.         align-items: center;
  515.         justify-content: center;
  516.         min-height: 300px; /* Ajusta este valor según el alto deseado */
  517.     }
  518.     
  519. </style>
  520. <body>
  521.     <!-- Header -->
  522.     {{ render(controller('App\\\\Controller\\\\HeaderController::index')) }}
  523.     <!-- Hero Section -->
  524.     <section id=\"hero\" class=\"py-3\" style=\"min-height: 50vh; background-color: #fff;\">
  525.         <div class=\"container\">
  526.             <div class=\"hero rounded\">
  527.                 <div class=\"hero-overlay rounded\"></div>
  528.                 <div class=\"hero-content text-white\">
  529.                     <h1>Bienvenido a TCGBUNKER</h1>
  530.                     <p>Donde cada deck es único</p>
  531.                     <div>
  532.                         <button class=\"btn\" onclick=\"window.location.href='/order'\">Ver Decks</button>
  533.                     </div>
  534.                 </div>
  535.             </div>
  536.         </div>
  537.     </section>
  538.     <section id=\"best-dishes\" class=\"py-3\" style=\"background-color: #fff;\" >
  539.         <div class=\"container h-100 d-flex flex-column justify-content-center\">
  540.                 {{ render(controller('App\\\\Controller\\\\Blocks\\\\BestProductsController::index')) }}
  541.             </div>
  542.         </div>
  543.     </section>
  544.     <section class=\"py-3\" style=\"background-color: #fff;\">
  545.         <div class=\"container\">
  546.             <div class=\"row align-items-center\">
  547.             <!-- Column 1: Imagen -->
  548.             <div class=\"col-md-7 mb-4 mb-md-0 \" >
  549.                 <img src=\"/images/b6v8unpgk1b91.jpg\" alt=\"Imagen de vendedor\" class=\"img-fluid rounded w-100\" style=\"max-height: 450px\" />
  550.             </div>
  551.             <!-- Column 2: Texto y Botón -->
  552.             <div class=\"col-md-5 text-center text-md-start\">
  553.                 <h1 class=\"h1 mb-4 text-center fw-bolder section-title\">Conviértete en Vendedor</h1>
  554.                 <button type=\"button\" class=\"btn btn-primary w-100\" onclick=\"window.location.href = '/contact'\">Contactanos</button>
  555.             </div>
  556.             </div>
  557.         </div>
  558.     </section>
  559.     <section id=\"best\" class=\"py-3\" style=\"background-color: #fff;\" >
  560.         <div class=\"container h-100 d-flex flex-column justify-content-center\">
  561.                 {{ render(controller('App\\\\Controller\\\\Blocks\\\\CategoryViewController::index')) }}
  562.             </div>
  563.         </div>
  564.     </section>
  565.     
  566. </body>
  567. {% endblock %}""home/index.html.twig""/home/u619587673/domains/tcgbunker.shop/templates/home/index.html.twig");
  568.     }
  569. }