chohj06ms commited on
Commit
c5ba53f
1 Parent(s): 31d1f3d

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +47 -45
index.html CHANGED
@@ -1,54 +1,56 @@
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>Shop Carousel</title>
7
- <script src="https://cdn.tailwindcss.com"></script>
8
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
9
- <style>
10
- .carousel-card {
11
- transition: transform 0.5s ease;
12
- }
13
- .carousel-card.active {
14
- transform: scale(1);
15
- }
16
- .carousel-card.inactive {
17
- transform: scale(0.75);
18
- }
19
- </style>
20
  </head>
21
- <body class="bg-black text-white">
 
 
 
 
 
 
 
 
 
 
22
 
23
- <div class="flex flex-col items-center justify-center h-screen">
24
- <div id="carousel" class="flex justify-center gap-4">
25
- <!-- Placeholder for carousel cards -->
26
- <div class="carousel-card inactive">
27
- <img src="https://placehold.co/200x300" alt="Placeholder image representing a smaller inactive card in the carousel">
28
- </div>
29
- <div class="carousel-card active">
30
- <img src="https://placehold.co/200x300" alt="Placeholder image representing the active card in the carousel">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  </div>
32
- <div class="carousel-card inactive">
33
- <img src="https://placehold.co/200x300" alt="Placeholder image representing a smaller inactive card in the carousel">
 
 
 
 
34
  </div>
35
  </div>
36
-
37
- <button class="mt-8 py-2 px-4 bg-purple-600 rounded">Objekt 구매하기</button>
38
- </div>
39
-
40
- <script>
41
- const cards = document.querySelectorAll('.carousel-card');
42
- let currentIndex = 1; // Start from the second card (index 1)
43
-
44
- function rotateCarousel() {
45
- cards.forEach(card => card.classList.replace('active', 'inactive'));
46
- cards[currentIndex].classList.replace('inactive', 'active');
47
- currentIndex = (currentIndex + 1) % cards.length;
48
- }
49
-
50
- setInterval(rotateCarousel, 2000); // Rotate every 2 seconds
51
- </script>
52
-
53
  </body>
54
  </html>
 
 
1
  <html lang="en">
2
  <head>
3
+ <meta charset="UTF-8">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <title>Shop</title>
6
+ <script src="https://cdn.tailwindcss.com"></script>
7
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
8
+ <style>
9
+ /* Additional styles if needed */
10
+ </style>
 
 
 
 
 
 
 
 
11
  </head>
12
+ <body class="bg-black text-white font-sans">
13
+ <div class="h-screen flex flex-col items-center justify-center">
14
+ <!-- Header with Shop title and coin balance -->
15
+ <header class="flex items-center justify-between w-full px-4 py-2">
16
+ <a href="#" class="text-white text-lg"><i class="fas fa-arrow-left"></i></a>
17
+ <span class="text-white text-lg">Shop</span>
18
+ <div class="flex items-center">
19
+ <span class="text-white text-lg">144</span>
20
+ <i class="fas fa-coins ml-2 text-yellow-300"></i>
21
+ </div>
22
+ </header>
23
 
24
+ <!-- Product Slider -->
25
+ <div class="flex flex-col items-center">
26
+ <div class="my-6">
27
+ <!-- Slider will go here -->
28
+ <!-- Placeholder for slider functionality, replace with your slider implementation -->
29
+ </div>
30
+
31
+ <!-- Product Details -->
32
+ <div class="text-center mb-6">
33
+ <h2 class="text-2xl font-bold mb-2">EMBLE A Ver.</h2>
34
+ <p class="text-red-600 text-xl mb-1">Cream01 Double</p>
35
+ <div class="flex items-center justify-center space-x-2">
36
+ <span class="bg-gray-700 text-white py-1 px-3 rounded-full text-sm">Double</span>
37
+ <span class="text-gray-400 text-sm">32OZ (1 type)</span>
38
+ </div>
39
+ <div class="flex mt-4">
40
+ <!-- Image placeholders -->
41
+ <!-- Replace with your image slider/carousel -->
42
+ </div>
43
+ <p class="text-gray-400 text-lg my-4">KRW 4,400</p>
44
+ <button class="bg-purple-700 px-6 py-2 rounded-full text-white font-bold">Objekt 구매하기</button>
45
+ </div>
46
  </div>
47
+
48
+ <!-- Navigation dots for the slider -->
49
+ <div class="flex items-center justify-center space-x-2">
50
+ <span class="h-2 w-2 bg-gray-600 rounded-full"></span>
51
+ <span class="h-2 w-2 bg-gray-600 rounded-full"></span>
52
+ <span class="h-2 w-2 bg-white rounded-full"></span>
53
  </div>
54
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  </body>
56
  </html>