Fix : 영상 비율 조정
This commit is contained in:
parent
d695a630ea
commit
a7ee8ad624
15
css/main.css
15
css/main.css
@ -4,7 +4,7 @@
|
||||
|
||||
/* Hero 섹션 */
|
||||
.hero-section {
|
||||
min-height: calc(100vh - var(--navbar-height));
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
@ -38,14 +38,13 @@
|
||||
|
||||
.video-bg iframe {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 100vw;
|
||||
height: 56.25vw; /* 16:9 비율 */
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
transform: translate(-50%, -50%);
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: none;
|
||||
pointer-events: none;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* 영상 위에 오버레이 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user