Learning React JS: Background Video

Posted by

Belajar React JS : Background Video

.container {
position: relative;
}

.video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}

.content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: white;
}

h1 {
font-size: 3rem;
margin-bottom: 1rem;
}

p {
font-size: 1.5rem;
}