Add formatting for video background playback

This commit is contained in:
Ray 2024-08-22 14:38:34 +10:00 committed by GitHub
parent 57098ce427
commit 08e61f3859
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 4 deletions

View File

@ -1,16 +1,26 @@
body {
margin: 0;
padding: 0;
display: flex;
height: 100vh;
justify-content: center;
align-items: center;
background-color: #f0f0f0;
overflow: hidden;
font-family: Arial, sans-serif;
}
#bg-video {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
object-fit: cover;
transform: translate(-50%, -50%);
z-index: -1;
}
.centered-content {
position: relative;
text-align: center;
color: #ffffff;
}
h1 {