Add initial project structure with Docker setup, Flask app, and static assets
This commit is contained in:
52
app.py
Normal file
52
app.py
Normal 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)
|
||||
Reference in New Issue
Block a user