From 06990d03ef4e71fb2c4eb99750f729a5ff61a27a Mon Sep 17 00:00:00 2001 From: Paulina Tirante Date: Fri, 1 Aug 2025 10:24:46 -0300 Subject: [PATCH] Resolucion imagen --- src/components/DualSection/OneSection.js | 1 - .../videoBackground/VideoBackground.js | 39 ++++++--------- .../videoBackground/videoBackground.scss | 48 +++++-------------- 3 files changed, 27 insertions(+), 61 deletions(-) diff --git a/src/components/DualSection/OneSection.js b/src/components/DualSection/OneSection.js index 872b47f..9820d86 100644 --- a/src/components/DualSection/OneSection.js +++ b/src/components/DualSection/OneSection.js @@ -19,7 +19,6 @@ const OneSection = ({ data: { dualSectionPart } }) => {
{ localStorage.setItem("videoPaused", isVideoPause) }, [isVideoPause]) - const backgroundSharp = - backgroundImage?.localFile && getImage(backgroundImage.localFile) - const videoContent = getVideoContent( video, videoRef, @@ -195,18 +190,15 @@ const VideoBackground = ({ data }) => { ) return ( -
- - {backgroundSharp && ( - - )} - +
{videoContent} @@ -236,10 +228,7 @@ VideoBackground.propTypes = { }), videoUrl: PropTypes.string, description: PropTypes.string, - backgroundImage: PropTypes.shape({ - url: PropTypes.string.isRequired, - localFile: PropTypes.object, - }), + backgroundImage: PropTypes.shape({ url: PropTypes.string.isRequired }), image: PropTypes.shape({ alternativeText: PropTypes.string, localFile: PropTypes.object, diff --git a/src/components/videoBackground/videoBackground.scss b/src/components/videoBackground/videoBackground.scss index 0a20767..4af9dca 100644 --- a/src/components/videoBackground/videoBackground.scss +++ b/src/components/videoBackground/videoBackground.scss @@ -1,26 +1,11 @@ @import "../../styles/global.scss"; -.videoBackground-wrapper { - position: relative; // ✅ CAMBIO: contenedor padre para fondo - overflow: hidden; - - .videoBackground-bg { // ✅ CAMBIO: imagen de fondo (GatsbyImage) - position: absolute !important; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: -1; - object-fit: cover; - } -} - .videoBackground { max-width: 100%; - height: fit-content; &-container { - padding-block: 32px; + padding-top: 50px; + padding-bottom: 50px; } video, @@ -38,15 +23,13 @@ &-card { width: 100%; - min-height: 120px; - background-color: rgba(232, 232, 232, 0.77); + backdrop-filter: blur(14px); + color: white; border-radius: 5px; - color: $grey; + background: #e8e8e8c5; box-shadow: 0px 0px 3px #00000044; - word-wrap: break-word; + word-wrap: break-all; padding: 15px; - z-index: 1; // ✅ CAMBIO: asegurar que quede sobre el fondo - position: relative; } .image { @@ -64,13 +47,16 @@ h2 { font-size: 28px; width: 100%; + margin-bottom: 8px; color: $grey; - margin-bottom: 16px; } a { @include secondaryBtn; color: $grey; + display: block; + width: max-content; + padding: 8px 16px; } } @@ -82,20 +68,12 @@ position: absolute; bottom: 0; max-width: calc(700px - 60px); - background-color: rgba(232, 232, 232, 0.77); + backdrop-filter: blur(14px); border-radius: 5px; + background: #e8e8e8c5; box-shadow: 0px 0px 3px #00000044; margin: 2em; padding: 32px; } } -} - -@media screen and (max-width: $breakpoint-md) { - .videoBackground { - &-card { - backdrop-filter: none; - box-shadow: none; - } - } -} +} \ No newline at end of file