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