Enhance gallery items with updated images and add scroll-to-top button functionality
This commit is contained in:
36
app.py
Normal file → Executable file
36
app.py
Normal file → Executable file
@@ -6,17 +6,47 @@ GALLERY_ITEMS = [
|
|||||||
{
|
{
|
||||||
"title": "Río y vegetación",
|
"title": "Río y vegetación",
|
||||||
"description": "Senderos junto al agua con sombra natural.",
|
"description": "Senderos junto al agua con sombra natural.",
|
||||||
"image": "images/rio-verde.svg",
|
"image": "https://placehold.co/600x400/2d8659/ffffff?text=Rio+y+Naturaleza",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Área de fogón",
|
"title": "Área de fogón",
|
||||||
"description": "Espacio amplio para compartir y cocinar al fuego.",
|
"description": "Espacio amplio para compartir y cocinar al fuego.",
|
||||||
"image": "images/fogon.svg",
|
"image": "https://placehold.co/600x400/4a9d73/ffffff?text=Area+de+Fogon",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Cabañas acogedoras",
|
"title": "Cabañas acogedoras",
|
||||||
"description": "Descanso cómodo rodeado de naturaleza.",
|
"description": "Descanso cómodo rodeado de naturaleza.",
|
||||||
"image": "images/cabana.svg",
|
"image": "https://placehold.co/600x400/6bb591/ffffff?text=Cabanas",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Zona de acampe",
|
||||||
|
"description": "Amplios espacios verdes para instalar tu carpa.",
|
||||||
|
"image": "https://placehold.co/600x400/a8d5ba/ffffff?text=Zona+de+Acampe",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Parrillas equipadas",
|
||||||
|
"description": "Parrillas listas con todo lo necesario para cocinar.",
|
||||||
|
"image": "https://placehold.co/600x400/2d8659/ffffff?text=Parrillas",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Arroyo cristalino",
|
||||||
|
"description": "Agua fresca y clara dentro del predio para disfrutar.",
|
||||||
|
"image": "https://placehold.co/600x400/4a9d73/ffffff?text=Arroyo",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Senderos naturales",
|
||||||
|
"description": "Caminos rodeados de vegetación para explorar.",
|
||||||
|
"image": "https://placehold.co/600x400/6bb591/ffffff?text=Senderos",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Área de descanso",
|
||||||
|
"description": "Espacios con sombra para relajarse y disfrutar.",
|
||||||
|
"image": "https://placehold.co/600x400/a8d5ba/ffffff?text=Descanso",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Vista panorámica",
|
||||||
|
"description": "Hermosos paisajes de la selva misionera.",
|
||||||
|
"image": "https://placehold.co/600x400/2d8659/ffffff?text=Vista+Panoramica",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
234
static/css/style.css
Normal file → Executable file
234
static/css/style.css
Normal file → Executable file
@@ -3,16 +3,22 @@
|
|||||||
--bg-strong: #ede6da;
|
--bg-strong: #ede6da;
|
||||||
--surface: #fffaf2;
|
--surface: #fffaf2;
|
||||||
--surface-alt: #f6efe1;
|
--surface-alt: #f6efe1;
|
||||||
--primary: #2e7d5a;
|
--primary: #2d8659;
|
||||||
--primary-strong: #1f5b42;
|
--primary-strong: #1f6342;
|
||||||
|
--primary-light: #4a9d73;
|
||||||
|
--primary-lighter: #6bb591;
|
||||||
--accent: #d28b5c;
|
--accent: #d28b5c;
|
||||||
--accent-strong: #b8744c;
|
--accent-strong: #b8744c;
|
||||||
|
--green-soft: #e8f5ef;
|
||||||
|
--green-medium: #a8d5ba;
|
||||||
|
--green-dark: #1a4d32;
|
||||||
--text: #1c1a17;
|
--text: #1c1a17;
|
||||||
--muted: #4c5a4f;
|
--muted: #4c5a4f;
|
||||||
--pill: #e9e1d5;
|
--pill: #e9e1d5;
|
||||||
--card-border: rgba(28, 26, 23, 0.12);
|
--card-border: rgba(28, 26, 23, 0.12);
|
||||||
--shadow: 0 20px 55px rgba(20, 28, 22, 0.18);
|
--shadow: 0 20px 55px rgba(20, 28, 22, 0.18);
|
||||||
--shadow-soft: 0 12px 32px rgba(20, 28, 22, 0.1);
|
--shadow-soft: 0 12px 32px rgba(20, 28, 22, 0.1);
|
||||||
|
--shadow-green: 0 12px 32px rgba(29, 134, 89, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@@ -27,10 +33,11 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Manrope', 'Segoe UI', sans-serif;
|
font-family: 'Manrope', 'Segoe UI', sans-serif;
|
||||||
background:
|
background:
|
||||||
radial-gradient(circle at 10% 20%, rgba(210, 139, 92, 0.2), transparent 45%),
|
radial-gradient(circle at 10% 20%, rgba(107, 181, 145, 0.15), transparent 50%),
|
||||||
radial-gradient(circle at 88% 0%, rgba(46, 125, 90, 0.3), transparent 40%),
|
radial-gradient(circle at 88% 0%, rgba(45, 134, 89, 0.22), transparent 45%),
|
||||||
|
radial-gradient(circle at 50% 100%, rgba(168, 213, 186, 0.18), transparent 50%),
|
||||||
repeating-linear-gradient(115deg, rgba(28, 26, 23, 0.03) 0 1px, transparent 1px 7px),
|
repeating-linear-gradient(115deg, rgba(28, 26, 23, 0.03) 0 1px, transparent 1px 7px),
|
||||||
linear-gradient(180deg, #fbf7f1 0%, #f2ede3 100%);
|
linear-gradient(180deg, #fbf7f1 0%, #f0ede3 100%);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
line-height: 1.65;
|
line-height: 1.65;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
@@ -59,9 +66,10 @@ a {
|
|||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background:
|
background:
|
||||||
linear-gradient(140deg, rgba(255, 250, 242, 0.96), rgba(246, 239, 226, 0.88)),
|
linear-gradient(140deg, rgba(255, 250, 242, 0.96), rgba(246, 242, 235, 0.88)),
|
||||||
radial-gradient(circle at 22% 18%, rgba(210, 139, 92, 0.18), transparent 45%),
|
radial-gradient(circle at 22% 18%, rgba(107, 181, 145, 0.2), transparent 50%),
|
||||||
radial-gradient(circle at 90% 5%, rgba(46, 125, 90, 0.3), transparent 40%);
|
radial-gradient(circle at 90% 5%, rgba(45, 134, 89, 0.25), transparent 45%),
|
||||||
|
radial-gradient(circle at 50% 95%, rgba(168, 213, 186, 0.15), transparent 50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero::before,
|
.hero::before,
|
||||||
@@ -76,7 +84,7 @@ a {
|
|||||||
.hero::before {
|
.hero::before {
|
||||||
width: 440px;
|
width: 440px;
|
||||||
height: 440px;
|
height: 440px;
|
||||||
background: radial-gradient(circle, rgba(46, 125, 90, 0.35), transparent 70%);
|
background: radial-gradient(circle, rgba(45, 134, 89, 0.3), rgba(74, 157, 115, 0.2), transparent 70%);
|
||||||
top: -160px;
|
top: -160px;
|
||||||
right: -160px;
|
right: -160px;
|
||||||
}
|
}
|
||||||
@@ -84,7 +92,7 @@ a {
|
|||||||
.hero::after {
|
.hero::after {
|
||||||
width: 360px;
|
width: 360px;
|
||||||
height: 360px;
|
height: 360px;
|
||||||
background: radial-gradient(circle, rgba(210, 139, 92, 0.35), transparent 70%);
|
background: radial-gradient(circle, rgba(107, 181, 145, 0.25), rgba(168, 213, 186, 0.2), transparent 70%);
|
||||||
left: -140px;
|
left: -140px;
|
||||||
bottom: -160px;
|
bottom: -160px;
|
||||||
}
|
}
|
||||||
@@ -116,10 +124,11 @@ a {
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
padding: 10px 14px;
|
padding: 10px 14px;
|
||||||
border: 1px solid var(--card-border);
|
border: 1px solid rgba(45, 134, 89, 0.2);
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
background: linear-gradient(120deg, rgba(46, 125, 90, 0.12), rgba(210, 139, 92, 0.18));
|
background: linear-gradient(135deg, rgba(45, 134, 89, 0.15), rgba(107, 181, 145, 0.2));
|
||||||
color: var(--primary-strong);
|
color: var(--green-dark);
|
||||||
|
box-shadow: 0 2px 8px rgba(45, 134, 89, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-actions {
|
.nav-actions {
|
||||||
@@ -140,7 +149,7 @@ a {
|
|||||||
|
|
||||||
.nav-link:hover {
|
.nav-link:hover {
|
||||||
color: var(--primary-strong);
|
color: var(--primary-strong);
|
||||||
background: rgba(46, 125, 90, 0.12);
|
background: rgba(45, 134, 89, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cta {
|
.cta {
|
||||||
@@ -243,9 +252,14 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.button.ghost {
|
.button.ghost {
|
||||||
background: rgba(46, 125, 90, 0.12);
|
background: linear-gradient(135deg, rgba(45, 134, 89, 0.1), rgba(107, 181, 145, 0.15));
|
||||||
color: var(--primary-strong);
|
color: var(--primary-strong);
|
||||||
border: 1px solid rgba(46, 125, 90, 0.2);
|
border: 1px solid rgba(45, 134, 89, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button.ghost:hover {
|
||||||
|
background: linear-gradient(135deg, rgba(45, 134, 89, 0.18), rgba(107, 181, 145, 0.25));
|
||||||
|
border-color: rgba(45, 134, 89, 0.35);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button.full {
|
.button.full {
|
||||||
@@ -287,13 +301,13 @@ a {
|
|||||||
|
|
||||||
.hero-card .card-header {
|
.hero-card .card-header {
|
||||||
padding: 14px 18px;
|
padding: 14px 18px;
|
||||||
background: rgba(46, 125, 90, 0.12);
|
background: linear-gradient(135deg, rgba(45, 134, 89, 0.12), rgba(107, 181, 145, 0.15));
|
||||||
border-bottom: 1px solid var(--card-border);
|
border-bottom: 1px solid var(--card-border);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
letter-spacing: 0.18em;
|
letter-spacing: 0.18em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
color: var(--primary-strong);
|
color: var(--green-dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-card .card-body {
|
.hero-card .card-body {
|
||||||
@@ -347,12 +361,53 @@ a {
|
|||||||
.services::before {
|
.services::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 260px;
|
width: 280px;
|
||||||
height: 260px;
|
height: 280px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: radial-gradient(circle, rgba(46, 125, 90, 0.2), transparent 70%);
|
background: radial-gradient(circle, rgba(45, 134, 89, 0.2), rgba(107, 181, 145, 0.15), transparent 70%);
|
||||||
right: 8%;
|
right: 8%;
|
||||||
top: -120px;
|
top: -120px;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.services::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
width: 220px;
|
||||||
|
height: 220px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle, rgba(168, 213, 186, 0.25), transparent 70%);
|
||||||
|
left: 5%;
|
||||||
|
bottom: -100px;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
#galeria.section {
|
||||||
|
background: linear-gradient(145deg, #f8faf9, #eff5f1);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#galeria::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
width: 350px;
|
||||||
|
height: 350px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle, rgba(107, 181, 145, 0.2), rgba(168, 213, 186, 0.15), transparent 70%);
|
||||||
|
left: 10%;
|
||||||
|
top: -150px;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#galeria::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
width: 280px;
|
||||||
|
height: 280px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle, rgba(45, 134, 89, 0.18), transparent 70%);
|
||||||
|
right: 5%;
|
||||||
|
bottom: -120px;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -388,12 +443,14 @@ a {
|
|||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
background: rgba(255, 255, 255, 0.9);
|
background: rgba(255, 255, 255, 0.9);
|
||||||
box-shadow: var(--shadow-soft);
|
box-shadow: var(--shadow-soft);
|
||||||
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-card:hover {
|
.feature-card:hover {
|
||||||
transform: translateY(-4px);
|
transform: translateY(-4px);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow-green);
|
||||||
|
border-color: rgba(45, 134, 89, 0.2);
|
||||||
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(232, 245, 239, 0.5));
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-card p {
|
.feature-card p {
|
||||||
@@ -406,16 +463,16 @@ a {
|
|||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: linear-gradient(120deg, var(--primary), var(--accent));
|
background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
|
||||||
box-shadow: 0 0 0 6px rgba(46, 125, 90, 0.12);
|
box-shadow: 0 0 0 6px rgba(45, 134, 89, 0.12), 0 2px 8px rgba(45, 134, 89, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-grid {
|
.gallery-grid {
|
||||||
margin-top: 32px;
|
margin-top: 32px;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||||
gap: 22px;
|
gap: 24px;
|
||||||
max-width: 1100px;
|
max-width: 1200px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
@@ -428,27 +485,48 @@ a {
|
|||||||
box-shadow: var(--shadow-soft);
|
box-shadow: var(--shadow-soft);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-card:hover {
|
.gallery-card:hover {
|
||||||
transform: translateY(-6px);
|
transform: translateY(-6px);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow-green);
|
||||||
|
border-color: rgba(45, 134, 89, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-wrap {
|
.image-wrap {
|
||||||
background: linear-gradient(160deg, rgba(46, 125, 90, 0.08), rgba(210, 139, 92, 0.18));
|
background: linear-gradient(160deg, rgba(45, 134, 89, 0.1), rgba(107, 181, 145, 0.15), rgba(168, 213, 186, 0.12));
|
||||||
padding: 18px;
|
padding: 18px;
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-wrap::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -50%;
|
||||||
|
right: -50%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: radial-gradient(circle, rgba(107, 181, 145, 0.2), transparent 70%);
|
||||||
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-wrap img {
|
.image-wrap img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 210px;
|
height: 210px;
|
||||||
object-fit: contain;
|
object-fit: cover;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
filter: drop-shadow(0 12px 24px rgba(20, 28, 22, 0.18));
|
filter: drop-shadow(0 12px 24px rgba(20, 28, 22, 0.18));
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-card:hover .image-wrap img {
|
||||||
|
transform: scale(1.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-info {
|
.gallery-info {
|
||||||
@@ -473,12 +551,24 @@ a {
|
|||||||
.map-section::before {
|
.map-section::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 300px;
|
width: 320px;
|
||||||
height: 300px;
|
height: 320px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: radial-gradient(circle, rgba(210, 139, 92, 0.22), transparent 70%);
|
background: radial-gradient(circle, rgba(107, 181, 145, 0.25), rgba(45, 134, 89, 0.15), transparent 70%);
|
||||||
left: 6%;
|
left: 6%;
|
||||||
top: -140px;
|
top: -140px;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-section::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
width: 260px;
|
||||||
|
height: 260px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle, rgba(168, 213, 186, 0.2), transparent 70%);
|
||||||
|
right: 8%;
|
||||||
|
bottom: -120px;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -509,7 +599,21 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.contact {
|
.contact {
|
||||||
background: linear-gradient(140deg, rgba(46, 125, 90, 0.16), rgba(210, 139, 92, 0.18));
|
background: linear-gradient(140deg, rgba(45, 134, 89, 0.12), rgba(107, 181, 145, 0.15), rgba(168, 213, 186, 0.18));
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
width: 400px;
|
||||||
|
height: 400px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle, rgba(45, 134, 89, 0.2), transparent 70%);
|
||||||
|
right: -100px;
|
||||||
|
top: -200px;
|
||||||
|
opacity: 0.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-card {
|
.contact-card {
|
||||||
@@ -536,6 +640,52 @@ a {
|
|||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.scroll-to-top {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 30px;
|
||||||
|
right: 30px;
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: linear-gradient(135deg, var(--primary), var(--primary-light));
|
||||||
|
color: #ffffff;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-shadow: var(--shadow-green);
|
||||||
|
opacity: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
transform: translateY(20px);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-to-top.visible {
|
||||||
|
opacity: 1;
|
||||||
|
visibility: visible;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-to-top:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 16px 40px rgba(45, 134, 89, 0.25);
|
||||||
|
background: linear-gradient(135deg, var(--primary-strong), var(--primary));
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-to-top:active {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-to-top svg {
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-to-top:hover svg {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
.reveal {
|
.reveal {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(18px);
|
transform: translateY(18px);
|
||||||
@@ -608,6 +758,18 @@ a {
|
|||||||
.contact-card {
|
.contact-card {
|
||||||
padding: 22px;
|
padding: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.scroll-to-top {
|
||||||
|
bottom: 20px;
|
||||||
|
right: 20px;
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-to-top svg {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
|||||||
27
templates/index.html
Normal file → Executable file
27
templates/index.html
Normal file → Executable file
@@ -78,7 +78,7 @@
|
|||||||
{% for item in gallery_items %}
|
{% for item in gallery_items %}
|
||||||
<article class="gallery-card">
|
<article class="gallery-card">
|
||||||
<div class="image-wrap">
|
<div class="image-wrap">
|
||||||
<img src="{{ url_for('static', filename=item.image) }}" alt="{{ item.title }}" loading="lazy">
|
<img src="{{ item.image }}" alt="{{ item.title }}" loading="lazy">
|
||||||
</div>
|
</div>
|
||||||
<div class="gallery-info">
|
<div class="gallery-info">
|
||||||
<h3>{{ item.title }}</h3>
|
<h3>{{ item.title }}</h3>
|
||||||
@@ -119,5 +119,30 @@
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<p>Camping Fénix · Naturaleza y descanso en Misiones · Contacto: {{ whatsapp_number }}</p>
|
<p>Camping Fénix · Naturaleza y descanso en Misiones · Contacto: {{ whatsapp_number }}</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<button id="scrollToTop" class="scroll-to-top" aria-label="Volver arriba">
|
||||||
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M10 4L10 16M10 4L4 10M10 4L16 10" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const scrollToTopBtn = document.getElementById('scrollToTop');
|
||||||
|
|
||||||
|
window.addEventListener('scroll', () => {
|
||||||
|
if (window.pageYOffset > 300) {
|
||||||
|
scrollToTopBtn.classList.add('visible');
|
||||||
|
} else {
|
||||||
|
scrollToTopBtn.classList.remove('visible');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
scrollToTopBtn.addEventListener('click', () => {
|
||||||
|
window.scrollTo({
|
||||||
|
top: 0,
|
||||||
|
behavior: 'smooth'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user