Amzon Product Code File
Amzon Product Code File
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ten Products Grid</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
display: flex;
justify-content: center;
}
.product-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
max-width: 1200px;
}
.product {
display: flex;
width: 100%;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.product-images {
flex: 1 1 40%;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.main-image {
width: 100%;
max-width: 400px;
border-radius: 10px;
transition: transform 0.3s ease;
}
.thumbnail-images {
margin-top: 10px;
display: flex;
gap: 10px;
}
.thumbnail-images img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 5px;
cursor: pointer;
transition: transform 0.3s ease;
}
.thumbnail-images img:hover {
transform: scale(1.1);
}
.product-details {
flex: 1 1 60%;
padding: 20px;
}
.product-title {
font-size: 24px;
margin-bottom: 10px;
}
.product-price {
font-size: 20px;
color: #b12704;
margin-bottom: 10px;
}
.product-description {
margin-bottom: 20px;
}
.order-button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.order-button:hover {
background-color: #0056b3;
}
/* Responsive Design */
@media (max-width: 768px) {
.product {
flex-direction: column;
}
.product-images {
max-width: 100%;
text-align: center;
}
}
</style>
</head>
<body>
<div class="product-container">
<!-- Product 1 -->
<div class="product">
<div class="product-images">
<img id="mainImage1" src="product-1.jpg" alt="Product 1 Image"
class="main-image">
<div class="thumbnail-images">
<img src="product-1.jpg" alt="Thumbnail Image 1"
onclick="changeImage('product-1.jpg', 'mainImage1')">
<img src="product-2.jpg" alt="Thumbnail Image 2"
onclick="changeImage('product-2.jpg', 'mainImage1')">
<img src="product-3.jpg" alt="Thumbnail Image 3"
onclick="changeImage('product-3.jpg', 'mainImage1')">
</div>
</div>
<div class="product-details">
<h2 class="product-title">Product 1 Name</h2>
<p class="product-price">$49.99</p>
<p class="product-description">Description of Product 1.</p>
<button class="order-button"
onclick="location.href='https://forms.gle/your-google-form-link'">Order
Now</button>
</div>
</div>
<script>
function changeImage(image, targetId) {
document.getElementById(targetId).src = image;
}
</script>
</body>
</html>