<!DOCTYPE html> <html lang="th"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>โปรโมชั่นและข่าวสาร</title> <style> body { font-family: sans-serif; background-color: #fff4d6; text-align: center; margin: 0; padding: 0; } .banner { background-color: #ffcc66; padding: 20px; border-radius: 10px; margin: 20px auto; width: 80%; max-width: 1320px; } .banner img { width: 100%; border-radius: 10px; } .buttons { display: flex; justify-content: center; gap: 10px; margin-top: 20px; } .button { background-color: #ffa500; padding: 15px; border-radius: 10px; cursor: pointer; color: white; font-weight: bold; width: 200px; } .shop { margin-top: 30px; padding: 20px; background-color: #ffd966; border-radius: 10px; width: 80%; max-width: 800px; margin-left: auto; margin-right: auto; } .shop-item { background-color: #ffb347; padding: 10px; border-radius: 10px; margin: 10px; } .buy-button { background-color: #ff6600; color: white; padding: 10px; border: none; border-radius: 5px; cursor: pointer; margin-top: 10px; } </style> </head> <body> <h1>โปรโมชั่นและข่าวสาร</h1> <div class="banner"> <img src="banner-example.jpg" alt="ตัวอย่างแบนเนอร์"> </div> <div class="buttons"> <div class="button">ตัวอย่าง CLICK!!</div> <div class="button">ตัวอย่าง CLICK!!</div> <div class="button">ตัวอย่าง CLICK!!</div> </div> <div class="shop"> <h2>ร้านค้า</h2> <div class="shop-item"> <p>สินค้า 1 - ราคา 100 บาท</p> <button class="buy-button">ซื้อเลย</button> </div> <div class="shop-item"> <p>สินค้า 2 - ราคา 200 บาท</p> <button class="buy-button">ซื้อเลย</button> </div> <div class="shop-item"> <p>สินค้า 3 - ราคา 300 บาท</p> <button class="buy-button">ซื้อเลย</button> </div> </div> </body> </html>
Standard input is empty
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>โปรโมชั่นและข่าวสาร</title>
<style>
body {
font-family: sans-serif;
background-color: #fff4d6;
text-align: center;
margin: 0;
padding: 0;
}
.banner {
background-color: #ffcc66;
padding: 20px;
border-radius: 10px;
margin: 20px auto;
width: 80%;
max-width: 1320px;
}
.banner img {
width: 100%;
border-radius: 10px;
}
.buttons {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 20px;
}
.button {
background-color: #ffa500;
padding: 15px;
border-radius: 10px;
cursor: pointer;
color: white;
font-weight: bold;
width: 200px;
}
.shop {
margin-top: 30px;
padding: 20px;
background-color: #ffd966;
border-radius: 10px;
width: 80%;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
.shop-item {
background-color: #ffb347;
padding: 10px;
border-radius: 10px;
margin: 10px;
}
.buy-button {
background-color: #ff6600;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
}
</style>
</head>
<body>
<h1>โปรโมชั่นและข่าวสาร</h1>
<div class="banner">
<img src="banner-example.jpg" alt="ตัวอย่างแบนเนอร์">
</div>
<div class="buttons">
<div class="button">ตัวอย่าง CLICK!!</div>
<div class="button">ตัวอย่าง CLICK!!</div>
<div class="button">ตัวอย่าง CLICK!!</div>
</div>
<div class="shop">
<h2>ร้านค้า</h2>
<div class="shop-item">
<p>สินค้า 1 - ราคา 100 บาท</p>
<button class="buy-button">ซื้อเลย</button>
</div>
<div class="shop-item">
<p>สินค้า 2 - ราคา 200 บาท</p>
<button class="buy-button">ซื้อเลย</button>
</div>
<div class="shop-item">
<p>สินค้า 3 - ราคา 300 บาท</p>
<button class="buy-button">ซื้อเลย</button>
</div>
</div>
</body>
</html>