oddhtml / index.html
chohj06ms's picture
Update index.html
31a4e36 verified
raw
history blame
No virus
4.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Slider</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap" rel="stylesheet">
<style>
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background-color: #cccccc;
font-family: 'Noto Sans KR', sans-serif;
background-image: url('paintshopbg2.png'); /* ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง€ ์ถ”๊ฐ€ */
background-size: cover; /* ์ด๋ฏธ์ง€๊ฐ€ ํ™”๋ฉด์„ ๊ฝ‰ ์ฑ„์šฐ๋„๋ก ์„ค์ • */
background-position: center; /* ์ด๋ฏธ์ง€๊ฐ€ ํ™”๋ฉด ์ค‘์•™์— ์œ„์น˜ํ•˜๋„๋ก ์„ค์ • */
}
.slider-container {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.slider {
display: flex;
transition: transform 0.5s ease-in-out;
}
.slide {
width: 70vw;
height: 60vh;
margin: 0 15px;
background-color: #000; /* Tailwind gray-800 */
color: #FFFFFF;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 16px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden; /* ์ถ”๊ฐ€๋œ ์†์„ฑ */
}
.slide img {
max-width: 100%; /* ์ˆ˜์ •๋œ ์†์„ฑ */
max-height: 30vh; /* ์ˆ˜์ •๋œ ์†์„ฑ, ํ™”๋ฉด ๋†’์ด์— ๋งž์ถฐ ์กฐ์ • */
}
/* ๋ฐ˜์‘ํ˜• ๋””์ž์ธ์„ ์œ„ํ•œ ๋ฏธ๋””์–ด ์ฟผ๋ฆฌ */
@media (max-height: 500px) {
.slide {
height: 50vh;
}
.slide img {
max-height: 20vh;
}
.slide button {
padding: 8px 16px; /* ๋ฒ„ํŠผ ํฌ๊ธฐ ์กฐ์ • */
font-size: 0.8em; /* ํ…์ŠคํŠธ ํฌ๊ธฐ ์กฐ์ • */
}
}
@media (max-height: 400px) {
.slide {
height: 40vh;
}
.slide img {
max-height: 15vh;
}
.slide button {
padding: 6px 12px;
font-size: 0.7em;
}
}
.slide button {
background-color: #7C3AED; /* Tailwind purple-600 */
color: white;
padding: 10px 20px;
margin-top: 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1em;
}
.slide button:hover {
background-color: #6D28D9; /* Tailwind purple-700 */
}
</style>
</head>
<body>
<div class="slider-container">
<div class="slider">
<!-- Slide 1 -->
<div class="slide" id="slide-1">
<div class="text-xl font-semibold text-red-600">tripleS</div>
<div class="text-sm text-red-400">Cream01 First</div>
<p>First</p>
<p class="text-white text-opacity-50 text-xs">101Z-108Z (8 types)</p>
<img src="https://placehold.co/200x200.png?text=Product+Image&fontsize=18" alt="tripleS Cream01 First product packaging with label FIRST Co1 tripleS" />
<p class="text-white mt-2">KRW 4,400</p>
<button>Objekt ๊ตฌ๋งคํ•˜๊ธฐ</button>
</div>
<!-- Slide 2 -->
<div class="slide" id="slide-2">
<div class="text-xl font-semibold text-red-600">tripleS</div>
<div class="text-sm text-red-400">Cream01 First</div>
<p>First</p>
<p class="text-white text-opacity-50 text-xs">101Z-108Z (8 types)</p>
<img src="https://placehold.co/200x200.png?text=Product+Image&fontsize=18" alt="tripleS Cream01 First product packaging with label FIRST Co1 tripleS" />
<p class="text-white mt-2">KRW 4,400</p>
<button>Objekt ๊ตฌ๋งคํ•˜๊ธฐ</button>
</div>
<!-- Slide 3 -->
<div class="slide" id="slide-3">
<div class="text-xl font-semibold text-red-600">tripleS</div>
<div class="text-sm text-red-400">Cream01 First</div>
<p>First</p>
<p class="text-white text-opacity-50 text-xs">101Z-108Z (8 types)</p>
<img src="https://placehold.co/200x200.png?text=Product+Image&fontsize=18" alt="tripleS Cream01 First product packaging with label FIRST Co1 tripleS" />
<p class="text-white mt-2">KRW 4,400</p>
<button>Objekt ๊ตฌ๋งคํ•˜๊ธฐ</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>