<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* home/index.html.twig */
class __TwigTemplate_ad6196f156176f29b6eceed694f7750b extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/index.html.twig"));
$this->parent = $this->load("base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
yield "
<style>
.hero {
height: 50vh;
background: url('/images/test.png') no-repeat center center/cover;
display: flex;
align-items: center;
justify-content: center;
position: relative;
text-align: center;
color: white;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
}
.hero-content h1 {
font-size: 4rem;
font-weight: 600;
margin-bottom: 20px;
text-shadow: 2px 2px 5px #000;
}
.hero-content p {
font-size: 1.5rem;
margin-bottom: 30px;
text-shadow: 1px 1px 3px #000;
}
.hero-content .btn {
margin: 10px;
padding: 15px 30px;
font-size: 1.2rem;
background-color: #e50914;
color: white;
border: none;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.hero-content .btn:hover {
background-color: #c10812;
transform: scale(1.05);
}
.section-title {
font-weight: 600;
margin-bottom: 0px;
color: #e50914;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}
.carousel-item img {
object-fit: cover;
height: 400px;
}
.popup-img {
cursor: pointer;
}
.carousel-indicators button {
background-color: #f8f9fa;
width: 20px;
height: 20px;
}
.carousel-indicators .active {
background-color: #dc3545!important; /* Un tono más claro para destacar */
}
.carousel-indicators {
/* Un tono más claro para destacar */
}
.b-r {
border: 1px solid #dc3545!important;
background-color: #f8f9fa !important;
border-radius: 100px;
}
</style>
<!-- Estilos -->
<style>
/* Estilo para las tarjetas (hover zoom) */
.hover-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
transform: scale(1.05);
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}
/* Estilo adicional para las imágenes redondeadas en la tarjeta */
.card-img-top {
border-radius: 8px 8px 0 0;
}
</style>
<!-- Estilos -->
<style>
#events h3 {
font-weight: bold;
font-size: 1.75rem;
}
#events p {
line-height: 1.8;
font-size: 1rem;
color: #555;
}
/* Ajustes de imágenes */
#events img {
height: auto;
max-height: 50vh;
object-fit: cover;
}
/* Control hover para flechas del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
/*background-color: rgba(0, 0, 0, 0.5);*/
filter: invert(1);
border-radius: 50%;
width: 50px;
height: 50px;
}
.carousel-control-next,
.carousel-control-prev{
opacity: 0.2;
background: lightgrey;
}
.carousel-control-next:hover,
.carousel-control-prev:hover{
opacity: 0.3;
background: lightgrey;
}
.carousel-control-next:focus,
.carousel-control-prev:focus{
opacity: 0.3;
background: lightgrey;
}
/* Ajustes responsivos */
@media (max-width: 768px) {
.hero h1{
font-size:2.5rem;
}
#events img {
max-height: 250px;
}
#events h3 {
font-size: 1.5rem;
}
#events p {
font-size: 0.9rem;
}
.carousel-control-next,
.carousel-control-prev{
display:none;
}
}
.stiky-container{
height:50vh;
}
</style>
<!-- Estilos para centrar el contenido -->
<style>
.event-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 300px; /* Ajusta este valor según el alto deseado */
}
</style>
<body>
<!-- Header -->
";
// line 201
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\HeaderController::index"));
yield "
<!-- Hero Section -->
<section id=\"hero\" class=\"py-3\" style=\"min-height: 50vh; background-color: #fff;\">
<div class=\"container\">
<div class=\"hero rounded\">
<div class=\"hero-overlay rounded\"></div>
<div class=\"hero-content text-white\">
<h1>Bienvenido a TCGBUNKER</h1>
<p>Donde cada deck es único</p>
<div>
<button class=\"btn\" onclick=\"window.location.href='/order'\">Ver Decks</button>
</div>
</div>
</div>
</div>
</section>
<section id=\"best-dishes\" class=\"py-3\" style=\"background-color: #fff;\" >
<div class=\"container h-100 d-flex flex-column justify-content-center\">
";
// line 220
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Blocks\\BestProductsController::index"));
yield "
</div>
</div>
</section>
<section class=\"py-3\" style=\"background-color: #fff;\">
<div class=\"container\">
<div class=\"row align-items-center\">
<!-- Column 1: Imagen -->
<div class=\"col-md-7 mb-4 mb-md-0 \" >
<img src=\"/images/b6v8unpgk1b91.jpg\" alt=\"Imagen de vendedor\" class=\"img-fluid rounded w-100\" style=\"max-height: 450px\" />
</div>
<!-- Column 2: Texto y Botón -->
<div class=\"col-md-5 text-center text-md-start\">
<h1 class=\"h1 mb-4 text-center fw-bolder section-title\">Conviértete en Vendedor</h1>
<button type=\"button\" class=\"btn btn-primary w-100\" onclick=\"window.location.href = '/contact'\">Contactanos</button>
</div>
</div>
</div>
</section>
<section id=\"best\" class=\"py-3\" style=\"background-color: #fff;\" >
<div class=\"container h-100 d-flex flex-column justify-content-center\">
";
// line 243
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Blocks\\CategoryViewController::index"));
yield "
</div>
</div>
</section>
</body>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "home/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 344 => 243, 318 => 220, 296 => 201, 99 => 6, 86 => 5, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{% endblock %}
{% block body %}
<style>
.hero {
height: 50vh;
background: url('/images/test.png') no-repeat center center/cover;
display: flex;
align-items: center;
justify-content: center;
position: relative;
text-align: center;
color: white;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
}
.hero-content h1 {
font-size: 4rem;
font-weight: 600;
margin-bottom: 20px;
text-shadow: 2px 2px 5px #000;
}
.hero-content p {
font-size: 1.5rem;
margin-bottom: 30px;
text-shadow: 1px 1px 3px #000;
}
.hero-content .btn {
margin: 10px;
padding: 15px 30px;
font-size: 1.2rem;
background-color: #e50914;
color: white;
border: none;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.hero-content .btn:hover {
background-color: #c10812;
transform: scale(1.05);
}
.section-title {
font-weight: 600;
margin-bottom: 0px;
color: #e50914;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}
.carousel-item img {
object-fit: cover;
height: 400px;
}
.popup-img {
cursor: pointer;
}
.carousel-indicators button {
background-color: #f8f9fa;
width: 20px;
height: 20px;
}
.carousel-indicators .active {
background-color: #dc3545!important; /* Un tono más claro para destacar */
}
.carousel-indicators {
/* Un tono más claro para destacar */
}
.b-r {
border: 1px solid #dc3545!important;
background-color: #f8f9fa !important;
border-radius: 100px;
}
</style>
<!-- Estilos -->
<style>
/* Estilo para las tarjetas (hover zoom) */
.hover-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
transform: scale(1.05);
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}
/* Estilo adicional para las imágenes redondeadas en la tarjeta */
.card-img-top {
border-radius: 8px 8px 0 0;
}
</style>
<!-- Estilos -->
<style>
#events h3 {
font-weight: bold;
font-size: 1.75rem;
}
#events p {
line-height: 1.8;
font-size: 1rem;
color: #555;
}
/* Ajustes de imágenes */
#events img {
height: auto;
max-height: 50vh;
object-fit: cover;
}
/* Control hover para flechas del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
/*background-color: rgba(0, 0, 0, 0.5);*/
filter: invert(1);
border-radius: 50%;
width: 50px;
height: 50px;
}
.carousel-control-next,
.carousel-control-prev{
opacity: 0.2;
background: lightgrey;
}
.carousel-control-next:hover,
.carousel-control-prev:hover{
opacity: 0.3;
background: lightgrey;
}
.carousel-control-next:focus,
.carousel-control-prev:focus{
opacity: 0.3;
background: lightgrey;
}
/* Ajustes responsivos */
@media (max-width: 768px) {
.hero h1{
font-size:2.5rem;
}
#events img {
max-height: 250px;
}
#events h3 {
font-size: 1.5rem;
}
#events p {
font-size: 0.9rem;
}
.carousel-control-next,
.carousel-control-prev{
display:none;
}
}
.stiky-container{
height:50vh;
}
</style>
<!-- Estilos para centrar el contenido -->
<style>
.event-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 300px; /* Ajusta este valor según el alto deseado */
}
</style>
<body>
<!-- Header -->
{{ render(controller('App\\\\Controller\\\\HeaderController::index')) }}
<!-- Hero Section -->
<section id=\"hero\" class=\"py-3\" style=\"min-height: 50vh; background-color: #fff;\">
<div class=\"container\">
<div class=\"hero rounded\">
<div class=\"hero-overlay rounded\"></div>
<div class=\"hero-content text-white\">
<h1>Bienvenido a TCGBUNKER</h1>
<p>Donde cada deck es único</p>
<div>
<button class=\"btn\" onclick=\"window.location.href='/order'\">Ver Decks</button>
</div>
</div>
</div>
</div>
</section>
<section id=\"best-dishes\" class=\"py-3\" style=\"background-color: #fff;\" >
<div class=\"container h-100 d-flex flex-column justify-content-center\">
{{ render(controller('App\\\\Controller\\\\Blocks\\\\BestProductsController::index')) }}
</div>
</div>
</section>
<section class=\"py-3\" style=\"background-color: #fff;\">
<div class=\"container\">
<div class=\"row align-items-center\">
<!-- Column 1: Imagen -->
<div class=\"col-md-7 mb-4 mb-md-0 \" >
<img src=\"/images/b6v8unpgk1b91.jpg\" alt=\"Imagen de vendedor\" class=\"img-fluid rounded w-100\" style=\"max-height: 450px\" />
</div>
<!-- Column 2: Texto y Botón -->
<div class=\"col-md-5 text-center text-md-start\">
<h1 class=\"h1 mb-4 text-center fw-bolder section-title\">Conviértete en Vendedor</h1>
<button type=\"button\" class=\"btn btn-primary w-100\" onclick=\"window.location.href = '/contact'\">Contactanos</button>
</div>
</div>
</div>
</section>
<section id=\"best\" class=\"py-3\" style=\"background-color: #fff;\" >
<div class=\"container h-100 d-flex flex-column justify-content-center\">
{{ render(controller('App\\\\Controller\\\\Blocks\\\\CategoryViewController::index')) }}
</div>
</div>
</section>
</body>
{% endblock %}", "home/index.html.twig", "/home/u619587673/domains/tcgbunker.shop/templates/home/index.html.twig");
}
}