-
Notifications
You must be signed in to change notification settings - Fork 0
/
product2.html
166 lines (154 loc) · 4.53 KB
/
product2.html
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bursa Makanan - Produk</title>
<link rel="stylesheet" href="css/product.css">
<style>
.header-container {
background-color: #4CAF50;
color: white;
padding: 10px 0;
}
.header {
text-align: left;
font-size: 24px;
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
margin-top: 10px;
}
.nav-menu {
display: flex;
gap: 10px;
}
.nav-menu a {
color: white;
text-decoration: none;
font-size: 18px;
padding: 5px 10px;
}
.nav-menu a:hover {
text-decoration: underline;
}
.search-bar {
flex: 1;
display: flex;
justify-content: flex-start;
}
.search-bar input {
width: 50%;
padding: 10px;
font-size: 16px;
}
.container {
max-width: 900px;
margin: 20px auto;
background-color: white;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 50px;
}
.product {
width: 40%;
background-color: #f0f0f0;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.product img {
width: 100%;
border-radius: 5px;
}
.product h3, .product p {
text-align: center;
}
.order-summary {
width: 55%;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.order-summary .promo {
background-color: #f0f0f0;
border: none;
padding: 10px;
width: 100%;
margin-bottom: 20px;
cursor: pointer;
}
.summary, .total {
margin-bottom: 20px;
}
.summary h4, .total h3 {
margin: 0 0 10px 0;
}
.summary p, .total p {
margin: 5px 0;
}
.total button {
background-color: #4CAF50;
color: white;
padding: 10px;
border: none;
cursor: pointer;
width: 100%;
}
.total button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="header-container">
<a href="index.html" style="text-decoration: none; color: inherit;">
<div class="header">Bursa Makanan</div>
</a>
<div class="nav-container">
<div class="search-bar">
<input type="text" placeholder="Cari di Bursa Makanan...">
</div>
<div class="nav-menu">
<a href="#notifikasi">Notifikasi</a>
<a href="menu.html">Pesanan</a>
<a href="#jualan">Jualan</a>
<a href="#profil">Profil</a>
</div>
</div>
</div>
<div class="container">
<div class="product" id="produk_2">
<img src="uploads/produk_2/tiramisu.jpg" alt="Produk 1">
<h3>J.CO Donuts</h3>
<p>Deskripsi Produk 1<br>Donat rasa tiramisu 1 kotak isi 4</p>
</div>
<div class="order-summary">
<button class="promo">Makin hemat pakai promo</button>
<div class="summary">
<h4>Ringkasan Belanja</h4>
<p>Total Belanja</p>
<p>Total Harga (1 Barang) Rp 13,000.00</p>
<p>Total Proteksi Rp 1.000,00</p>
</div>
<div class="summary">
<h4>Ringkasan Belanja</h4>
<p>Biaya Layanan Rp 2.000,00</p>
<p>Biaya Jasa Aplikasi Rp 2.000,00</p>
</div>
<div class="total">
<h3>Total Tagihan Rp 18.000,00</h3>
<form action="bayar2.html" method="POST">
<input type="hidden" name="product_id" value="1">
<input type="hidden" name="total_tagihan" value="55000">
<button type="submit">Beli</button>
</form>
</div>
</div>
</div>
</body>
</html>