-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
474 lines (470 loc) · 15.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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
<!doctype html>
<html
lang="fa"
dir="rtl">
<head>
<!-- Meta Tags -->
<meta charset="UTF-8" />
<link
rel="icon"
type="image/svg+xml"
href="images/logo.png" />
<link
rel="manifest"
href="/manifest.json" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0 user-scalable=no" />
<meta
name="title"
content="vistora" />
<meta
name="description"
content="فاکتور ساز آنلاین محصولات طراوت به آسانی فاکتور های خود را ثبت و بلافاصله چاپ نمایید" />
<meta
name="keywords"
content="فاکتور،طراوت،فاکتور ساز،فاکتور ساز آنلاین،لبنیات" />
<meta
name="robots"
content="index, follow" />
<meta
http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<meta
name="author"
content="Mahdi rostami" />
<!-- Open Graph / Social Media Meta Tags -->
<meta
property="og:title"
content="Vistora - فاکتور ساز آنلاین" />
<meta
property="og:description"
content="فاکتور ساز آنلاین محصولات طراوت به آسانی فاکتور های خود را ثبت و بلافاصله چاپ نمایید" />
<meta
property="og:type"
content="website" />
<meta
property="og:image"
content="/images/logo.png" />
<!-- Title and Favicon -->
<title>Vistora - فاکتور ساز آنلاین</title>
<!-- External Resources -->
<script
type="module"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css" />
<!-- Internal Styles -->
<link
rel="stylesheet"
href="/src/css/style.css" />
</head>
<body>
<!-- Main Application Container -->
<div
id="app"
role="application"
class="print:hidden">
<v-header></v-header>
<!-- -->
<main
role="main"
class="cr mb-12 max-h-screen">
<!-- Search Section -->
<section
class="relative flex items-center w-full mb-16"
aria-label="جستجو">
<label
for="search"
class="sr-only"
>جستجو بر اساس نام</label
>
<input
type="search"
name="search"
id="search"
placeholder="جستجو بر اساس نام"
class="border-2 border-solid border-black/10 rounded-md w-full p-4 pl-10 appearance-none outline-none shadow-lg shadow-black/5 focus:border-primary placeholder:opacity-100 transition-colors duration-200"
aria-label="جستجو بر اساس نام" />
<ion-icon
name="search-outline"
class="absolute left-3 text-2xl"
aria-hidden="true"></ion-icon>
</section>
<!-- -->
<section
class="empty-section flex flex-col justify-center items-center gap-8 p-8 max-[480px]:p-4 rounded-md border-[4px] border-dashed border-black/20"
aria-label="حالت خالی">
<img
src="/images/empty.webp"
alt="حالت خالی"
class="w-56 drop-shadow-2xl"
loading="lazy" />
</section>
<!-- -->
<section
class="result-container grid grid-cols-2 gap-8 justify-center items-center max-[991px]:grid-cols-1 pb-30"
aria-label="نتایج جستجو"></section>
<!-- -->
</main>
<footer class="fixed bottom-0 right-0 w-full">
<div class="flex justify-center items-center w-full">
<button
id="create-invoice"
class="w-full flex justify-center items-center gap-2 text-2xl cursor-pointer bg-primary text-white py-4 hover:bg-primary/90 transition-colors duration-200"
title="ایجاد فاکتور"
aria-label="ایجاد فاکتور جدید">
<span>ایجاد فاکتور</span>
</button>
</div>
</footer>
</div>
<!-- -->
<div
class="invoice-detail p-2 py-0 inset-0 min-h-screen fixed overflow-auto bg-white hidden print:hidden"
role="dialog"
aria-labelledby="invoice-detail-title"
aria-modal="true">
<header class="flex justify-between items-center mb-8">
<div class="flex -mx-2">
<button
title="بستن"
id="close-invoice-detail"
class="bg-primary flex justify-center items-center text-white text-2xl p-4 hover:bg-primary/90 transition-colors duration-200"
aria-label="بستن">
<ion-icon
name="close-outline"
aria-hidden="true"></ion-icon>
</button>
</div>
<h1
id="invoice-detail-title"
class="text-2xl font-dana-bold font-bold min-[991px]:hidden">
مشخصات فاکتور
</h1>
</header>
<!-- -->
<div class="mt-12">
<h1 class="text-2xl font-dana-bold font-bold text-center mb-8 max-[991px]:hidden">مشخصات فاکتور</h1>
<form
class="grid grid-cols-1 gap-4 pb-30 min-[991px]:grid-cols-2 max-w-7xl mx-auto"
aria-label="فرم مشخصات فاکتور">
<div class="flex justify-center items-center w-full relative">
<div
class="w-full border-2 border-solid border-black/10 bg-gray-100 p-2 py-3 rounded-md pr-10 pointer-events-none select-none"
id="date"
data-req="false"
role="status"
aria-live="polite"></div>
<ion-icon
name="calendar-outline"
class="absolute right-2 text-2xl"
aria-hidden="true"></ion-icon>
</div>
<div class="flex justify-center items-center w-full relative">
<label
for="shop-name"
class="sr-only"
>نام فروشگاه</label
>
<input
type="text"
placeholder="نام فروشگاه"
id="shop-name"
name="shop-name"
class="w-full border-2 border-solid border-black/10 p-2 py-3 rounded-md pr-10 outline-none focus:border-primary placeholder:opacity-100 transition-colors duration-200"
data-req="true"
autocomplete="name"
required />
<ion-icon
name="cart-outline"
class="absolute right-2 text-2xl"
aria-hidden="true"></ion-icon>
</div>
<div class="flex justify-center items-center w-full relative">
<label
for="tel"
class="sr-only"
>شماره تلفن</label
>
<input
type="tel"
placeholder="شماره تلفن (اختیاری)"
id="tel"
name="tel"
class="text-left w-full border-2 border-solid border-black/10 p-2 py-3 rounded-md pr-10 outline-none focus:border-primary placeholder:opacity-100 placeholder:text-right transition-colors duration-200"
data-req="false"
autocomplete="tel" />
<ion-icon
name="call-outline"
class="absolute right-2 text-2xl"
aria-hidden="true"></ion-icon>
</div>
<!-- -->
<div class="flex justify-center items-center w-full relative">
<label
for="discount"
class="sr-only"
>درصد تخفیف</label
>
<input
type="number"
placeholder="درصد تخفیف (اختیاری)"
id="discount"
name="discount"
class="w-full border-2 border-solid border-black/10 p-2 py-3 rounded-md pr-10 outline-none focus:border-primary placeholder:opacity-100 transition-colors duration-200"
data-req="false"
autocomplete="off"
min="0"
max="100" />
<ion-icon
name="ticket-outline"
class="absolute right-2 text-2xl"
aria-hidden="true"></ion-icon>
</div>
<!-- -->
<div class="flex justify-center items-center w-full relative">
<label
for="address"
class="sr-only"
>آدرس فروشگاه</label
>
<input
type="text"
placeholder="آدرس فروشگاه (اختیاری)"
id="address"
name="address"
class="w-full border-2 border-solid border-black/10 p-2 py-3 rounded-md pr-10 outline-none focus:border-primary placeholder:opacity-100 transition-colors duration-200"
data-req="false"
autocomplete="street-address" />
<ion-icon
name="location-outline"
class="absolute right-2 text-2xl"
aria-hidden="true"></ion-icon>
</div>
</form>
<div class="flex justify-center items-center fixed right-0 bottom-0 w-full">
<button
id="next"
class="w-full flex justify-center items-center gap-2 cursor-pointer bg-blue-500 text-white text-2xl py-4 hover:bg-blue-600 transition-colors duration-200"
title="ذخیره و ادامه"
aria-label="ذخیره و ادامه">
<span>ذخیره و ادامه</span>
<ion-icon
name="arrow-forward-outline"
aria-hidden="true"></ion-icon>
</button>
</div>
</div>
</div>
<!-- -->
<div
class="add-product inset-0 fixed overflow-auto bg-white hidden print:hidden"
role="dialog"
aria-labelledby="product-list-title"
aria-modal="true">
<header class="flex items-center divide-x-2 divide-solid divide-white border-b-2 border-solid border-b-black/10">
<div class="flex">
<button
title="بستن"
id="close-product-list"
class="bg-primary flex justify-center items-center text-white text-2xl p-4 hover:bg-primary/90 transition-colors duration-200"
aria-label="بستن">
<ion-icon
name="close-outline"
aria-hidden="true"></ion-icon>
</button>
</div>
<div class="flex w-full">
<button
title="ذخیره فاکتور"
id="save-invoice"
class="bg-blue-600 w-full flex justify-center items-center text-white text-2xl p-4 hover:bg-blue-700 transition-colors duration-200"
aria-label="ذخیره فاکتور">
<ion-icon
name="save-outline"
aria-hidden="true"></ion-icon>
</button>
</div>
<div class="flex">
<button
title="بازگشت به عقب"
id="back-button"
class="bg-blue-800 w-full flex justify-center items-center text-white text-2xl p-4 hover:bg-blue-900 transition-colors duration-200"
aria-label="بازگشت به عقب">
<ion-icon
name="arrow-forward-outline"
aria-hidden="true"></ion-icon>
</button>
</div>
</header>
<div id="top"></div>
<div class="grid grid-cols-12 lg:grid-cols-1">
<nav
class="col-span-4 flex flex-col divide-y-2 divide-solid divide-black/10 h-max sticky z-10 top-0 bg-gray-50 lg:flex-row"
aria-label="دستهبندی محصولات">
<button
data-category="milk"
class="flex flex-col gap-2 justify-center items-center py-4 w-full bg-black/10 select-none cursor-pointer"
aria-label="محصولات شیر">
<span class="text-center">شیر</span>
<img
src="/images/icons/milk.svg"
alt=""
class="brightness-0"
aria-hidden="true" />
</button>
<li
data-category="cream"
class="flex flex-col gap-2 justify-center items-center py-4 w-full bg-black/10 select-none cursor-pointer">
<span class="text-center">خامه</span>
<img
src="/images/icons/cream.svg"
alt=""
class="brightness-0" />
</li>
<li
data-category="buttermilk"
class="flex flex-col gap-2 justify-center items-center py-4 w-full bg-black/10 select-none cursor-pointer">
<span class="text-center">دوغ</span>
<img
src="/images/icons/buttermilk.svg"
alt=""
class="brightness-0" />
</li>
<li
data-category="f-yogurt"
class="flex flex-col gap-2 justify-center items-center py-4 w-full bg-black/10 select-none cursor-pointer">
<span class="text-center">ماست طعم دار</span>
<img
src="/images/icons/yogurt.svg"
alt=""
class="brightness-0" />
</li>
<li
data-category="yogurt"
class="flex flex-col gap-2 justify-center items-center py-4 w-full bg-black/10 select-none cursor-pointer">
<span class="text-center">ماست</span>
<img
src="/images/icons/yogurt.svg"
alt=""
class="brightness-0" />
</li>
<li
data-category="cheese"
class="flex flex-col gap-2 justify-center items-center py-4 w-full bg-black/10 select-none cursor-pointer">
<span class="text-center">پنیر</span>
<img
src="/images/icons/cheese.svg"
alt=""
class="brightness-0" />
</li>
<li
data-category="b-yogurt"
class="flex flex-col gap-2 justify-center items-center py-4 w-full bg-black/10 select-none cursor-pointer">
<span class="text-center">ماست سطلی</span>
<img
src="/images/icons/bucket.svg"
alt=""
class="brightness-0" />
</li>
</nav>
<div class="flex flex-col col-span-8 min-h-screen relative">
<!-- -->
<ul
class="product-lists flex flex-col justify-center items-center divide-y-1 divide-solid divide-white/50"
role="list"></ul>
</div>
</div>
</div>
<!-- -->
<div
id="installModal"
class="fixed top-[-9%] right-0 w-full h-fit border-b border-solid border-black/10 bg-gray-300 bg-gradient-to-br from-gray-300 to-white hidden justify-center items-center opacity-0 z-99"
role="dialog"
aria-labelledby="install-modal-title"
aria-modal="true">
<div class="flex justify-between items-center w-full mb-0 cr">
<header class="flex items-center gap-2">
<div class="text-3xl text-primary flex justify-center items-center max-[480px]:hidden">
<ion-icon
name="phone-portrait-outline"
aria-hidden="true"></ion-icon>
</div>
<div class="flex flex-col gap-1.5">
<h2
id="install-modal-title"
class="font-dana-bold font-bold">
<span class="max-[480px]:hidden">وب</span> اپلیکیشن ویزتورا
</h2>
<p class="text-sm text-black/80">هم اکنون نصب کنید</p>
</div>
</header>
<div class="flex items-center gap-2">
<button
id="cancelInstall"
class="cursor-pointer bg-gray-300 border border-solid border-black/30 w-20 h-10 rounded-2xl hover:bg-gray-400 transition-colors duration-200"
aria-label="بعدا نصب کن">
بعدا
</button>
<button
id="installBtn"
class="cursor-pointer bg-primary text-white w-20 h-10 rounded-2xl hover:bg-primary/90 transition-colors duration-200"
aria-label="نصب اپلیکیشن">
نصب
</button>
</div>
</div>
</div>
<!-- -->
<div
class="invoice-preview inset-0 fixed bg-black/95 text-white overflow-auto hidden print:hidden"
role="dialog"
aria-labelledby="preview-title"
aria-modal="true">
<div class="cr">
<h1
id="preview-title"
class="font-bold font-dana-bold pt-2 pb-4 mb-4 text-lg text-white border-b border-solid border-white/20">
آیا از ذخیره فاکتور اطمینان دارید؟
</h1>
<table
class="preview-cr border-collapse w-full text-center mb-5"
role="grid">
<thead>
<tr>
<th
scope="col"
class="border border-solid border-white text-center p-4 bg-black">
نام محصول
</th>
<th
scope="col"
class="border border-solid border-white text-center p-4 bg-black">
تعداد
</th>
</tr>
</thead>
</table>
<footer class="fixed bottom-0 w-full flex justify-between right-0 divide-solid divide-x-2 divide-white">
<button
class="unsave flex justify-center items-center p-4 w-full bg-primary hover:bg-primary/90 transition-colors duration-200"
aria-label="بازگشت">
بازگشت
</button>
<button
class="save flex justify-center items-center p-4 w-full bg-blue-500 hover:bg-blue-600 transition-colors duration-200"
aria-label="ذخیره فاکتور">
ذخیره
</button>
</footer>
</div>
</div>
<!-- -->
<script
type="module"
src="/src/js/main.js"></script>
</body>
</html>