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