Berliana Panca Dewi Nurhidayah
5053231028
Membuat iklan penjualan toko harry aksesoris
html :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Harry Potter</title>
<link rel="stylesheet" href="iklan.css"> <!-- Menghubungkan file CSS -->
</head>
<body>
<header>
<div class="container">
<h1>HARRY POTTER STORE</h1>
</div>
</header>
<main>
<div class="product-container">
<div class="product-image">
<img src="harry.jpg" alt="Harry Potter Merchandise Here!">
</div>
<div class="product-details">
<h2>Harry Potter Merchandise Here!</h2>
<p>Gryfindor Mug</p>
<p class="price">Rp 150,000</p>
<p>Slytherin Mug</p>
<p class="price">Rp 150.000</p>
<p>Hufflepuff Mug</p>
<p class="price">Rp 150,000</p>
<p>Ravenclaw Mug</p>
<p class="price">Rp 150.000</p>
<button class="buy-now">Buy Now</button>
</div>
</div>
</main>
<footer>
<div class="container">
<p>Panca's © 2024</p>
</div>
</footer>
</body>
</html>
css :
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Garamond, serif;
line-height: 1.6;
background-color: #ebb6b6;
color: #333;
}
header {
background: #740303;
color: #fcf22e;
padding-top: 10px;
min-height: 50px;
border-bottom: #740303 3px solid;
}
header a {
color: #ebb6b6;
text-decoration: none;
text-transform: uppercase;
font-size: 16px;
}
header h1 {
text-align: center;
width: 100%;
margin: 0;
}
.product-container {
display: flex;
gap: 50px; /* Creates 50px space between the image and text */
align-items: flex-start; /* Align items to the top */
padding: 20px;
background-color: #ebb6b6;
margin-top: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.product-image img {
width: 300px;
border-radius: 8px;
margin-left: 400px;
}
.product-details {
max-width: 600px;
margin-left: 50px;
}
.product-details p {
margin-bottom: 20px;
}
.price {
font-size: 15px;
font-weight: bold;
margin-bottom: 15px;
}
.buy-now {
background-color: #740303;
color: #fcf22e;
border: none;
padding: 10px 20px;
text-transform: uppercase;
cursor: pointer;
border-radius: 5px;
}
footer {
text-align: center;
padding: 20px;
background-color: #740303;
color: #fcf22e;
margin-top: 20px;
border-top: #740303 3px solid;
}
Tidak ada komentar:
Posting Komentar