Update index.html
Browse files- index.html +103 -9
index.html
CHANGED
@@ -1,21 +1,115 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
|
|
3 |
<head>
|
4 |
-
<meta charset="UTF-8">
|
5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>Slider</title>
|
7 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</head>
|
|
|
9 |
<body>
|
10 |
|
11 |
<div class="slider-container">
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
</div>
|
18 |
|
19 |
<script src="script.js"></script>
|
20 |
</body>
|
|
|
21 |
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
3 |
+
|
4 |
<head>
|
5 |
+
<meta charset="UTF-8">
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
+
<title>Slider</title>
|
8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
9 |
+
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap" rel="stylesheet">
|
10 |
+
<style>
|
11 |
+
body, html {
|
12 |
+
margin: 0;
|
13 |
+
padding: 0;
|
14 |
+
width: 100%;
|
15 |
+
height: 100%;
|
16 |
+
overflow: hidden;
|
17 |
+
display: flex;
|
18 |
+
justify-content: center;
|
19 |
+
align-items: center;
|
20 |
+
background-color: #1A1A1A;
|
21 |
+
font-family: 'Noto Sans KR', sans-serif;
|
22 |
+
}
|
23 |
+
|
24 |
+
.slider-container {
|
25 |
+
width: 100%;
|
26 |
+
height: 100%;
|
27 |
+
overflow: hidden;
|
28 |
+
position: relative;
|
29 |
+
display: flex;
|
30 |
+
justify-content: center;
|
31 |
+
align-items: center;
|
32 |
+
}
|
33 |
+
|
34 |
+
.slider {
|
35 |
+
display: flex;
|
36 |
+
transition: transform 0.5s ease-in-out;
|
37 |
+
}
|
38 |
+
|
39 |
+
.slide {
|
40 |
+
width: 70vw;
|
41 |
+
height: 60vh;
|
42 |
+
margin: 0 15px;
|
43 |
+
background-color: #1F2937; /* Tailwind gray-800 */
|
44 |
+
color: #FFFFFF;
|
45 |
+
display: flex;
|
46 |
+
flex-direction: column;
|
47 |
+
align-items: center;
|
48 |
+
justify-content: center;
|
49 |
+
border-radius: 16px;
|
50 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
51 |
+
}
|
52 |
+
|
53 |
+
.slide img {
|
54 |
+
max-width: 200px; /* Placeholder image width */
|
55 |
+
max-height: 200px; /* Placeholder image height */
|
56 |
+
}
|
57 |
+
|
58 |
+
.slide button {
|
59 |
+
background-color: #7C3AED; /* Tailwind purple-600 */
|
60 |
+
color: white;
|
61 |
+
padding: 10px 20px;
|
62 |
+
margin-top: 20px;
|
63 |
+
border: none;
|
64 |
+
border-radius: 8px;
|
65 |
+
cursor: pointer;
|
66 |
+
font-size: 1em;
|
67 |
+
}
|
68 |
+
|
69 |
+
.slide button:hover {
|
70 |
+
background-color: #6D28D9; /* Tailwind purple-700 */
|
71 |
+
}
|
72 |
+
</style>
|
73 |
</head>
|
74 |
+
|
75 |
<body>
|
76 |
|
77 |
<div class="slider-container">
|
78 |
+
<div class="slider">
|
79 |
+
<!-- Slide 1 -->
|
80 |
+
<div class="slide" id="slide-1">
|
81 |
+
<div class="text-xl font-semibold text-red-600">tripleS</div>
|
82 |
+
<div class="text-sm text-red-400">Cream01 First</div>
|
83 |
+
<p>First</p>
|
84 |
+
<p class="text-white text-opacity-50 text-xs">101Z-108Z (8 types)</p>
|
85 |
+
<img src="https://placehold.co/200x200.png?text=Product+Image&fontsize=18" alt="tripleS Cream01 First product packaging with label FIRST Co1 tripleS" />
|
86 |
+
<p class="text-white mt-2">KRW 4,400</p>
|
87 |
+
<button>Objekt 구매하기</button>
|
88 |
+
</div>
|
89 |
+
<!-- Slide 2 -->
|
90 |
+
<div class="slide" id="slide-2">
|
91 |
+
<div class="text-xl font-semibold text-red-600">tripleS</div>
|
92 |
+
<div class="text-sm text-red-400">Cream01 First</div>
|
93 |
+
<p>First</p>
|
94 |
+
<p class="text-white text-opacity-50 text-xs">101Z-108Z (8 types)</p>
|
95 |
+
<img src="https://placehold.co/200x200.png?text=Product+Image&fontsize=18" alt="tripleS Cream01 First product packaging with label FIRST Co1 tripleS" />
|
96 |
+
<p class="text-white mt-2">KRW 4,400</p>
|
97 |
+
<button>Objekt 구매하기</button>
|
98 |
+
</div>
|
99 |
+
<!-- Slide 3 -->
|
100 |
+
<div class="slide" id="slide-3">
|
101 |
+
<div class="text-xl font-semibold text-red-600">tripleS</div>
|
102 |
+
<div class="text-sm text-red-400">Cream01 First</div>
|
103 |
+
<p>First</p>
|
104 |
+
<p class="text-white text-opacity-50 text-xs">101Z-108Z (8 types)</p>
|
105 |
+
<img src="https://placehold.co/200x200.png?text=Product+Image&fontsize=18" alt="tripleS Cream01 First product packaging with label FIRST Co1 tripleS" />
|
106 |
+
<p class="text-white mt-2">KRW 4,400</p>
|
107 |
+
<button>Objekt 구매하기</button>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
</div>
|
111 |
|
112 |
<script src="script.js"></script>
|
113 |
</body>
|
114 |
+
|
115 |
</html>
|