-
Notifications
You must be signed in to change notification settings - Fork 371
/
Copy pathListingPage.jsx
91 lines (89 loc) · 2.3 KB
/
ListingPage.jsx
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
import Navigation from "./components/Navigation";
const categoryItems = {
"Video Games": {
Games: true,
"Video Game Accessories": true,
"Nintendo Wii": true,
"Sony Playstation": true,
"All Video Games": true,
"Microsoft Xbox": true
},
"Cell Phones": {
"Cell Phone Accessories": true,
"All Cell Phones": true,
"Prepaid Phones & Plans": true
},
"Computers & Tablets": {
"Computer Accessories": true,
"Computer Components": true,
Tablets: true,
"Surge Protectors & Power": true,
Monitors: true,
Software: true,
"Wi-Fi & Networking": true,
"Tablet Accessories": true,
Laptops: true
},
"TV & Home Theater": {
"Home Theater Accessories": true,
"Home Theater Audio & Video": true,
TVs: true,
"": true,
"Blu-ray & DVD Players": true
},
Appliances: {
"Major Kitchen Appliances": true,
"Washers & Dryers": true
},
"Wearable Technology": {
Headphones: true
},
Audio: {
Headphones: true,
"Home Audio": true,
"Audio Accessories": true,
"iPod & MP3 Players": true
},
"Home, Furniture & Office": {
"Home Security & Monitoring": true
},
"Car Electronics & GPS": {
"Car Security & Convenience": true,
"Car Audio": true,
"Installation Parts & Accessories": true,
"GPS Navigation": true
},
"Cameras, Camcorders & Drones": {
Cameras: true,
Camcorders: true
},
"Movies & Music": {
"": true
}
};
export default () => {
return (
<div className="ecommerce-container">
<Navigation />
<div className="max-w-screen-xl mx-auto py-12 px-4 sm:px-6 lg:px-8 grid md:grid-cols-4 gap-4 grid-cols-2">
{Object.keys(categoryItems).map((category) => (
<div className="flex flex-col mb-5">
<h3 className="text-l leading-8 font-semibold text-slate-700">
{category}
</h3>
<div className="flex flex-col">
{Object.keys(categoryItems[category]).map((subcategory) => (
<a
href={`/ecommerce/category/${subcategory}`}
className="text-sm leading-5 text-slate-700 hover:text-blue-600 mb-1"
>
{subcategory}
</a>
))}
</div>
</div>
))}
</div>
</div>
);
};