From de85efb033125505a41aef9f9562b2fce288454f Mon Sep 17 00:00:00 2001 From: AmbrizAlberto Date: Sat, 27 Apr 2024 22:34:34 -0600 Subject: [PATCH] Responsive Modal Fixed --- "app/components/espa\303\261ol/projects.jsx" | 7 ++-- app/components/ingles/projectsen.jsx | 7 ++-- app/css/mainrespons.css | 14 ++++++-- app/css/modal.css | 38 ++++++++++---------- app/page.jsx | 2 +- 5 files changed, 38 insertions(+), 30 deletions(-) diff --git "a/app/components/espa\303\261ol/projects.jsx" "b/app/components/espa\303\261ol/projects.jsx" index 315d90c..f4561a0 100644 --- "a/app/components/espa\303\261ol/projects.jsx" +++ "b/app/components/espa\303\261ol/projects.jsx" @@ -26,7 +26,6 @@ const Proyectos = () => { const openModalForProject = (projectId) => { setSelectedProject(projectId); setModalOpen(true); - scrollToSection('proyecto'); }; const closeModal = () => { @@ -58,7 +57,7 @@ const Proyectos = () => {
- Ver proyecto + Ver proyecto
@@ -75,7 +74,7 @@ const Proyectos = () => {
- Ver proyecto + Ver proyecto
@@ -94,7 +93,7 @@ const Proyectos = () => {
- Ver proyecto + Ver proyecto
diff --git a/app/components/ingles/projectsen.jsx b/app/components/ingles/projectsen.jsx index 82e07a1..8ec0dab 100644 --- a/app/components/ingles/projectsen.jsx +++ b/app/components/ingles/projectsen.jsx @@ -26,7 +26,6 @@ const ProyectosEN = () => { const openModalForProject = (projectId) => { setSelectedProject(projectId); setModalOpen(true); - scrollToSection('proyecto'); }; const closeModal = () => { @@ -58,7 +57,7 @@ const ProyectosEN = () => {
- See project + See project
@@ -75,7 +74,7 @@ const ProyectosEN = () => {
- See project + See project
@@ -94,7 +93,7 @@ const ProyectosEN = () => {
- See project + See project
diff --git a/app/css/mainrespons.css b/app/css/mainrespons.css index dd84f04..c714a22 100644 --- a/app/css/mainrespons.css +++ b/app/css/mainrespons.css @@ -119,10 +119,11 @@ font-size: 170%; } .modalprj1{ - font-size: 40%; + height: 50%; + font-size: 40%; } .modalcontent{ - margin-top: 50%; + font-size: 40%; } } @@ -130,6 +131,9 @@ .datos2{ font-size: 70%; } + .modalprj1{ + height: 50%; + } } /* iPmini */ @@ -140,6 +144,9 @@ .personaldata{ font-size: 80%; } + .modalprj1{ + height: 50%; + } } @@ -234,4 +241,7 @@ margin-top: 50%; margin-bottom: 5%; } + .modalprj1{ + height: 50%; + } } \ No newline at end of file diff --git a/app/css/modal.css b/app/css/modal.css index 45ee9ff..1094d64 100644 --- a/app/css/modal.css +++ b/app/css/modal.css @@ -1,38 +1,36 @@ -/* modal.css */ - -/* modal.css */ - - - /* modal.css */ .modalprj1 { - top: 0%; - position: absolute; - margin: auto; - width: 101%; - height: 250vh; /* Modificado para cubrir el 80% de la ventana */ + top: 0; + bottom: 0; + left: 0; + right: 0; + display: flex; + position: fixed; + width: 100%; + height: 100%; justify-content: center; align-items: center; z-index: 1100; overflow: hidden; /* Eliminado overflow-y y overflow-x */ - backdrop-filter: blur(30px); - transition: 1000ms; + backdrop-filter: blur(30px); + transition: 1s; + border: 1px solid black; } .modalcontent1 { + margin: auto; + position: relative; max-width: 70%; - box-shadow: 0 0 20px black; - overflow-y: auto; + max-height: 60%; padding: 4%; + box-shadow: 0 0 100px rgb(0, 0, 0); + overflow-y: auto; background-color: #3e3e3e; - height: 50vh; /* Añadido para que el contenido del modal no exceda el 100% de la altura del modal */ border-radius: 20px; border: 2px solid #888; - position: relative; overflow-y: auto; /* Añadido para permitir el desplazamiento vertical del contenido */ scrollbar-width: none; - margin: auto; - margin-top: 10%; + transition: 1s; } .close-modal { color: #aaa; @@ -46,8 +44,10 @@ background: none; border: none; padding: 0; + transition: 1s; } .close-modal:hover { color: #fff; + transition: 1s; } \ No newline at end of file diff --git a/app/page.jsx b/app/page.jsx index 8d7e394..cf119a3 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -43,7 +43,7 @@ export default function Portafolio() { ScrollReveal().reveal(selector, { duration: 1000, origin: origin, - distance: '10px', + distance: '0px', delay: 100, easing: 'ease-in-out', });