From de0e31ebb22a3792083e9c4a9c1546aa4d59c11c Mon Sep 17 00:00:00 2001 From: "Agustin Bustos Piasentini (Nitro)" <63634574+abustosp@users.noreply.github.com> Date: Sat, 31 Jan 2026 19:03:16 -0300 Subject: [PATCH] Enhance gallery items with updated images and add scroll-to-top button functionality --- app.py | 36 ++++++- static/css/style.css | 234 ++++++++++++++++++++++++++++++++++++------- templates/index.html | 27 ++++- 3 files changed, 257 insertions(+), 40 deletions(-) mode change 100644 => 100755 app.py mode change 100644 => 100755 static/css/style.css mode change 100644 => 100755 templates/index.html diff --git a/app.py b/app.py old mode 100644 new mode 100755 index 84610ac..f1a4645 --- a/app.py +++ b/app.py @@ -6,17 +6,47 @@ GALLERY_ITEMS = [ { "title": "Río y vegetación", "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", "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", "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", }, ] diff --git a/static/css/style.css b/static/css/style.css old mode 100644 new mode 100755 index 4a4ed7e..f263331 --- a/static/css/style.css +++ b/static/css/style.css @@ -3,16 +3,22 @@ --bg-strong: #ede6da; --surface: #fffaf2; --surface-alt: #f6efe1; - --primary: #2e7d5a; - --primary-strong: #1f5b42; + --primary: #2d8659; + --primary-strong: #1f6342; + --primary-light: #4a9d73; + --primary-lighter: #6bb591; --accent: #d28b5c; --accent-strong: #b8744c; + --green-soft: #e8f5ef; + --green-medium: #a8d5ba; + --green-dark: #1a4d32; --text: #1c1a17; --muted: #4c5a4f; --pill: #e9e1d5; --card-border: rgba(28, 26, 23, 0.12); --shadow: 0 20px 55px rgba(20, 28, 22, 0.18); --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; font-family: 'Manrope', 'Segoe UI', sans-serif; background: - radial-gradient(circle at 10% 20%, rgba(210, 139, 92, 0.2), transparent 45%), - radial-gradient(circle at 88% 0%, rgba(46, 125, 90, 0.3), transparent 40%), + radial-gradient(circle at 10% 20%, rgba(107, 181, 145, 0.15), transparent 50%), + 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), - linear-gradient(180deg, #fbf7f1 0%, #f2ede3 100%); + linear-gradient(180deg, #fbf7f1 0%, #f0ede3 100%); color: var(--text); line-height: 1.65; min-height: 100vh; @@ -59,9 +66,10 @@ a { position: relative; overflow: hidden; background: - linear-gradient(140deg, rgba(255, 250, 242, 0.96), rgba(246, 239, 226, 0.88)), - radial-gradient(circle at 22% 18%, rgba(210, 139, 92, 0.18), transparent 45%), - radial-gradient(circle at 90% 5%, rgba(46, 125, 90, 0.3), transparent 40%); + linear-gradient(140deg, rgba(255, 250, 242, 0.96), rgba(246, 242, 235, 0.88)), + radial-gradient(circle at 22% 18%, rgba(107, 181, 145, 0.2), transparent 50%), + 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, @@ -76,7 +84,7 @@ a { .hero::before { width: 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; right: -160px; } @@ -84,7 +92,7 @@ a { .hero::after { width: 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; bottom: -160px; } @@ -116,10 +124,11 @@ a { text-transform: uppercase; font-size: 0.95rem; padding: 10px 14px; - border: 1px solid var(--card-border); + border: 1px solid rgba(45, 134, 89, 0.2); border-radius: 14px; - background: linear-gradient(120deg, rgba(46, 125, 90, 0.12), rgba(210, 139, 92, 0.18)); - color: var(--primary-strong); + background: linear-gradient(135deg, rgba(45, 134, 89, 0.15), rgba(107, 181, 145, 0.2)); + color: var(--green-dark); + box-shadow: 0 2px 8px rgba(45, 134, 89, 0.1); } .nav-actions { @@ -140,7 +149,7 @@ a { .nav-link:hover { color: var(--primary-strong); - background: rgba(46, 125, 90, 0.12); + background: rgba(45, 134, 89, 0.12); } .cta { @@ -243,9 +252,14 @@ a { } .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); - 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 { @@ -287,13 +301,13 @@ a { .hero-card .card-header { 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); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.75rem; - color: var(--primary-strong); + color: var(--green-dark); } .hero-card .card-body { @@ -347,12 +361,53 @@ a { .services::before { content: ""; position: absolute; - width: 260px; - height: 260px; + width: 280px; + height: 280px; 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%; 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; } @@ -388,12 +443,14 @@ a { border-radius: 18px; background: rgba(255, 255, 255, 0.9); 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 { 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 { @@ -406,16 +463,16 @@ a { width: 12px; height: 12px; border-radius: 50%; - background: linear-gradient(120deg, var(--primary), var(--accent)); - box-shadow: 0 0 0 6px rgba(46, 125, 90, 0.12); + background: linear-gradient(135deg, var(--primary), var(--primary-lighter)); + box-shadow: 0 0 0 6px rgba(45, 134, 89, 0.12), 0 2px 8px rgba(45, 134, 89, 0.15); } .gallery-grid { margin-top: 32px; display: grid; - grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); - gap: 22px; - max-width: 1100px; + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); + gap: 24px; + max-width: 1200px; margin-left: auto; margin-right: auto; } @@ -428,27 +485,48 @@ a { box-shadow: var(--shadow-soft); display: flex; 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 { transform: translateY(-6px); - box-shadow: var(--shadow); + box-shadow: var(--shadow-green); + border-color: rgba(45, 134, 89, 0.25); } .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; display: grid; 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 { width: 100%; height: 210px; - object-fit: contain; + object-fit: cover; border-radius: 16px; 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 { @@ -473,12 +551,24 @@ a { .map-section::before { content: ""; position: absolute; - width: 300px; - height: 300px; + width: 320px; + height: 320px; 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%; 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; } @@ -509,7 +599,21 @@ a { } .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 { @@ -536,6 +640,52 @@ a { 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 { opacity: 0; transform: translateY(18px); @@ -608,6 +758,18 @@ a { .contact-card { 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) { diff --git a/templates/index.html b/templates/index.html old mode 100644 new mode 100755 index 505eff4..4ab0d91 --- a/templates/index.html +++ b/templates/index.html @@ -78,7 +78,7 @@ {% for item in gallery_items %}