Add YouTube Shorts video gallery to React app

- Added `VIDEO_ITEMS` constant with YouTube Shorts IDs to `src/App.jsx`.
- Added a new `<section>` for videos in `src/App.jsx`.
- Ported video grid styles from `static/css/style.css` to `src/styles.css`, including the 9:16 aspect ratio fix.
- Updated `static/css/style.css` to ensure consistent styling (if not already present).

Co-authored-by: abustosp <63634574+abustosp@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot]
2026-02-01 01:15:01 +00:00
parent d24508174b
commit 925d5f484f
5 changed files with 1746 additions and 28 deletions

View File

@@ -55,6 +55,17 @@ const GALLERY_ITEMS = [
}
]
const VIDEO_ITEMS = [
'656GdIPFvjE',
'5OpuBwlszB0',
'QtFkxb3wcYQ',
'OdMX991dFCg',
'EpDvw0fQP8Q',
'BCvTlTp3Gmo',
'LEojsBDbV0A',
'mPpbDCaG3D8'
]
const MAP_EMBED_URL = 'https://www.google.com/maps?q=Fenix%20Camping%20Misiones&output=embed'
const MAP_LINK = 'https://maps.app.goo.gl/7LycqCiKgPXpbSUf8'
const WHATSAPP_NUMBER = '+543765253409'
@@ -156,6 +167,29 @@ function App() {
</div>
</section>
<section id="videos" className="section videos-section">
<div className="container">
<div className="section-header">
<span className="eyebrow">Experiencia</span>
<h2>Vive la naturaleza</h2>
<p>Un vistazo a lo que te espera en Camping Fénix.</p>
</div>
<div className="video-grid">
{VIDEO_ITEMS.map((videoId) => (
<div className="video-wrapper" key={videoId}>
<iframe
src={`https://www.youtube.com/embed/${videoId}`}
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowFullScreen
></iframe>
</div>
))}
</div>
</div>
</section>
<section id="ubicacion" className="section map-section">
<div className="container">
<div className="section-header">

View File

@@ -359,6 +359,44 @@ p {
gap: 2rem;
}
/* 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;
}
.gallery-item {
background: var(--bg-surface);
border-radius: var(--radius-md);