├── public ├── favicon.ico ├── icon-192x192.png ├── icon-256x256.png ├── icon-384x384.png ├── icon-512x512.png ├── manifest.json ├── vercel.svg ├── sw.js └── workbox-4a677df8.js ├── pages ├── api │ ├── items │ │ ├── index.js │ │ ├── [id].js │ │ └── category │ │ │ └── [category].js │ ├── checkoutsession.js │ └── webhook.js ├── 404.js ├── _app.js ├── wishlist.js ├── orders.js ├── shop │ ├── [slug].js │ └── index.js ├── ourstore.js ├── success.js ├── _document.js ├── index.js ├── login.js ├── register.js ├── basket.js └── product │ └── [slug].js ├── postcss.config.js ├── components ├── cardskeleton.js ├── sidecategory.js ├── topcategory.js ├── shopcarousel.js ├── wishproduct.js ├── menunav.js ├── search.js ├── cardprofile.js ├── productcard.js ├── ordercard.js ├── basketproduct.js ├── layout.js └── header.js ├── next.config.js ├── .gitignore ├── slices ├── categorySlice.js ├── wishlistSlice.js └── basketSlice.js ├── firebase └── firebase.js ├── tailwind.config.js ├── app ├── store.js └── data.json ├── package.json ├── styles └── global.css └── README.md /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mudzikalfahri/wefootwear-store/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mudzikalfahri/wefootwear-store/HEAD/public/icon-192x192.png -------------------------------------------------------------------------------- /public/icon-256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mudzikalfahri/wefootwear-store/HEAD/public/icon-256x256.png -------------------------------------------------------------------------------- /public/icon-384x384.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mudzikalfahri/wefootwear-store/HEAD/public/icon-384x384.png -------------------------------------------------------------------------------- /public/icon-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mudzikalfahri/wefootwear-store/HEAD/public/icon-512x512.png -------------------------------------------------------------------------------- /pages/api/items/index.js: -------------------------------------------------------------------------------- 1 | import data from "../../../app/data.json"; 2 | 3 | export default async (req, res) => { 4 | res.status(200).json(JSON.stringify(data)); 5 | }; 6 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | // If you want to use other PostCSS plugins, see the following: 2 | // https://tailwindcss.com/docs/using-with-preprocessors 3 | module.exports = { 4 | plugins: { 5 | tailwindcss: {}, 6 | autoprefixer: {}, 7 | }, 8 | } 9 | -------------------------------------------------------------------------------- /pages/api/items/[id].js: -------------------------------------------------------------------------------- 1 | import data from "../../../app/data.json"; 2 | 3 | export default async (req, res) => { 4 | const { id } = req.query; 5 | 6 | const item = data.find((item) => item.slug === id); 7 | 8 | res.status(200).json(JSON.stringify(item)); 9 | }; 10 | -------------------------------------------------------------------------------- /pages/api/items/category/[category].js: -------------------------------------------------------------------------------- 1 | import data from "../../../../app/data.json"; 2 | 3 | export default async (req, res) => { 4 | const { category } = req.query; 5 | 6 | const item = data.filter( 7 | (item) => item.category.toLowerCase() === category.toLowerCase() 8 | ); 9 | 10 | res.status(200).json(JSON.stringify(item)); 11 | }; 12 | -------------------------------------------------------------------------------- /components/cardskeleton.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Skeleton from "react-loading-skeleton"; 3 | 4 | function CardSkeleton() { 5 | return ( 6 |
33 |
40 |
47 | {item.name}
24 |32 | {value} 33 |
34 | )} 35 | /> 36 | 37 | 40 | 41 | 47 |
45 | No item found
47 | )} 48 |{session.username}
11 |Verified Account
12 |{session.email}
13 |Member+
32 |Payment succeeded :
35 |{orders.length} times
36 |Money Spent :
39 |52 | {value} 53 |
54 | )} 55 | /> 56 |76 | No item found 77 |
78 | )} 79 |65 | No item found 66 |
67 | ) : ( 68 | data_items.map((item) => ( 69 |
23 |
30 |
37 | 48 | Jl. Brigjen Katamso No. 54, West Progo. 49 |
50 |Jl. Malioboro No. 4, Yogyakarta.
56 |60 | 535 N Fairfax Ave, Los Angeles, CA 90036, AS. 61 |
62 |47 | Your order is being processed by our delivery team and you 48 | should receive a confirmation from us shortly. Click the 49 | button below to see your orders 50 |
51 | 57 |{item.name}
60 |{item.color}
61 | {/*Rp {price}
*/} 62 |70 | {value} 71 |
72 | )} 73 | /> 74 |Shop
23 |{moment.unix(order.timestamp).format("DD MMM YYYY")}
24 |{it.description}
41 |{it.quantity} x
43 |51 | {value} 52 |
53 | )} 54 | /> 55 |Total Amount :
62 |73 | {value} 74 |
75 | )} 76 | /> 77 |{item.name}
29 |
117 |
124 |
131 |
71 |
84 |
85 |
74 | 67 | Non member receive free-shipping for purchases Rp 1,500,000 68 | or more 69 |
70 |Your Basket ({items.length})
73 |
86 |
87 | Your basket is empty,
88 |
89 | to start shopping click{" "}
90 |
91 | here
92 |
93 |
SUBTOTAL
124 |{value}
} 133 | /> 134 |{item.name}
143 |{value}
} 149 | /> 150 |TAX
154 |FREE
155 |TOTAL
160 |{value}
} 169 | /> 170 |78 | {dataItem.type.name} 79 | 80 | 92 | 93 | {dataItem.category.name} 94 |
95 |{dataItem.color}
99 |107 | {value} 108 |
109 | )} 110 | /> 111 |Select size
113 |You may also like:
184 |