Add initial project structure with Docker setup, Flask app, and static assets

This commit is contained in:
2025-12-25 00:57:30 -03:00
commit 3f80b76647
10 changed files with 649 additions and 0 deletions

8
.dockerignore Normal file
View File

@@ -0,0 +1,8 @@
__pycache__/
*.py[cod]
*.env
.env*
.git
.gitignore
venv/
.venv/

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
venv

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
FLASK_APP=app.py \
FLASK_RUN_HOST=0.0.0.0 \
FLASK_RUN_PORT=5000
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
CMD ["flask", "run"]

52
app.py Normal file
View File

@@ -0,0 +1,52 @@
from flask import Flask, render_template
app = Flask(__name__)
GALLERY_ITEMS = [
{
"title": "Río y vegetación",
"description": "Senderos junto al agua con sombra natural.",
"image": "images/rio-verde.svg",
},
{
"title": "Área de fogón",
"description": "Espacio amplio para compartir y cocinar al fuego.",
"image": "images/fogon.svg",
},
{
"title": "Cabañas acogedoras",
"description": "Descanso cómodo rodeado de naturaleza.",
"image": "images/cabana.svg",
},
]
FEATURES = [
"WiFi en todo el camping",
"Arroyo dentro de la propiedad",
"Parrillas listas para usar",
"Cantina y proveeduría",
]
MAP_EMBED_URL = (
"https://www.google.com/maps?q=Fenix%20Camping%20Misiones&output=embed"
)
WHATSAPP_NUMBER = "+543765253409"
WHATSAPP_LINK = f"https://wa.me/{WHATSAPP_NUMBER.lstrip('+')}"
MAP_LINK = "https://maps.app.goo.gl/7LycqCiKgPXpbSUf8"
@app.route("/")
def home():
return render_template(
"index.html",
gallery_items=GALLERY_ITEMS,
features=FEATURES,
map_embed_url=MAP_EMBED_URL,
map_link=MAP_LINK,
whatsapp_link=WHATSAPP_LINK,
whatsapp_number=WHATSAPP_NUMBER,
)
if __name__ == "__main__":
app.run(debug=True)

1
requirements.txt Normal file
View File

@@ -0,0 +1 @@
flask==3.0.3

378
static/css/style.css Normal file
View File

