File size: 1,784 Bytes
ff8de4a c868774 ff8de4a c868774 ff8de4a c868774 ff8de4a c868774 ff8de4a c868774 ff8de4a c868774 ff8de4a c868774 ff8de4a c868774 ff8de4a c868774 ff8de4a c868774 ff8de4a c868774 ff8de4a 588660f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.grid-container {
display: grid;
grid-template-columns: repeat(5, 1fr); /* 5์ด */
grid-template-rows: repeat(2, 1fr); /* 2ํ */
width: 100vw;
height: 100vh;
gap: 10px;
box-sizing: border-box;
padding: 10px;
}
/* ๊ฐ ์์ดํ
๋ด๋ถ๋ ์ด๋ฏธ์ง:๋น๋์ค = 1:2 ๋น์จ ์ ์ง */
.item {
display: flex;
background: #ccc; /* ๋น ์นธ ๋๋น ์๊ฐ์ ๊ตฌ๋ถ์ฉ, ํ์์ ์ ๊ฑฐ ๊ฐ๋ฅ */
}
.item img {
flex: 1;
width: 100%;
height: auto;
object-fit: cover;
}
.item video {
flex: 2;
width: 100%;
height: auto;
object-fit: cover;
}
/* ๋น์นธ์ฉ ์คํ์ผ (ํ์์ ๋ฐ๋ผ ๋ณ๊ฒฝ ๊ฐ๋ฅ) */
.empty {
background: #eee;
}
</style>
</head>
<body>
<div class="grid-container">
<!-- ์ฒซ ์ค: 1๋ฒ, 2๋ฒ ํ์ผ ๋ฐฐ์น -->
<div class="item">
<img src="1.webp" alt="1">
<video src="1.mp4" autoplay loop muted></video>
</div>
<div class="item">
<img src="2.webp" alt="2">
<video src="2.mp4" autoplay loop muted></video>
</div>
<div class="item empty"></div>
<div class="item empty"></div>
<div class="item empty"></div>
<!-- ๋ ๋ฒ์งธ ์ค: 3๋ฒ, 4๋ฒ ํ์ผ ๋ฐฐ์น -->
<div class="item">
<img src="3.webp" alt="3">
<video src="3.mp4" autoplay loop muted></video>
</div>
<div class="item">
<img src="4.webp" alt="4">
<video src="4.mp4" autoplay loop muted></video>
</div>
<div class="item empty"></div>
<div class="item empty"></div>
<div class="item empty"></div>
</div>
</body>
</html>
|