-
Notifications
You must be signed in to change notification settings - Fork 1
/
cart.html
273 lines (269 loc) · 11.9 KB
/
cart.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE html>
<html>
<head>
<title>Customesia</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link href="//fonts.googleapis.com/css?family=Poppins:300,400,500,600" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/animate.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/customesia.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script>
var app = angular.module("myShoppingList", []);
app.controller("myCtrl", function($scope) {
$scope.products = [
["The Hoodie Biru Muda", "assets/img/hoodie/hoodie_birumuda.png", 189000, 1],
["The Hoodie Biru Tua", "assets/img/hoodie/hoodie_birutua.png", 189000, 1],
["The Kaos Hijau", "assets/img/kaos/kaos_hijau.png", 157000, 1],
["The Mugs Kerens", "assets/img/mug/mug_putih.png", 55000, 2],
["The Totebag Kerens", "assets/img/totebag/totebag.png",114000, 1]
];
$scope.addItem = function () {
$scope.products.push($scope.addMe);
}
$scope.removeItem = function(x) {
$scope.products.splice(x, 1);
}
$scope.total = function() {
var total = 0;
angular.forEach($scope.products, function(x) {
total += x[3] * x[2];
})
return total;
}
});
</script>
</head>
<body>
<header id="header" >
<div>
<div id="logoAndNav" class="container">
<nav class="js-mega-menu navbar navbar-expand-md u-header__navbar">
<a class="navbar-brand" href="index.html" aria-label="Front">
<img src="assets/img/costumnesia-fixx.png" width="200">
</a>
<button type="button" class="navbar-toggler btn u-hamburger"
aria-label="Toggle navigation"
aria-expanded="false"
aria-controls="navBar"
data-toggle="collapse"
data-target="#navBar">
<span id="hamburgerTrigger" class="u-hamburger__box">
<span class="u-hamburger__inner"></span>
</span>
</button>
<div id="navBar" class="collapse navbar-collapse py-3">
<ul class="navbar-nav ml-lg-auto">
<li class="nav-item mx-2">
<a href="katalog.html" class="nav-link">KATALOG</a>
</li>
<li class="nav-item mx-2">
<a href="#" class="nav-link">PROMO</a>
</li>
<li class="nav-item mx-2">
<a href="login.html" class="nav-link">LOGIN</a>
</li>
<li class="nav-item mx-2">
<a href="register.html" class="nav-link"><i class="fa fa-user"></i> REGISTER</a>
</li>
<li class="nav-item ml-2">
<a href="desain.html" class="nav-link btn btn-outline-primary"><i class="fa fa-pencil"></i> BUAT DESAIN</a>
</li>
</ul>
</div>
</nav>
<div class="border-bottom-1"></div>
<div id="#navBar" class="navbar-expand-md">
<div class="nav-scroller py-1 mb-2">
<nav class="d-flex justify-content-between">
<a class="p-2 text-muted nav-item" href="desain-kaos.html">KAOS</a>
<a class="p-2 text-muted nav-item" href="desain-jaket.html">HODIE & JAKET</a>
<a class="p-2 text-muted nav-item" href="desain-totebag.html">TOTE BAG</a>
<a class="p-2 text-muted nav-item" href="desain-bantal.html">BANTAL</a>
<a class="p-2 text-muted nav-item" href="desain-case.html">CASE HP</a>
<a class="p-2 text-muted nav-item" href="desain-mug.html">MUG</a>
</nav>
</div>
</div>
</div>
</div>
</header>
<main id="content" role="main" ng-app="myShoppingList" ng-controller="myCtrl">
<div class="u-bg-light-blue-50">
<div class="container u-space-1">
<div class="mb-6">
<h1 class="h2 font-weight-normal mb-3">Keranjang Belanja</h1>
</div>
<div class="table-responsive-sm mb-6">
<table class="table table-borderless bg-white mb-0">
<thead>
<tr>
<th>Item</th>
<th>Jumlah</th>
<th class="text-right">Harga</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="x in products">
<td>
<div class="media align-items-center">
<div class="d-flex mr-3">
<img class="rounded" src="{{x[1]}}" width="50" height="50" alt="{{x[1]}}">
</div>
<div class="media-body">
<h2 class="h6 mb-0">{{x[0]}}</h2>
</div>
</div>
</td>
<td class="align-middle">
<div class="input-group u-form" style="width: 50px">
<input class="form-control" ng:model="x[3]" type="number" value="{{x[3]}}" min="1" max="100">
</div>
</td>
<td class="text-right">{{x[2] * x[3] | currency :"Rp "}}</td>
<td class="align-middle text-center">
<button type="button" class="close float-none" ng-click="removeItem($index)">
<span aria-hidden="true">×</span>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="row justify-content-lg-between mt-2">
<div class="col-md-6 col-lg-5 mb-7 mb-md-0">
<div class="bg-white rounded p-3">
<div class="custom-control custom-radio d-flex align-items-center small text-muted">
<input type="radio" class="custom-control-input" id="deliveryRadio1" name="deliveryRadio" checked>
<label class="custom-control-label ml-1" for="deliveryRadio1">
<span class="d-block h6 text-dark font-weight-normal mb-1"><strong class="text-dark">IDR 40.000</strong> - Standard delivery</span>
<span class="d-block">Pengiriman membutuhkan waktu 2-3 hari</span>
</label>
</div>
</div>
<hr class="my-0">
<div class="bg-white rounded p-3">
<div class="custom-control custom-radio d-flex align-items-center small text-muted">
<input type="radio" class="custom-control-input" id="deliveryRadio2" name="deliveryRadio">
<label class="custom-control-label ml-1" for="deliveryRadio2">
<span class="d-block h6 text-dark font-weight-normal mb-1"><strong class="text-dark">IDR 60.000</strong> - Express delivery</span>
<span class="d-block">Pengiriman membutuhkan waktu 1-2 hari</span>
</label>
</div>
</div>
</div>
<div class="col-md-6 col-lg-5 mt-md-auto">
<div class="media float-md-right">
<div class="d-flex flex-column mr-4">
<h3 class="h5 mb-0">Total: {{total() | currency : "Rp " }}</h3>
</div>
<div class="media-body">
<a class="btn btn-primary u-btn-primary transition-3d-hover" href="checkout.html">Checkout</a>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="container">
<div class="row justify-content-lg-between u-space-2">
<div class="col-12 col-sm-4">
<div class="mb-2">
<img src="assets/img/costumnesia-fixx.png" width="150">
</div>
<p>Customesia adalah perusahaan di bidang industri kreatif yang fokus pada produk-produk merchandise. Sesuai dengan visi dan misi kami yang ingin memberikan kepuasan terhadap pelanggan dengan cara merealisasikan sebuah gambar digital menjadi produk yang bermakna.</p>
</div>
<div class="col-6 col-sm-4 col-lg-3 order-lg-2 ml-lg-auto mb-7 mb-lg-0">
<!-- Title -->
<h3 class="h6 font-weight-bold">Account</h3>
<!-- End Title -->
<!-- List -->
<ul class="list-unstyled u-list">
<li><a class="u-list__link" href="cart.html">Keranjang Belanja</a></li>
<li><a class="u-list__link" href="#">Metode Pengiriman</a></li>
<li><a class="u-list__link" href="#">Lacak Pengiriman</a></li>
<li><a class="u-list__link" href="konfirmasi.html">Konfirmasi Pemesanan</a></li>
<li><a class="u-list__link" href="#">Bantuan Pengguna</a></li>
</ul>
</div>
<div class="col-6 col-sm-4 col-lg-3 order-lg-3 mb-7 mb-lg-0">
<!-- Title -->
<h3 class="h6 font-weight-bold">Company</h3>
<ul class="list-unstyled u-list">
<li><a class="u-list__link" href="#">Tentang Kami</a></li>
<li><a class="u-list__link" href="#">Kontak</a></li>
<li><a class="u-list__link" href="#">Syarat dan Ketentuan</a></li>
<li><a class="u-list__link" href="#">FAQ</a></li>
<li><a class="u-list__link" href="#">Privacy Policy</a></li>
</ul>
</div>
</div>
<div class="row u-space-1">
<div class="col-md-4 mb-4 mb-lg-0">
<ul class="list-inline mb-0">
<li class="list-inline-item">
<a class="u-bg-transparent u-icon u-icon-secondary--air" href="#">
<span class="fa fa-facebook-f u-icon__inner"></span>
</a>
</li>
<li class="list-inline-item">
<a class="u-bg-transparent u-icon u-icon-secondary--air" href="#">
<span class="fa fa-google u-icon__inner"></span>
</a>
</li>
<li class="list-inline-item">
<a class="u-bg-transparent u-icon u-icon-secondary--air" href="#">
<span class="fa fa-twitter u-icon__inner"></span>
</a>
</li>
<li class="list-inline-item">
<a class="u-bg-transparent u-icon u-icon-secondary--air" href="#">
<span class="fa fa-github u-icon__inner"></span>
</a>
</li>
</ul>
</div>
<div class="border-bottom-1"></div>
<div class="col-md-8 text-md-right">
<!-- Links -->
<ul class="list-inline">
<li class="list-inline-item u-list__item">
<a class="u-list__link" href="#">Privacy & policy</a>
</li>
<li class="list-inline-item u-list__item">
<a class="u-list__link" href="#">Terms & conditions</a>
</li>
<li class="list-inline-item u-list__item">
<a class="u-list__link" href="#">Karir</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<a class="btn btn-success scroll-top" href="https://api.whatsapp.com/send?phone=089618676114&text=Halo,%20saya%20masih%20bingung%20dengan%20customnesia,%20bisa%20dijelaskan%20cara%20pesannya?" target="_blank">
<i class="fa fa-whatsapp"></i> Support
</a>
</footer>
<script type="text/javascript" src="assets/js/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
$('.scroll-top').fadeIn();
} else {
$('.scroll-top').fadeOut();
}
});
});
</script>
</body>
</html>