778 lines
23 KiB
PHP
778 lines
23 KiB
PHP
@extends('template.layout')
|
|
@section('title', __('seguridad.hero_title'))
|
|
|
|
@section('content')
|
|
<!-- Hero Section de Seguridad -->
|
|
<section class="seguridad-hero">
|
|
<div class="seguridad-hero-overlay"></div>
|
|
<div class="seguridad-hero-content">
|
|
<div class="seguridad-hero-badge">
|
|
<i class="fas fa-shield-alt"></i> {{ __('seguridad.hero_badge') }}
|
|
</div>
|
|
<h1 class="seguridad-hero-title">
|
|
{{ __('seguridad.hero_title') }} <span class="highlight">{{ __('seguridad.hero_title_highlight') }}</span>
|
|
</h1>
|
|
<p class="seguridad-hero-description">
|
|
{{ __('seguridad.hero_description') }}
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Contenido Principal -->
|
|
<div class="seguridad-container">
|
|
<div class="row seguridad-row">
|
|
<div class="col-lg-8">
|
|
<div class="destinations-details__content seguridad-content">
|
|
<!-- Badge -->
|
|
<div class="seguridad-badge">
|
|
<i class="fas fa-certificate"></i> {{ __('seguridad.content_badge') }}
|
|
</div>
|
|
|
|
<h3 class="destinations-details__title seguridad-title">
|
|
{{ __('seguridad.content_title') }}
|
|
</h3>
|
|
|
|
<!-- Stats Cards -->
|
|
<div class="seguridad-stats">
|
|
<div class="stat-card">
|
|
<div class="stat-number">{{ __('seguridad.stats.years.value') }}</div>
|
|
<div class="stat-label">{{ __('seguridad.stats.years.label') }}</div>
|
|
<div class="stat-icon"><i class="fas fa-calendar-alt"></i></div>
|
|
</div>
|
|
<div class="stat-card">
|
|
<div class="stat-number">{{ __('seguridad.stats.pilots.value') }}</div>
|
|
<div class="stat-label">{{ __('seguridad.stats.pilots.label') }}</div>
|
|
<div class="stat-icon"><i class="fas fa-user-check"></i></div>
|
|
</div>
|
|
<div class="stat-card">
|
|
<div class="stat-number">{{ __('seguridad.stats.safety.value') }}</div>
|
|
<div class="stat-label">{{ __('seguridad.stats.safety.label') }}</div>
|
|
<div class="stat-icon"><i class="fas fa-globe-americas"></i></div>
|
|
</div>
|
|
</div>
|
|
|
|
<p class="seguridad-text">
|
|
<i class="fas fa-check-circle seguridad-check"></i>
|
|
{!! __('seguridad.main_text') !!}
|
|
</p>
|
|
|
|
<!-- Certificaciones Grid -->
|
|
<div class="certificaciones-grid">
|
|
<div class="cert-item">
|
|
<div class="cert-icon">
|
|
<i class="fas fa-award"></i>
|
|
</div>
|
|
<h4>{{ __('seguridad.certificaciones.safe_travels.title') }}</h4>
|
|
<p>{{ __('seguridad.certificaciones.safe_travels.description') }}</p>
|
|
</div>
|
|
<div class="cert-item">
|
|
<div class="cert-icon">
|
|
<i class="fas fa-hand-sparkles"></i>
|
|
</div>
|
|
<h4>{{ __('seguridad.certificaciones.punto_limpio.title') }}</h4>
|
|
<p>{{ __('seguridad.certificaciones.punto_limpio.description') }}</p>
|
|
</div>
|
|
<div class="cert-item">
|
|
<div class="cert-icon">
|
|
<i class="fas fa-university"></i>
|
|
</div>
|
|
<h4>{{ __('seguridad.certificaciones.omt.title') }}</h4>
|
|
<p>{{ __('seguridad.certificaciones.omt.description') }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<p class="seguridad-text">
|
|
<i class="fas fa-check-circle seguridad-check"></i>
|
|
{!! __('seguridad.pilots_text') !!}
|
|
</p>
|
|
|
|
<!-- Galería de Seguridad -->
|
|
<div class="row low-gutters destinations-details__gallery seguridad-gallery">
|
|
<div class="col-md-4">
|
|
<div class="gallery-card" data-img="{{ asset('assets/img/seguridad/Seguridad.png') }}">
|
|
<img src="{{ asset('assets/img/seguridad/Seguridad.png') }}" class="img-fluid" alt="{{ __('seguridad.gallery.alt_1') }}" loading="lazy">
|
|
<div class="gallery-overlay">
|
|
<i class="fas fa-search-plus"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="gallery-card" data-img="{{ asset('assets/img/seguridad/Seguridad1.png') }}">
|
|
<img src="{{ asset('assets/img/seguridad/Seguridad1.png') }}" class="img-fluid" alt="{{ __('seguridad.gallery.alt_2') }}" loading="lazy">
|
|
<div class="gallery-overlay">
|
|
<i class="fas fa-search-plus"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="gallery-card" data-img="{{ asset('assets/img/seguridad/Seguridad2.png') }}">
|
|
<img src="{{ asset('assets/img/seguridad/Seguridad2.png') }}" class="img-fluid" alt="{{ __('seguridad.gallery.alt_3') }}" loading="lazy">
|
|
<div class="gallery-overlay">
|
|
<i class="fas fa-search-plus"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Infraestructura Section -->
|
|
<div class="seguridad-infraestructura">
|
|
<div class="infra-icon">
|
|
<i class="fas fa-building"></i>
|
|
</div>
|
|
<h3 class="destinations-details__subtitle">{{ __('seguridad.infraestructura.title') }}</h3>
|
|
<p>
|
|
{{ __('seguridad.infraestructura.text') }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Sidebar -->
|
|
<div class="col-lg-4">
|
|
<div class="seguridad-sidebar">
|
|
<div class="sidebar-card">
|
|
<div class="sidebar-icon">
|
|
<i class="fas fa-file-certificate"></i>
|
|
</div>
|
|
<h4>{{ __('seguridad.sidebar.certificaciones.title') }}</h4>
|
|
<ul class="cert-list">
|
|
@foreach(__('seguridad.sidebar.certificaciones.list') as $item)
|
|
<li><i class="fas fa-check-circle"></i> {{ $item }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="sidebar-card">
|
|
<div class="sidebar-icon">
|
|
<i class="fas fa-users"></i>
|
|
</div>
|
|
<h4>{{ __('seguridad.sidebar.pilotos.title') }}</h4>
|
|
<p>{{ __('seguridad.sidebar.pilotos.text') }}</p>
|
|
</div>
|
|
|
|
<div class="sidebar-card">
|
|
<div class="sidebar-icon">
|
|
<i class="fas fa-chart-line"></i>
|
|
</div>
|
|
<h4>{{ __('seguridad.sidebar.estadisticas.title') }}</h4>
|
|
<div class="stat-item">
|
|
<span class="stat-value">{{ __('seguridad.sidebar.estadisticas.stats.passengers.value') }}</span>
|
|
<span class="stat-name">{{ __('seguridad.sidebar.estadisticas.stats.passengers.label') }}</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-value">{{ __('seguridad.sidebar.estadisticas.stats.accidents.value') }}</span>
|
|
<span class="stat-name">{{ __('seguridad.sidebar.estadisticas.stats.accidents.label') }}</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-value">{{ __('seguridad.sidebar.estadisticas.stats.compliance.value') }}</span>
|
|
<span class="stat-name">{{ __('seguridad.sidebar.estadisticas.stats.compliance.label') }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sidebar-cta">
|
|
<a href="{{ url('vuelos-en-globo') }}" class="btn-seguridad">
|
|
<i class="fas fa-calendar-check"></i> {{ __('seguridad.sidebar.btn_download') }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
@push('css')
|
|
<style>
|
|
/* ==================== */
|
|
/* SEGURIDAD HERO SECTION */
|
|
/* ==================== */
|
|
.seguridad-hero {
|
|
position: relative;
|
|
min-height: 400px;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
margin-top: var(--navbar-height);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.seguridad-hero::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: radial-gradient(circle at 20% 50%, rgba(4, 205, 255, 0.08) 0%, transparent 70%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.seguridad-hero-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(135deg, rgba(4, 205, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
|
|
}
|
|
|
|
.seguridad-hero-content {
|
|
position: relative;
|
|
z-index: 2;
|
|
max-width: 800px;
|
|
padding: 3rem 1.5rem;
|
|
}
|
|
|
|
.seguridad-hero-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--surface);
|
|
backdrop-filter: blur(10px);
|
|
padding: 0.5rem 1.5rem;
|
|
border-radius: 50px;
|
|
color: var(--accent);
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
margin-bottom: 1.5rem;
|
|
border: 1px solid var(--border);
|
|
animation: fadeInUp 0.8s ease-out;
|
|
}
|
|
|
|
.seguridad-hero-title {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: clamp(2.5rem, 5vw, 4rem);
|
|
font-weight: 800;
|
|
margin-bottom: 1rem;
|
|
background: linear-gradient(135deg, var(--text-primary), var(--accent));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
animation: fadeInUp 0.8s ease-out 0.2s both;
|
|
}
|
|
|
|
.seguridad-hero-title .highlight {
|
|
background: var(--accent-gradient);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
|
|
.seguridad-hero-description {
|
|
color: var(--text-secondary);
|
|
font-size: 1.1rem;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
animation: fadeInUp 0.8s ease-out 0.4s both;
|
|
}
|
|
|
|
/* Contenedor principal */
|
|
.seguridad-container {
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 4rem clamp(1rem, 3vw, 2rem);
|
|
}
|
|
|
|
.seguridad-row {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr;
|
|
gap: 3rem;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.seguridad-row {
|
|
grid-template-columns: 1fr;
|
|
gap: 2rem;
|
|
}
|
|
}
|
|
|
|
/* Content Styles */
|
|
.seguridad-content {
|
|
position: relative;
|
|
}
|
|
|
|
.seguridad-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--surface-light);
|
|
padding: 0.4rem 1.2rem;
|
|
border-radius: 50px;
|
|
color: var(--accent);
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.seguridad-title {
|
|
font-size: clamp(1.8rem, 3vw, 2.2rem);
|
|
margin-bottom: 1.5rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Stats Cards */
|
|
.seguridad-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.seguridad-stats {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--surface);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid var(--border);
|
|
border-radius: 20px;
|
|
padding: 1.5rem;
|
|
text-align: center;
|
|
transition: all var(--transition-base);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stat-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 3px;
|
|
background: var(--accent-gradient);
|
|
transform: scaleX(0);
|
|
transform-origin: left;
|
|
transition: transform var(--transition-base);
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-5px);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.stat-card:hover::before {
|
|
transform: scaleX(1);
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 2rem;
|
|
font-weight: 800;
|
|
background: var(--accent-gradient);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
margin-top: 0.5rem;
|
|
display: block;
|
|
}
|
|
|
|
.stat-icon {
|
|
margin-top: 0.75rem;
|
|
font-size: 1.2rem;
|
|
color: var(--accent);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Text Styles */
|
|
.seguridad-text {
|
|
line-height: 1.8;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.seguridad-check {
|
|
color: var(--accent);
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* Certificaciones Grid */
|
|
.certificaciones-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.certificaciones-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
.cert-item {
|
|
text-align: center;
|
|
padding: 1.5rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 20px;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.cert-item:hover {
|
|
transform: translateY(-5px);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.cert-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
background: var(--surface-light);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 1rem;
|
|
font-size: 1.8rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.cert-item h4 {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.cert-item p {
|
|
font-size: 0.8rem;
|
|
color: var(--text-tertiary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Gallery */
|
|
.seguridad-gallery {
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.gallery-card {
|
|
position: relative;
|
|
border-radius: 20px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base);
|
|
}
|
|
|
|
.gallery-card:hover {
|
|
transform: translateY(-8px);
|
|
}
|
|
|
|
.gallery-card img {
|
|
width: 100%;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
transition: transform var(--transition-slow);
|
|
}
|
|
|
|
.gallery-card:hover img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.gallery-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.gallery-card:hover .gallery-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.gallery-overlay i {
|
|
color: white;
|
|
font-size: 2rem;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
padding: 12px;
|
|
border-radius: 50%;
|
|
transform: scale(0.8);
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.gallery-card:hover .gallery-overlay i {
|
|
transform: scale(1);
|
|
}
|
|
|
|
/* Infraestructura */
|
|
.seguridad-infraestructura {
|
|
margin-top: 2rem;
|
|
padding: 2rem;
|
|
background: var(--surface);
|
|
border-radius: 24px;
|
|
border-left: 4px solid var(--accent);
|
|
}
|
|
|
|
.infra-icon {
|
|
font-size: 2rem;
|
|
color: var(--accent);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.seguridad-infraestructura h3 {
|
|
margin-bottom: 1rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.seguridad-infraestructura p {
|
|
color: var(--text-secondary);
|
|
line-height: 1.8;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.seguridad-sidebar {
|
|
position: sticky;
|
|
top: calc(var(--navbar-height) + 2rem);
|
|
}
|
|
|
|
.sidebar-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 24px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.sidebar-icon {
|
|
width: 50px;
|
|
height: 50px;
|
|
background: var(--surface-light);
|
|
border-radius: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
color: var(--accent);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.sidebar-card h4 {
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.sidebar-card p {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.cert-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.cert-list li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 0.5rem 0;
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.cert-list li i {
|
|
color: var(--accent);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.stat-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.stat-name {
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.sidebar-cta {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.btn-seguridad {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 1rem;
|
|
background: var(--accent-gradient);
|
|
border-radius: 16px;
|
|
color: white;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transition: all var(--transition-base);
|
|
}
|
|
|
|
.btn-seguridad:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: var(--shadow-md);
|
|
color: white;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.seguridad-hero {
|
|
min-height: 300px;
|
|
margin-top: var(--navbar-height-mobile);
|
|
}
|
|
|
|
.seguridad-container {
|
|
padding: 2rem 1rem;
|
|
}
|
|
|
|
.seguridad-stats {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.sidebar-card {
|
|
padding: 1.25rem;
|
|
}
|
|
}
|
|
</style>
|
|
@endpush
|
|
|
|
@push('js')
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
// Galería interactiva - zoom en imágenes
|
|
const galleryCards = document.querySelectorAll('.gallery-card');
|
|
|
|
galleryCards.forEach(card => {
|
|
card.addEventListener('click', function() {
|
|
const img = this.querySelector('img');
|
|
if (img) {
|
|
openImageModal(img.src, img.alt);
|
|
}
|
|
});
|
|
});
|
|
|
|
function openImageModal(src, alt) {
|
|
const modal = document.createElement('div');
|
|
modal.className = 'image-modal';
|
|
modal.innerHTML = `
|
|
<div class="image-modal-content">
|
|
<span class="image-modal-close">×</span>
|
|
<img src="${src}" alt="${alt}">
|
|
</div>
|
|
`;
|
|
|
|
modal.style.cssText = `
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.95);
|
|
z-index: 10000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
`;
|
|
|
|
const modalContent = modal.querySelector('.image-modal-content');
|
|
modalContent.style.cssText = `
|
|
position: relative;
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
`;
|
|
|
|
const modalImg = modalContent.querySelector('img');
|
|
modalImg.style.cssText = `
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: 85vh;
|
|
object-fit: contain;
|
|
border-radius: 16px;
|
|
`;
|
|
|
|
const closeBtn = modalContent.querySelector('.image-modal-close');
|
|
closeBtn.style.cssText = `
|
|
position: absolute;
|
|
top: -40px;
|
|
right: 0;
|
|
color: white;
|
|
font-size: 2rem;
|
|
cursor: pointer;
|
|
transition: transform 0.3s ease;
|
|
`;
|
|
|
|
document.body.appendChild(modal);
|
|
|
|
setTimeout(() => {
|
|
modal.style.opacity = '1';
|
|
}, 10);
|
|
|
|
const closeModal = () => {
|
|
modal.style.opacity = '0';
|
|
setTimeout(() => {
|
|
modal.remove();
|
|
}, 300);
|
|
};
|
|
|
|
modal.addEventListener('click', closeModal);
|
|
closeBtn.addEventListener('click', (e) => {
|
|
e.stopPropagation();
|
|
closeModal();
|
|
});
|
|
}
|
|
});
|
|
</script>
|
|
@endpush |