aiqtech commited on
Commit
c868774
ยท
verified ยท
1 Parent(s): f0e9e5f

Update index.html

Browse files
Files changed (1) hide show
  1. 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, auto); /* 5์—ด */
10
- grid-template-rows: repeat(2, auto); /* 2ํ–‰ */
11
- gap: 20px;
12
- justify-content: center;
13
- align-items: center;
14
- margin: 50px;
 
15
  }
16
 
 
17
  .item {
18
  display: flex;
19
- align-items: center;
20
- /* ๊ฐ item ์•ˆ์—์„œ ์ด๋ฏธ์ง€์™€ ๋น„๋””์˜ค ๋น„์œจ ์กฐ์ •:
21
- img : video = 1 : 2 ๋กœ ์„ค์ • */
22
  }
23
 
24
  .item img {
25
  flex: 1;
26
- max-width: 100%;
27
  height: auto;
 
28
  }
29
 
30
  .item video {
31
  flex: 2;
32
- max-width: 100%;
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
- <img src="5.webp" alt="5">
58
- <video src="5.mp4" autoplay loop muted></video>
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>