@@ -0,0 +1,378 @@
:root {
--bg: #f4f7f2;
--surface: #ffffff;
--surface-alt: #edf5e9;
--primary: #26a15a;
--primary-strong: #1f8c4d;
--text: #0f172a;
--muted: #4b5563;
--pill: #e5efe4;
--card-border: rgba(15, 23, 42, 0.08);
--shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
background: radial-gradient(circle at 18% 20%, rgba(38, 161, 90, 0.18), transparent 28%),
radial-gradient(circle at 80% 5%, rgba(117, 201, 140, 0.12), transparent 30%),
var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
}
img {
max-width: 100%;
display: block;
border-radius: 14px;
}
a {
color: inherit;
text-decoration: none;
}
.hero {
padding: 28px 7vw 72px;
background: linear-gradient(135deg, rgba(237, 245, 233, 0.9), rgba(231, 245, 235, 0.9)),
radial-gradient(circle at 25% 25%, rgba(38, 161, 90, 0.22), transparent 32%),
radial-gradient(circle at 80% 10%, rgba(107, 197, 138, 0.2), transparent 34%);
}
.nav {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 50px;
}
.logo {
font-weight: 700;
letter-spacing: 0.6px;
font-size: 1.1rem;
padding: 10px 14px;
border: 1px solid var(--card-border);
border-radius: 12px;
background: #ffffff;
color: var(--primary-strong);
}
.nav-actions {
display: flex;
gap: 12px;
align-items: center;
}
.nav-link {
padding: 10px 12px;
border-radius: 12px;
color: var(--muted);
transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover {
color: var(--primary-strong);
background: rgba(38, 161, 90, 0.1);
}
.cta {
padding: 12px 16px;
border-radius: 14px;
background: var(--primary);
color: #ffffff;
font-weight: 700;
box-shadow: var(--shadow);
}
.hero-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 32px;
align-items: center;
}
.hero-text h1 {
font-size: clamp(2.3rem, 4vw, 3.3rem);
margin: 8px 0 10px;
color: #0b1a2a;
}
.hero-text .subtitle {
color: var(--muted);
margin-bottom: 24px;
}
.eyebrow {
letter-spacing: 0.12em;
text-transform: uppercase;
font-weight: 700;
color: var(--primary);
font-size: 0.75rem;
}
.subtitle {
color: var(--muted);
max-width: 620px;
}
.hero-buttons {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 16px;
}
.button {
padding: 12px 18px;
border-radius: 14px;
border: 1px solid var(--card-border);
font-weight: 700;
cursor: pointer;
display: inline-flex;
gap: 8px;
align-items: center;
justify-content: center;
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
text-align: center;
}
.button:hover {
transform: translateY(-1px);
box-shadow: var(--shadow);
}
.button.primary {
background: linear-gradient(120deg, var(--primary), var(--primary-strong));
color: #ffffff;
border: none;
}
.button.ghost {
background: rgba(38, 161, 90, 0.12);
color: var(--primary-strong);
}
.button.full {
width: 100%;
background: rgba(38, 161, 90, 0.08);
}
.quick-info {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-top: 18px;
}
.pill {
background: var(--pill);
border: 1px solid var(--card-border);
padding: 10px 12px;
border-radius: 12px;
color: #1f2937;
}
.hero-card {
background: rgba(255, 255, 255, 0.82);
border: 1px solid var(--card-border);
border-radius: 20px;
overflow: hidden;
box-shadow: var(--shadow);
backdrop-filter: blur(8px);
}
.hero-card .card-header {
padding: 14px 18px;
background: rgba(38, 161, 90, 0.1);
border-bottom: 1px solid var(--card-border);
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
font-size: 0.8rem;
color: var(--primary-strong);
}
.hero-card .card-body {
padding: 18px;
}
.card-title {
font-size: 1.25rem;
margin: 6px 0;
}
.card-desc {
color: var(--muted);
margin-bottom: 14px;
}
.card-tags {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 14px;
}
.card-tags span {
background: #edf5e9;
border-radius: 10px;
padding: 8px 10px;
color: #2f3c4f;
border: 1px solid var(--card-border);
}
.section {
padding: 70px 7vw;
background: var(--bg);
}
.services {
background: linear-gradient(135deg, #f7fbf6, #eef7f0);
}
.features-grid {
margin-top: 24px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 14px;
}
.feature-card {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
border: 1px solid var(--card-border);
border-radius: 14px;
background: var(--surface);
box-shadow: var(--shadow);
}
.feature-card p {
margin: 0;
color: #1f2937;
font-weight: 600;
}
.feature-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: linear-gradient(120deg, var(--primary), var(--primary-strong));
box-shadow: 0 0 0 6px rgba(38, 161, 90, 0.12);
}
.section-heading h2 {
margin: 6px 0;
font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.gallery-grid {
margin-top: 28px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 20px;
}
.gallery-card {
background: var(--surface);
border: 1px solid var(--card-border);
border-radius: 18px;
overflow: hidden;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
}
.image-wrap {
background: var(--surface-alt);
padding: 14px;
}
.gallery-info {
padding: 18px;
}
.gallery-info h3 {
margin: 0 0 8px;
}
.gallery-info p {
color: var(--muted);
margin: 0;
}
.map-section .map-card {
margin-top: 26px;
background: var(--surface);
border: 1px solid var(--card-border);
border-radius: 18px;
overflow: hidden;
box-shadow: var(--shadow);
}
.map-card iframe {
width: 100%;
border: none;
height: 420px;
filter: saturate(1.05);
}
.map-actions {
padding: 18px;
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.contact {
background: linear-gradient(135deg, rgba(38, 161, 90, 0.12), rgba(231, 245, 235, 0.8));
}
.contact-card {
max-width: 900px;
margin: 0 auto;
background: #ffffff;
border: 1px solid var(--card-border);
border-radius: 20px;
padding: 26px;
display: flex;
gap: 20px;
align-items: center;
justify-content: space-between;
box-shadow: var(--shadow);
flex-wrap: wrap;
}
.footer {
padding: 28px 7vw 40px;
text-align: center;
background: #eaf4ea;
color: #374151;
border-top: 1px solid var(--card-border);
}
@media (max-width: 600px) {
.hero {
padding-top: 20px;
}
.nav {
flex-direction: column;
gap: 10px;
align-items: flex-start;
}
.hero-content {
grid-template-columns: 1fr;
}
.map-card iframe {
height: 320px;
}
}

21
static/images/cabana.svg Normal file
View File

@@ -0,0 +1,21 @@
<svg width="640" height="400" viewBox="0 0 640 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="dawn" x1="0" y1="0" x2="1" y2="1">
<stop stop-color="#0B1221"/>
<stop offset="1" stop-color="#0F172A"/>
</linearGradient>
<linearGradient id="cabin" x1="0" y1="0" x2="1" y2="0">
<stop stop-color="#EA580C"/>
<stop offset="1" stop-color="#F97316"/>
</linearGradient>
</defs>
<rect width="640" height="400" rx="22" fill="url(#dawn)"/>
<path d="M0 250C80 240 130 220 210 230C310 240 380 280 500 270C560 265 600 250 640 240V400H0V250Z" fill="#1E293B"/>
<polygon points="320,120 460,240 180,240" fill="#111827" stroke="#F97316" stroke-width="6"/>
<rect x="220" y="210" width="200" height="120" fill="url(#cabin)" stroke="#FBBF24" stroke-width="6" rx="10"/>
<rect x="260" y="240" width="60" height="90" fill="#0F172A" stroke="#FBBF24" stroke-width="6" rx="6"/>
<rect x="350" y="250" width="50" height="40" fill="#FEF3C7" stroke="#FBBF24" stroke-width="6" rx="6"/>
<line x1="320" y1="120" x2="320" y2="90" stroke="#F59E0B" stroke-width="8" stroke-linecap="round"/>
<circle cx="320" cy="76" r="10" fill="#FBBF24"/>
<text x="40" y="360" fill="#E5E7EB" font-family="Montserrat, Arial, sans-serif" font-size="26" font-weight="700">Cabañas listas para descansar</text>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

24
static/images/fogon.svg Normal file
View File

@@ -0,0 +1,24 @@
<svg width="640" height="400" viewBox="0 0 640 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="night" x1="0" y1="0" x2="1" y2="1">
<stop stop-color="#0B1221"/>
<stop offset="1" stop-color="#111827"/>
</linearGradient>
<linearGradient id="fire" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#FDBA74"/>
<stop offset="1" stop-color="#FB923C"/>
</linearGradient>
</defs>
<rect width="640" height="400" rx="22" fill="url(#night)"/>
<circle cx="520" cy="80" r="6" fill="#E5E7EB"/>
<circle cx="480" cy="60" r="4" fill="#E5E7EB"/>
<circle cx="450" cy="90" r="5" fill="#E5E7EB"/>
<path d="M0 260C120 250 190 210 290 230C380 248 450 300 640 280V400H0V260Z" fill="#1F2937"/>
<path d="M260 220C260 190 300 150 320 140C340 150 380 190 380 220C380 250 350 270 320 270C290 270 260 250 260 220Z" fill="#F97316" opacity="0.85"/>
<path d="M300 210C300 185 330 160 345 150C360 160 390 185 390 210C390 240 370 260 345 260C320 260 300 240 300 210Z" fill="url(#fire)"/>
<rect x="250" y="250" width="160" height="18" rx="9" fill="#92400E"/>
<rect x="240" y="268" width="180" height="14" rx="7" fill="#B45309"/>
<line x1="220" y1="290" x2="430" y2="290" stroke="#D97706" stroke-width="10" stroke-linecap="round"/>
<line x1="200" y1="308" x2="450" y2="308" stroke="#EA580C" stroke-width="14" stroke-linecap="round"/>
<text x="40" y="360" fill="#E5E7EB" font-family="Montserrat, Arial, sans-serif" font-size="26" font-weight="700">Fogón y noche estrellada</text>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,24 @@
<svg width="640" height="400" viewBox="0 0 640 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="river" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#0EA5E9" stop-opacity="0.9"/>
<stop offset="1" stop-color="#22D3EE" stop-opacity="0.8"/>
</linearGradient>
<linearGradient id="sky" x1="0" y1="0" x2="1" y2="1">
<stop stop-color="#0F172A"/>
<stop offset="1" stop-color="#1E293B"/>
</linearGradient>
<linearGradient id="forest" x1="0" y1="0" x2="1" y2="0">
<stop stop-color="#16A34A"/>
<stop offset="1" stop-color="#22C55E"/>
</linearGradient>
</defs>
<rect width="640" height="400" rx="22" fill="url(#sky)"/>
<path d="M0 240C90 210 140 220 210 230C320 250 360 220 440 210C510 200 570 230 640 240V400H0V240Z" fill="url(#forest)"/>
<path d="M0 300C100 320 160 300 240 280C330 260 370 290 450 310C530 330 590 310 640 300V400H0V300Z" fill="url(#river)" opacity="0.9"/>
<path d="M120 190C120 175 140 150 160 150C180 150 200 175 200 190C200 205 180 230 160 230C140 230 120 205 120 190Z" fill="#15803D"/>
<path d="M460 180C460 160 480 140 500 140C520 140 540 160 540 180C540 200 520 220 500 220C480 220 460 200 460 180Z" fill="#16A34A"/>
<path d="M300 170C300 145 330 120 350 120C370 120 400 145 400 170C400 195 370 220 350 220C330 220 300 195 300 170Z" fill="#22C55E"/>
<circle cx="470" cy="90" r="32" fill="#F59E0B"/>
<text x="40" y="360" fill="#E5E7EB" font-family="Montserrat, Arial, sans-serif" font-size="26" font-weight="700">Río y sombra natural</text>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

123
templates/index.html Normal file
View File

@@ -0,0 +1,123 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Camping Fénix</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<header class="hero">
<nav class="nav">
<div class="logo">Camping Fénix</div>
<div class="nav-actions">
<a class="nav-link" href="#servicios">Servicios</a>
<a class="nav-link" href="#galeria">Galería</a>
<a class="nav-link" href="#ubicacion">Ubicación</a>
<a class="cta" href="{{ whatsapp_link }}" target="_blank" rel="noopener">WhatsApp</a>
</div>
</nav>
<div class="hero-content">
<div class="hero-text">
<p class="eyebrow">Naturaleza en Misiones</p>
<h1>Fénix: tu campamento para reconectar y respirar tranquilo.</h1>
<p class="subtitle">Acceso directo al río, fogones listos, y espacios cómodos para acampar o descansar en cabañas.</p>
<div class="hero-buttons">
<a class="button primary" href="#galeria">Ver experiencias</a>
<a class="button ghost" href="{{ whatsapp_link }}" target="_blank" rel="noopener">Escribir al +{{ whatsapp_number[1:] }}</a>
</div>
<div class="quick-info">
<div class="pill">WiFi en el camping</div>
<div class="pill">Arroyo dentro del predio</div>
<div class="pill">Parrillas y cantina</div>
</div>
</div>
<div class="hero-card">
<div class="card-header">Próxima escapada</div>
<div class="card-body">
<p class="card-title">Camping Fénix</p>
<p class="card-desc">Paisaje verde, aves y agua clara para desconectar de la rutina.</p>
<div class="card-tags">
<span>Pet friendly</span>
<span>Cocheras</span>
<span>Señal 4G</span>
</div>
<a class="button full" href="#ubicacion">Ver ubicación</a>
</div>
</div>
</div>
</header>
<main>
<section id="servicios" class="section services">
<div class="section-heading">
<p class="eyebrow">Servicios</p>
<h2>Todo listo para tu estadía</h2>
<p class="subtitle">Conexión, naturaleza y comodidades para disfrutar sin preocuparte por nada.</p>
</div>
<div class="features-grid">
{% for feature in features %}
<div class="feature-card">
<div class="feature-dot"></div>
<p>{{ feature }}</p>
</div>
{% endfor %}
</div>
</section>
<section id="galeria" class="section">
<div class="section-heading">
<p class="eyebrow">Explora</p>
<h2>Galería del camping</h2>
<p class="subtitle">Un vistazo a los espacios y experiencias que te esperan.</p>
</div>
<div class="gallery-grid">
{% for item in gallery_items %}
<article class="gallery-card">
<div class="image-wrap">
<img src="{{ url_for('static', filename=item.image) }}" alt="{{ item.title }}" loading="lazy">
</div>
<div class="gallery-info">
<h3>{{ item.title }}</h3>
<p>{{ item.description }}</p>
</div>
</article>
{% endfor %}
</div>
</section>
<section id="ubicacion" class="section map-section">
<div class="section-heading">
<p class="eyebrow">Cómo llegar</p>
<h2>Ubicación en Google Maps</h2>
<p class="subtitle">Estamos listos para recibirte. Abre el mapa y marca el rumbo.</p>
</div>
<div class="map-card">
<iframe title="Mapa Camping Fénix" src="{{ map_embed_url }}" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
<div class="map-actions">
<a class="button primary" href="{{ map_link }}" target="_blank" rel="noopener">Abrir en Google Maps</a>
<a class="button ghost" href="{{ whatsapp_link }}" target="_blank" rel="noopener">Consultar por WhatsApp</a>
</div>
</div>
</section>
<section class="section contact">
<div class="contact-card">
<div>
<p class="eyebrow">Contacto directo</p>
<h2>Coordina tu reserva por WhatsApp</h2>
<p class="subtitle">Cuéntanos fechas, cantidad de personas y si necesitas fogón o cabaña.</p>
</div>
<a class="button primary" href="{{ whatsapp_link }}" target="_blank" rel="noopener">Chatear al {{ whatsapp_number }}</a>
</div>
</section>
</main>
<footer class="footer">
<p>Camping Fénix · Naturaleza y descanso en Misiones · Contacto: {{ whatsapp_number }}</p>
</footer>
</body>
</html>