mediahub-fe/app/[locale]/(protected)/ecommerce/frontend/data.ts

327 lines
7.7 KiB
TypeScript

export const products = [
{
id: "c06d48bf-7f35-4789-b71e-d80fee5b430t",
img: "/images/e-commerce/product-card/classical-black-tshirt.png",
category: "men",
name: "Classical Black T-Shirt Classical Black T-Shirt",
subtitle: "The best cotton black branded shirt.",
desc: "The best cotton black branded shirt. The best cotton black branded shirt. The best cotton black branded shirt. The best cotton black branded shirt. The best cotton black branded shirt.",
rating: "4.8",
price: 489,
oldPrice: "$700",
percent: "40%",
brand: "apple",
},
{
id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
img: "/images/e-commerce/product-card/black-t-shirt.png",
category: "men",
name: "Classical Black T-Shirt",
subtitle: "The best cotton black branded shirt.",
desc: "The best cotton black branded shirt",
rating: "4.8",
price: 20,
oldPrice: "$700",
percent: "40%",
brand: "apex",
},
{
id: "b2c3d4e5-f6g7-8901-bcde-f23456789012",
img: "/images/e-commerce/product-card/check-shirt.png",
category: "women",
name: "Classical Black T-Shirt",
subtitle: "The best cotton black branded shirt.",
desc: "The best cotton black branded shirt",
rating: "4.8",
price: 120,
oldPrice: "$700",
percent: "40%",
brand: "easy",
},
{
id: "c3d4e5f6-g7h8-9012-cdef-345678901234",
img: "/images/e-commerce/product-card/gray-jumper.png",
category: "women",
name: "Classical Black T-Shirt",
subtitle: "The best cotton black branded shirt.",
desc: "The best cotton black branded shirt",
rating: "4.8",
price: 70,
oldPrice: "$700",
percent: "40%",
brand: "pixel",
},
{
id: "d4e5f6g7-h8i9-0123-defg-456789012345",
img: "/images/e-commerce/product-card/gray-t-shirt.png",
category: "baby",
name: "Classical Black T-Shirt",
subtitle: "The best cotton black branded shirt.",
desc: "The best cotton black branded shirt",
rating: "4.8",
price: 30,
oldPrice: "$700",
percent: "40%",
brand: "apex",
},
{
id: "e5f6g7h8-i9j0-1234-efgh-567890123456",
img: "/images/e-commerce/product-card/red-t-shirt.png",
category: "women",
name: "Classical Black T-Shirt",
subtitle: "The best cotton black branded shirt.",
desc: "The best cotton black branded shirt",
rating: "4.8",
price: 40,
oldPrice: "$700",
percent: "40%",
brand: "apple",
},
{
id: "f6g7h8i9-j0k1-2345-fghi-678901234567",
img: "/images/e-commerce/product-card/red-t-shirt.png",
category: "women",
name: "Classical Black T-Shirt",
subtitle: "The best cotton black branded shirt.",
desc: "The best cotton black branded shirt",
rating: "4.8",
price: 90,
oldPrice: "$700",
percent: "40%",
brand: "easy",
},
{
id: "g7h8i9j0-k1l2-3456-ghij-789012345678",
img: "/images/e-commerce/product-card/yellow-frok.png",
category: "women",
name: "Classical Black T-Shirt",
subtitle: "The best cotton black branded shirt.",
desc: "The best cotton black branded shirt",
rating: "4.8",
price: 80,
oldPrice: "$700",
percent: "40%",
brand: "pixel",
},
{
id: "h8i9j0k1-l2m3-4567-hijk-890123456789",
img: "/images/e-commerce/product-card/yellow-jumper.png",
category: "furniture",
name: "Classical Black T-Shirt",
subtitle: "The best cotton black branded shirt.",
desc: "The best cotton black branded shirt",
rating: "4.8",
price: 20,
oldPrice: "$700",
percent: "40%",
brand: "samsung",
},
];
export type product = (typeof products)[number];
export const getProducts = async () => {
return products;
};
export const getProductById = async (id: string) => {
return products.find((product) => product.id === id);
};
//
export const categories = [
{ label: "All", value: "all", count: "9724" },
{ label: "Men", value: "men", count: "1312" },
{ label: "Women", value: "women", count: "3752" },
{ label: "Child", value: "child", count: "985" },
{ label: "Baby", value: "baby", count: "745" },
{ label: "Footwear", value: "footwear", count: "1280" },
{ label: "Furniture", value: "furniture", count: "820" },
{ label: "Mobile", value: "mobile", count: "2460" },
];
export type category = (typeof categories)[number];
//
export const brands = [
{ label: "Apple", value: "apple", count: "9724" },
{ label: "Apex", value: "apex", count: "1312" },
{ label: "Easy", value: "easy", count: "3752" },
{ label: "Pixel", value: "pixel", count: "985" },
{ label: "Samsung", value: "samsung", count: "2460" },
];
export type brand = (typeof brands)[number];
//
export const prices = [
{
label: "$0 - $199",
value: {
min: 0,
max: 199,
},
count: "9724",
},
{
label: "$200 - $449",
value: {
min: 200,
max: 499,
},
count: "1312",
},
{
label: "$450 - $599",
value: {
min: 450,
max: 599,
},
count: "3752",
},
{
label: "$600 - $799",
value: {
min: 600,
max: 799,
},
count: "985",
},
{
label: "$800 & Above",
value: {
min: 800,
max: 1000,
},
count: "745",
},
];
export type price = (typeof prices)[number];
//
export const ratings = [
{ name: 5, value: 5, count: "9724" },
{ name: 4, value: 4, count: "1312" },
{ name: 3, value: 3, count: "3752" },
{ name: 2, value: 2, count: "985" },
{ name: 1, value: 1, count: "2460" },
];
export type rating = (typeof ratings)[number];
//
export const selectOptions = [
{
value: "option1",
label: "Option 1",
},
{
value: "option2",
label: "Option 2",
},
{
value: "option3",
label: "Option 3",
},
];
export type selectOption = (typeof selectOptions)[number];
//
export const selectCategories = [
{
value: "option1",
label: "Top Rated"
},
{
value: "option2",
label: "Option 2"
},
{
value: "option3",
label: "Option 3"
}
];
export type selectCategory = (typeof selectCategories)[number];
//
export const payments = [
{
img: "/images/e-commerce/cart-icon/bkash.png",
value: "bkash",
},
{
img: "/images/e-commerce/cart-icon/fatoorah.png",
value: "fatoorah",
},
{
img: "/images/e-commerce/cart-icon/iyzco.png",
value: "instamojo",
},
{
img: "/images/e-commerce/cart-icon/iyzco.png",
value: "iyzco",
},
{
img: "/images/e-commerce/cart-icon/nagad.png",
value: "nagad",
},
{
img: "/images/e-commerce/cart-icon/ngenious.png",
value: "ngenious",
},
{
img: "/images/e-commerce/cart-icon/payfast.png",
value: "payfast",
},
{
img: "/images/e-commerce/cart-icon/payku.png",
value: "payku",
},
{
img: "/images/e-commerce/cart-icon/paypal.png",
value: "paypal",
},
{
img: "/images/e-commerce/cart-icon/paytm.png",
value: "paytm",
},
{
img: "/images/e-commerce/cart-icon/razorpay.png",
value: "razorpay",
},
{
img: "/images/e-commerce/cart-icon/ssl.png",
value: "ssl",
},
{
img: "/images/e-commerce/cart-icon/stripe.png",
value: "stripe",
},
{
img: "/images/e-commerce/cart-icon/truck.png",
value: "truck",
},
{
img: "/images/e-commerce/cart-icon/vougepay.png",
value: "vougepay",
},
];
export type payment = (typeof payments)[number];
export type EcommerceNav = {
label: string
href: string
active: boolean
icon: string
}
export function getEcommerceNav(pathname: string): EcommerceNav[] {
return [
{
label: 'grid view',
href: "/ecommerce/frontend",
icon: "heroicons:view-columns",
active: pathname === "/ecommerce/frontend",
},
{
label: 'list view',
href: "/ecommerce/frontend/list",
icon: "heroicons:list-bullet",
active: pathname === "/ecommerce/frontend/list",
}
]
}