Skip to content

Commit

Permalink
Se modificó la pantalla de carga y media querys 450px
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrastea966 committed Nov 4, 2023
1 parent cf02c2b commit bdde006
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
Binary file modified public/video.mp4
Binary file not shown.
26 changes: 10 additions & 16 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ ol {
list-style: none;
}

li {
font-size: 18px;
margin-bottom: 10px;
}

a {
text-decoration: none;
color: inherit;
Expand All @@ -42,23 +47,13 @@ a {
justify-content: center;
align-items: center;
z-index: 9999;
animation: fadeOut 0.5s ease-in-out 5.5s forwards;
}

.App.loading-screen {
visibility: hidden;
}

.loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
z-index: 9999;
animation: fadeOut 0.5s ease-in-out 5.5s forwards;
}

@keyframes fadeOut {
from {
opacity: 1;
Expand Down Expand Up @@ -127,11 +122,6 @@ button:hover {
transform: rotate(20deg);
}

li {
font-size: 18px;
margin-bottom: 10px;
}

.App {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -317,4 +307,8 @@ li {
justify-content: center;
}

.ideas-items-contenedor {
min-height: 280px;
}

}
7 changes: 3 additions & 4 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ const App = () => {
const [warningMessage, setWarningMessage] = useState('');
const [showWarning, setShowWarning] = useState(false);

// Cargar ideas desde el almacenamiento local al iniciar la aplicación
useEffect(() => {
const savedIdeas = JSON.parse(localStorage.getItem('ideas')) || [];
setIdeas(savedIdeas);
}, []); // Este efecto se ejecuta solo una vez al iniciar la aplicación
}, []);

// Guardar ideas en el almacenamiento local cada vez que el estado de ideas cambie
useEffect(() => {
localStorage.setItem('ideas', JSON.stringify(ideas));
}, [ideas]); // Este efecto se ejecuta cada vez que el estado 'ideas' cambia
}, [ideas]);

const handleInputChange = (event) => {
setInputValue(event.target.value);
Expand Down Expand Up @@ -85,6 +83,7 @@ const App = () => {

return (
<div className={`App ${isLoading ? 'loading' : ''}`}>
<img src="../../logo-twister.svg" alt="Logo" className="logo-twister" />
{isLoading && <div className="loading-screen"> <video autoPlay loop muted className="background-video">
<source src="../video.mp4" type="video/mp4" />
</video> </div>}
Expand Down

0 comments on commit bdde006

Please sign in to comment.