CODE:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Blogger Shop</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
h1 {
text-align: center;
color: #333;
}
.product {
max-width: 600px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-top: 20px;
}
#productImage {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
#productName {
text-align: center;
color: #333;
margin-top: 10px;
}
#productColor {
text-align: center;
color: #666;
}
button {
display: block;
width: 100%;
padding: 10px;
background-color: #4caf50;
color: #fff;
border: none;
cursor: pointer;
font-size: 16px;
margin-top: 15px;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<h1>Welcome to Your Blogger Shop</h1>
<div class="product">
<img id="productImage" src="product image" alt="Product Image">
<h2 id="productName">Stylish Product Name</h2>
<p id="productColor">Product Color: Blue</p>
<button onclick="addToCart()">Add to Cart</button>
</div>
<script>
function addToCart() {
var productName = document.getElementById('productName').innerText;
var productColor = document.getElementById('productColor').innerText;
var data = {
name: productName,
color: productColor,
};
var xhr = new XMLHttpRequest();
xhr.open('POST', 'your-server-endpoint', true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify(data));
window.location.href = 'https://www.toprevenuegate.com/n1qbsqzeup?key=5c340754399778b1d1c57f71b5681735';
}
</script>
</body>
</html>