Skip to content

Commit

Permalink
tmp) Add background
Browse files Browse the repository at this point in the history
  • Loading branch information
kinam0252 authored Nov 26, 2024
1 parent 492acb3 commit 1d1168b
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,40 +56,16 @@
text-align: center;
color: #555;
}
.hero {
position: relative;
overflow: hidden; /* 비디오가 섹션을 넘어가지 않도록 설정 */
color: white; /* 텍스트가 비디오 위에서 잘 보이도록 설정 */
}

.hero video {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1; /* 비디오를 텍스트 뒤로 보내기 */
opacity: 0.7; /* 비디오를 살짝 투명하게 설정 */
}

.hero-body {
position: relative;
z-index: 1; /* 텍스트를 비디오 위로 올리기 */
}
</style>
</head>
<body>
<section class="hero">
<!-- 배경 비디오 추가 -->
<video autoplay muted loop playsinline>

<section class="hero is-medium is-primary is-bold" style="position: relative; overflow: hidden;">
<!-- 배경 비디오 -->
<video autoplay muted loop playsinline style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;">
<source src="assets/background.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

<div class="hero-body">
<div class="custom-container is-max-desktop">
<div class="columns is-centered">
Expand Down Expand Up @@ -147,7 +123,7 @@ <h1 class="title is-1 publication-title">Spatiotemporal Skip Guidance for Enhanc
</div>
</div>
</section>

<section class="section">
<div class="custom-container">
<!-- 두 비디오 나란히 -->
Expand Down

0 comments on commit 1d1168b

Please sign in to comment.