diff --git a/app.py b/app.py index d4fafd9..cc26b8c 100755 --- a/app.py +++ b/app.py @@ -60,6 +60,17 @@ GALLERY_ITEMS = [ }, ] +VIDEO_ITEMS = [ + "656GdIPFvjE", + "5OpuBwlszB0", + "QtFkxb3wcYQ", + "OdMX991dFCg", + "EpDvw0fQP8Q", + "BCvTlTp3Gmo", + "LEojsBDbV0A", + "mPpbDCaG3D8", +] + FEATURES = [ "WiFi en todo el camping", "Arroyo dentro de la propiedad", @@ -80,6 +91,7 @@ def home(): return render_template( "index.html", gallery_items=GALLERY_ITEMS, + video_items=VIDEO_ITEMS, features=FEATURES, map_embed_url=MAP_EMBED_URL, map_link=MAP_LINK, diff --git a/static/css/style.css b/static/css/style.css index fedae75..6297aed 100755 --- a/static/css/style.css +++ b/static/css/style.css @@ -400,6 +400,44 @@ p { color: var(--primary); } +/* Videos Section */ +.videos-section { + background-color: var(--bg-body); +} + +.video-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + justify-content: center; +} + +.video-wrapper { + position: relative; + width: 100%; + /* 9:16 Aspect Ratio */ + padding-bottom: 177.77%; + background: var(--bg-surface); + border-radius: var(--radius-md); + overflow: hidden; + box-shadow: var(--shadow-soft); + transition: transform 0.3s ease; +} + +.video-wrapper:hover { + transform: translateY(-5px); + box-shadow: var(--shadow-hover); +} + +.video-wrapper iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + border: none; +} + /* Map Section */ .map-section { background-color: var(--bg-alt); diff --git a/templates/index.html b/templates/index.html index eb183e7..f40e466 100755 --- a/templates/index.html +++ b/templates/index.html @@ -88,6 +88,29 @@ + + + + Experiencia + Vive la naturaleza + Un vistazo a lo que te espera en Camping Fénix. + + + {% for video_id in video_items %} + + + + + {% endfor %} + + + + diff --git a/test_app.py b/test_app.py new file mode 100644 index 0000000..3122f21 --- /dev/null +++ b/test_app.py @@ -0,0 +1,18 @@ + +import pytest +from app import app + +@pytest.fixture +def client(): + app.config['TESTING'] = True + with app.test_client() as client: + yield client + +def test_home_page(client): + """Test that the home page loads successfully.""" + response = client.get('/') + assert response.status_code == 200 + assert b"Vive la naturaleza" in response.data + # Check for presence of video IDs (checking the first two) + assert b"656GdIPFvjE" in response.data + assert b"5OpuBwlszB0" in response.data
Un vistazo a lo que te espera en Camping Fénix.