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

Update index.html

Browse files
Files changed (1) hide show
  1. 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
- 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>
57
- </div>
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
- <!-- ๋‘ ๋ฒˆ์งธ ์ค„: 3๋ฒˆ, 4๋ฒˆ ํŒŒ์ผ ๋ฐฐ์น˜ -->
67
- <div class="item">
68
- <img src="3.webp" alt="3">
69
- <video src="3.mp4" autoplay loop muted></video>
70
- </div>
71
- <div class="item">
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>
 
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>