-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarketplace.html
More file actions
112 lines (93 loc) · 1.99 KB
/
marketplace.html
File metadata and controls
112 lines (93 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Marketplace</title>
<style>
/* CSS styles */
body {
font-family: Arial, sans-serif;
margin: 0;
background-color: #f2f2f2;
}
.header {
background-color: #000;
color: #fff;
padding: 20px;
text-align: center;
}
.header h1 {
margin: 0;
color: #fff;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 20px;
}
.box {
width: 200px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
padding: 20px;
margin: 10px;
}
.box h3 {
margin: 0 0 10px;
}
.box p {
margin: 0 0 20px;
}
.box button {
padding: 8px 12px;
background-color: #000;
color: #fff;
border: none;
cursor: pointer;
}
.cart-button {
position: fixed;
bottom: 20px;
right: 20px;
padding: 8px 12px;
background-color: #000;
color: #fff;
border: none;
cursor: pointer;
}
</style>
</head>
<body>
<div class="header">
<h1>MARKETPLACE</h1>
</div>
<div class="container">
<div class="box">
<h3>Product 1</h3>
<p>Description of Product 1</p>
<button>Add to Cart</button>
</div>
<div class="box">
<h3>Product 2</h3>
<p>Description of Product 2</p>
<button>Add to Cart</button>
</div>
<div class="box">
<h3>Product 3</h3>
<p>Description of Product 3</p>
<button>Add to Cart</button>
</div>
<!-- Add more box elements as needed -->
</div>
<button class="cart-button" onclick="goToCheckout()">Cart</button>
<script>
function goToCheckout() {
// Redirect to the checkout page
window.location.href = "https://lolyv.github.io/anotha1.github.io/checkout.html";
}
</script>
</body>
</html>