-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
313 lines (291 loc) · 13.6 KB
/
index.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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>coffee</title>
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,400;0,700;1,300;1,700&display=swap" rel="stylesheet" />
<!-- link mobile menu -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- Feather Icons -->
<script src="https://unpkg.com/feather-icons"></script>
<!-- My Style -->
<link rel="stylesheet" href="css/style.css" />
<!-- alpine js -->
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
<!-- app -->
<script src="src/app.js"></script>
</head>
<body>
<!-- navbar start -->
<nav class="navbar" x-data>
<a href="#" class="navbar-logo">Coffee<span>shop</span></a>
<div class="navbar-nav">
<a href="#home">Home</a>
<a href="#about">Tentang Kami</a>
<a href="#menu">Menu</a>
<a href="#products">Produk</a>
<a href="#contact">Kontak</a>
</div>
<div class="navbar-extra">
<a href="#search-button" id="search-button"><i data-feather="search"></i></a>
<a href="#shopping-button" id="shopping-button">
<i data-feather="shopping-cart"></i>
<span class="quantity-badge" x-show="$store.cart.quantity" x-text="$store.cart.quantity"></span>
</a>
<a href="#hamburger-menu" id="hamburger-menu" class="hamburger-menu"><i data-feather="menu"></i></a>
</div>
<!-- navbar search form star -->
<div class="search-form">
<input type="search" id="search-box" placeholder="search-here " />
<label for="search-box"><i data-feather="search"></i></label>
</div>
<!-- navbar search form end -->
<!-- shopping card start -->
<div class="shopping-cart" id="shopping-cart">
<template x-for="(item, index) in $store.cart.items" x-keys="index">
<div class="cart-item">
<img :src="`img/products/${item.img}`" :alt="item.name" />
<div class="item-detail">
<h3 x-text="item.name"></h3>
<div class="item-price">
<span x-text="rupiah(item.price)"></span> ×
<button id="remove" @click="$store.cart.remove(item.id)">−</button>
<span x-text="item.quantity"></span>
<button id="add" @click="$store.cart.add(item)">+</button>=
<span x-text="rupiah(item.total)"></span>
</div>
</div>
</div>
</template>
<h4 x-show="!$store.cart.items.length" style="margin-top: 1rem;">Cart is Empty</h4>
<h4 x-show="$store.cart.items.length">Total : <span x-text="rupiah($store.cart.total)"></span></h4>
<div class="form-container">
<form action="" id="chekoutFrom" x-show="$store.cart.items.length">
<h5>Customer Detail</h5>
<label for="name">
<span>Name</span>
<input type="text" name="name" id="name">
</label>
<label for="email">
<span>Email</span>
<input type="email" name="email" id="email">
</label>
<label for="phone">
<span>Phone</span>
<input type="number" name="phone" id="phone" autocomplete="off">
</label>
<button class="chekout-button" type="submit" id="chekout-button" value="Chekout">Chekout</button>
</form>
</div>
</div>
<!-- shopping card end -->
</nav>
<!-- navbar end -->
<!-- hiro section star -->
<section class="hiro" id="home">
<main class="content">
<h1>Nikmati Secangkir <span>Kopi</span></h1>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Similique, consectetur!</p>
</main>
</section>
<!-- hiro section end -->
<!-- About section start -->
<section id="about" class="about">
<h2><span>Tentang</span> Kami</h2>
<div class="row">
<div class="about-img">
<img src="img/tentangKami.jpg" alt="Tentang Kami" />
</div>
<div class="content">
<h3>Kenapa memilih kopi kami</h3>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Inventore laborum repellendus et cumque voluptatum dignissimos?</p>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ipsa unde nemo optio ad eum eveniet non corrupti temporibus, repellendus pariatur.</p>
</div>
</div>
</section>
<!-- About section end -->
<!-- menu section star -->
<section id="menu" class="menu">
<h2><span>Menu</span> Kami</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Iste totam accusantium vel iusto velit repudiandae.</p>
<div class="row">
<div class="menu-card">
<img src="img/daftarmenu/menu4.jpg" alt="coffee" class="menu-card-img" />
<h3 class="menu-card-title">- coffee -</h3>
<p class="menu-card-price">IRD 25K</p>
</div>
<div class="menu-card">
<img src="img/daftarmenu/menu4.jpg" alt="coffee" class="menu-card-img" />
<h3 class="menu-card-title">- coffee -</h3>
<p class="menu-card-price">IRD 25K</p>
</div>
<div class="menu-card">
<img src="img/daftarmenu/menu4.jpg" alt="coffee" class="menu-card-img" />
<h3 class="menu-card-title">- coffee -</h3>
<p class="menu-card-price">IRD 25K</p>
</div>
<div class="menu-card">
<img src="img/daftarmenu/menu4.jpg" alt="coffee" class="menu-card-img" />
<h3 class="menu-card-title">- coffee -</h3>
<p class="menu-card-price">IRD 25K</p>
</div>
<div class="menu-card">
<img src="img/daftarmenu/menu4.jpg" alt="coffee" class="menu-card-img" />
<h3 class="menu-card-title">- coffee -</h3>
<p class="menu-card-price">IRD 25K</p>
</div>
<div class="menu-card">
<img src="img/daftarmenu/menu4.jpg" alt="coffee" class="menu-card-img" />
<h3 class="menu-card-title">- coffee -</h3>
<p class="menu-card-price">IRD 25K</p>
</div>
<div class="menu-card">
<img src="img/daftarmenu/menu4.jpg" alt="coffee" class="menu-card-img" />
<h3 class="menu-card-title">- coffee -</h3>
<p class="menu-card-price">IRD 25K</p>
</div>
</div>
</section>
<!-- menu section end -->
<!-- produk star -->
<section class="products" id="products" x-data="products">
<h2>Produk <span>Kami</span></h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad, consequatur ratione nisi id debitis ipsam.</p>
<div class="row">
<template x-for="(item, index) in items" x-key="index">
<div class="product-card">
<div class="product-icons">
<a href="#" @click.prevent="$store.cart.add(item)">
<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<use href="img/feather-sprite.svg#shopping-cart" />
</svg>
</a>
<a href="#" class="item-detail-button">
<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="item-detail-button" >
<use href="img/feather-sprite.svg#eye"/>
</svg>
</a>
</div>
<div class="product-image">
<img :src="`img/products/${item.img}`" :alt="item.name" />
</div>
<div class="product-content">
<h3 x-text="item.name"></h3>
<div class="product-stars">
<svg width="24" height="24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<use href="img/feather-sprite.svg#star" />
</svg>
<svg width="24" height="24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<use href="img/feather-sprite.svg#star" />
</svg>
<svg width="24" height="24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<use href="img/feather-sprite.svg#star" />
</svg>
<svg width="24" height="24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<use href="img/feather-sprite.svg#star" />
</svg>
<svg width="24" height="24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<use href="img/feather-sprite.svg#star" />
</svg>
</div>
<div class="product-price"><span x-text="rupiah(item.price)"></span></div>
</div>
</div>
</template>
</div>
</section>
<!-- produk end -->
<!-- contact section start -->
<section id="contact" class="contact">
<h2><span>Kontak</span> Kami</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dicta, debitis.</p>
<div class="row">
<iframe
src="https://www.google.com/maps/embed?pb=!1m26!1m12!1m3!1d214.20269377034722!2d112.05501757743711!3d-7.231801476057046!
2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m11!3e6!4m3!3m2!1d-7.2317686!2d112.05509479999999!4m5!1s0x2e78276868ebbf6f%3A0x
5e93d98074d5b6d0!2sQ394%2B736%20SUHA%20PPOB%2C%20Jl.%20Raya%20Mataram%2C%20Medara%2C%20Sumberharjo%2C%20Kec.%20Sumberejo%2C%20Kabupaten%20Bojonegoro%2C%20Jawa%20Timur%2062191!3m2!1d-7.2318364!2d112.05514289999999!5e1!3m2!1sid!2sid!4v1698265401724!5m2!1sid!2sid"
allowfullscreen=""
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
class="map"
></iframe>
<form action="">
<div class="input-group">
<i data-feather="user"></i>
<input type="text" placeholder="nama" />
</div>
<div class="input-group">
<i data-feather="mail"></i>
<input type="text" placeholder="email" />
</div>
<div class="input-group">
<i data-feather="phone"></i>
<input type="text" placeholder="No Hp" />
</div>
<button type="submit" class="btn"><h1>Kirim Pesan</h1></button>
</form>
</div>
</section>
<!-- contact section end -->
<!-- footer start -->
<footer>
<div class="sosial">
<a href="https://www.instagram.com/iqbal.hikm/"><i data-feather="instagram"></i></a>
<a href=""><i data-feather="twitter"></i></a>
<a href="https://www.linkedin.com/in/m-iqbal-fatkhul-hikam-89a474255?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=android_app"><i data-feather="linkedin"></i></a>
</div>
<div class="links">
<a href="#home">Home</a>
<a href="#about">Tentang Kami</a>
<a href="#menu">Menu</a>
<a href="#products">Produk</a>
<a href="#contact">Kontak</a>
</div>
<div class="credit">
<p>Creatied by <a href="https://www.instagram.com/iqbal.hikm/">Iqbal.hikm</a>. | © 2023.</p>
</div>
</footer>
<!-- footer end -->
<!-- modal box item detail start -->
<div class="modal" id="item-detail-modal">
<div class="modal-container">
<a href="#close" class="close-icon"><i data-feather="x"></i></a>
<div class="modal-content">
<img src="img/products/produk.jpg" alt="product 1" />
<div class="product-content">
<h3>Product 1</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque distinctio officiis optio voluptas exercitationem, dicta eaque fugit nesciunt, pariatur delectus error vitae. Labore, totam impedit.</p>
<div class="product-stars">
<i data-feather="star" class="star-full"></i>
<i data-feather="star" class="star-full"></i>
<i data-feather="star" class="star-full"></i>
<i data-feather="star" class="star-full"></i>
<i data-feather="star"></i>
</div>
<div class="product-price">IDR 30K <span>IDR 55K</span></div>
<a href="#btn"
><button class="btn"><i data-feather="shopping-cart"></i><span>add to cart</span></button>
</a>
</div>
</div>
</div>
</div>
<!-- modal box item detail end -->
<!-- Feather Icons -->
<script>
feather.replace();
</script>
<!-- my js -->
<script src="js/script.js"></script>
</body>
</html>