temperature-alarm/frontend/styles/frontpage.css
2025-03-20 12:38:27 +01:00

61 lines
974 B
CSS

body {
margin: 0;
font-family: sans-serif;
}
main {
width: 100vw;
height: 100vh;
background-image: url("/img/background2.jpg");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-color: rgba(255, 255, 255, 0.5);
}
h1 {
margin: 0;
font-size: 4rem;
text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}
#title {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
#buttons-wrapper {
display: flex;
justify-content: center;
gap: 2rem;
margin-top: 2rem;
}
button {
border-radius: 4px;
padding: 1rem 2rem;
cursor: pointer;
transition-duration: 100ms;
}
button:hover {
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}
button:active {
filter: brightness(0.9);
}
button.secondary {
background-color: white;
border: 1px solid #04aa6d;
}
button.primary {
background-color: #04aa6d;
border: none;
}