great-website/index.css
Kumi 010845611d
feat: implement dynamic error box visibility
Introduced a `.hidden` CSS class to control the visibility of elements
and initially applied it to the error box, making it hidden by default.
JavaScript logic was added to remove this class dynamically, allowing
for the error box to be shown conditionally based on specific criteria.
This change enhances user experience by preventing immediate display of
error messages on page load, instead allowing for dynamic visibility
control based on application state or user actions.
2024-03-28 09:20:53 +01:00

24 lines
No EOL
372 B
CSS

body {
background-color: black;
color: white;
font-family: monospace;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.error-box {
background-color: black;
border: 1px solid white;
padding: 20px;
max-width: 600px;
}
.error-box h1 {
font-size: 2em;
margin: 0;
color: red;
}
.hidden {
display: none;
}