irongit

video is cover now

huncholanehuncholaneauthored
parent d51ec6ccommit 4b3586adcfbeca62e5fd3ffd7ad341d69aa02166Browse files

1 file changed, +5 -7

+5-7twench_landing_page/components/VideoSection/VideoSection.css
@@ -3,13 +3,11 @@
33 }
44
55 .VideoSection .Preview {
6- @apply w-[290px] h-[166px] bg-black border-4 border-primary rounded-md left-1/2 absolute transform -rotate-12 -translate-y-1/2 -translate-x-1/2 cursor-pointer;
6+ @apply w-[290px] h-[166px] bg-black border-4 border-primary rounded-md left-1/2 absolute transform -rotate-12 -translate-y-1/2 -translate-x-1/2 cursor-pointer overflow-hidden;
77 }
88
9-.VideoSection .Preview button {
10- background: url("/svgs/play.svg") no-repeat center center;
11- background-size: cover;
12- @apply w-12 h-12 left-1/2 top-1/2 absolute transform -translate-x-1/2 -translate-y-1/2;
13- filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
14- contrast(100%);
9+.VideoSection .Preview video {
10+ width: 100%;
11+ height: 100%;
12+ object-fit: cover; /* Ensures the video covers the entire box */
1513 }