forked from sunny0183/next13-ecommerce-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.ts
175 lines (172 loc) · 4.34 KB
/
constants.ts
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
export const lists = [
{
title: 'Best Selling',
items: [
{
title: 'Acetate Sunglasses',
price: 10.99,
rating: 5.0,
ratingCount: 70,
image: '/image.png'
},
{
title: 'Wool Cashmere Jacket',
price: 180,
rating: 4.7,
ratingCount: 23,
image: '/coat.png'
},
{
title: 'Travel Pet Carrier',
price: 42,
rating: 4.5,
ratingCount: 50,
image: '/bag.png'
},
{
title: 'Clem Cashmere Scarf',
price: 65,
rating: 4.9,
ratingCount: 46,
image: '/scarf.png'
}
]
},
{
title: 'New Arrivals',
items: [
{
title: 'Wool Cashmere Jacket',
price: 180,
rating: 4.7,
ratingCount: 23,
image: '/coat.png'
},
{
title: 'Acetate Sunglasses',
price: 10.99,
rating: 5.0,
ratingCount: 70,
image: '/image.png'
},
{
title: 'Clem Cashmere Scarf',
price: 65,
rating: 4.9,
ratingCount: 46,
image: '/scarf.png'
},
{
title: 'Travel Pet Carrier',
price: 42,
rating: 4.5,
ratingCount: 50,
image: '/bag.png'
},
]
}
];
export const product = {
name: 'Zip Tote Basket',
price: 140.00,
rating: 4,
images: [
{
id: 1,
name: 'Angled view',
src: 'https://tailwindui.com/img/ecommerce-images/product-page-03-product-01.jpg',
alt: 'Angled front view with bag zipped and handles upright.',
},
// More images...
],
colors: [
{ name: 'Washed Black', value: '#6C6C6C' },
{ name: 'Washed gray', value: '#F7F0EA' },
{ name: 'White', value: '#FFFFFF' },
],
sizes: [
{ name: 'XL', selectedSize: 'xl' },
{ name: 'L', selectedSize: 'l' },
{ name: 'M', selectedSize: 'm' },
{ name: 'S', selectedSize: 's' },
{ name: 'XS', selectedSize: 'xs' },
],
description: `
<p>The Zip Tote Basket is the perfect midpoint between shopping tote and comfy backpack. With convertible straps, you can hand carry, should sling, or backpack this convenient and spacious bag. The zip top and durable canvas construction keeps your goods protected for all-day use.</p>
`,
details: [
{
name: 'Features',
items: [
'Multiple strap configurations',
'Spacious interior with top zip',
'Leather handle and tabs',
'Interior dividers',
'Stainless strap loops',
'Double stitched construction',
'Water-resistant',
],
},
// More sections...
],
}
export const reviews = {
average: 4,
totalCount: 1624,
counts: [
{ rating: 5, count: 1019 },
{ rating: 4, count: 162 },
{ rating: 3, count: 97 },
{ rating: 2, count: 199 },
{ rating: 1, count: 147 },
],
featured: [
{
id: 1,
rating: 5,
content: `
<p>This is the bag of my dreams. I took it on my last vacation and was able to fit an absurd amount of snacks for the many long and hungry flights.</p>
`,
author: 'Emily Selman',
avatarSrc:
'https://images.unsplash.com/photo-1502685104226-ee32379fefbe?ixlib=rb-=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=256&h=256&q=80',
},
{
id: 1,
rating: 5,
content: `
<p>This is the bag of my dreams. I took it on my last vacation and was able to fit an absurd amount of snacks for the many long and hungry flights.</p>
`,
author: 'Emily Selman',
avatarSrc:
'https://images.unsplash.com/photo-1502685104226-ee32379fefbe?ixlib=rb-=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=256&h=256&q=80',
},
// More reviews...
],
}
export const filters = [
{
id: 'color',
name: 'Color',
options: [
{ value: 'white', label: 'White' },
{ value: 'beige', label: 'Beige' },
{ value: 'blue', label: 'Blue' },
{ value: 'brown', label: 'Brown' },
{ value: 'green', label: 'Green' },
{ value: 'purple', label: 'Purple' },
],
},
{
id: 'sizes',
name: 'Sizes',
options: [
{ value: 'xs', label: 'XS' },
{ value: 's', label: 'S' },
{ value: 'm', label: 'M' },
{ value: 'l', label: 'L' },
{ value: 'xl', label: 'XL' },
{ value: '2xl', label: '2XL' },
],
},
]