mirror of
https://github.com/vercel/commerce.git
synced 2025-05-13 13:17:51 +00:00
creating consts
This commit is contained in:
parent
72c8855edc
commit
9db73341f5
1
constants/brand.tsx
Normal file
1
constants/brand.tsx
Normal file
@ -0,0 +1 @@
|
|||||||
|
export const SCAPE = 'scape²'
|
113
constants/item-details.tsx
Normal file
113
constants/item-details.tsx
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
const cotton100 = '100% organic cotton';
|
||||||
|
const print = 'water based ink print on back'
|
||||||
|
|
||||||
|
const heavy = 'heavy'
|
||||||
|
const standard = 'standard'
|
||||||
|
|
||||||
|
const relaxed = 'relaxed'
|
||||||
|
const oversized = 'oversized'
|
||||||
|
const medium = 'medium'
|
||||||
|
|
||||||
|
const unisex = 'unisex'
|
||||||
|
|
||||||
|
const branding = `${cotton100} brand label`
|
||||||
|
|
||||||
|
export type GarmentDetailContent = {
|
||||||
|
title: string;
|
||||||
|
content: string;
|
||||||
|
weight: {
|
||||||
|
feel: string;
|
||||||
|
gsm: number;
|
||||||
|
};
|
||||||
|
fit: string;
|
||||||
|
style: string;
|
||||||
|
print: string;
|
||||||
|
branding: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const garmentTypes = {
|
||||||
|
tshirt: 'T-Shirt',
|
||||||
|
sweat: 'Crew Neck Sweatshirt',
|
||||||
|
hoodie: 'Hoodie',
|
||||||
|
}
|
||||||
|
|
||||||
|
const commonDetails = {
|
||||||
|
style: unisex,
|
||||||
|
print,
|
||||||
|
branding,
|
||||||
|
}
|
||||||
|
|
||||||
|
const tshirt = {
|
||||||
|
title: garmentTypes.tshirt,
|
||||||
|
content: cotton100,
|
||||||
|
weight: {
|
||||||
|
feel: heavy,
|
||||||
|
gsm: 250,
|
||||||
|
},
|
||||||
|
fit: relaxed,
|
||||||
|
...commonDetails,
|
||||||
|
};
|
||||||
|
|
||||||
|
const crew = {
|
||||||
|
title: garmentTypes.sweat,
|
||||||
|
content: cotton100,
|
||||||
|
weight: {
|
||||||
|
feel: heavy,
|
||||||
|
gsm: 500,
|
||||||
|
},
|
||||||
|
fit: relaxed,
|
||||||
|
...commonDetails,
|
||||||
|
};
|
||||||
|
|
||||||
|
const cropCrew = {
|
||||||
|
title: `Crop ${garmentTypes.sweat}`,
|
||||||
|
content: cotton100,
|
||||||
|
weight: {
|
||||||
|
feel: standard,
|
||||||
|
gsm: 300,
|
||||||
|
},
|
||||||
|
fit: medium,
|
||||||
|
...commonDetails,
|
||||||
|
};
|
||||||
|
|
||||||
|
const cropT = {
|
||||||
|
title: `Crop ${garmentTypes.tshirt}`,
|
||||||
|
content: cotton100,
|
||||||
|
weight: {
|
||||||
|
feel: standard,
|
||||||
|
gsm: 155,
|
||||||
|
},
|
||||||
|
fit: oversized,
|
||||||
|
...commonDetails,
|
||||||
|
};
|
||||||
|
|
||||||
|
const hoodie = {
|
||||||
|
title: garmentTypes.hoodie,
|
||||||
|
content: cotton100,
|
||||||
|
weight: {
|
||||||
|
feel: heavy,
|
||||||
|
gsm: 500,
|
||||||
|
},
|
||||||
|
fit: relaxed,
|
||||||
|
...commonDetails,
|
||||||
|
};
|
||||||
|
|
||||||
|
const zipHoodie = {
|
||||||
|
title: `Zipped ${garmentTypes.hoodie}`,
|
||||||
|
content: cotton100,
|
||||||
|
weight: {
|
||||||
|
feel: heavy,
|
||||||
|
gsm: 500,
|
||||||
|
},
|
||||||
|
fit: relaxed,
|
||||||
|
...commonDetails,
|
||||||
|
};
|
||||||
|
|
||||||
|
export const productTypes: {[productTypeName: string]: GarmentDetailContent} = {
|
||||||
|
tshirt,
|
||||||
|
crew,
|
||||||
|
cropCrew,
|
||||||
|
cropT,
|
||||||
|
hoodie,
|
||||||
|
zipHoodie,
|
||||||
|
};
|
39
constants/sustainability.tsx
Normal file
39
constants/sustainability.tsx
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
export const gots = 'Global Organic Textile Standard';
|
||||||
|
|
||||||
|
const oeko = 'OEKO-TEX®'
|
||||||
|
export const oekoStandard = `${oeko} Standard 100`;
|
||||||
|
export const oekoEco = `${oeko} Eco Passport`;
|
||||||
|
|
||||||
|
export const peta = "PETA Approved Vegan";
|
||||||
|
|
||||||
|
export const fairWear = 'Fair Wear';
|
||||||
|
|
||||||
|
export const credentials = {
|
||||||
|
gots: {
|
||||||
|
title: gots,
|
||||||
|
excerpt: '',
|
||||||
|
link: '',
|
||||||
|
},
|
||||||
|
oekoStandard: {
|
||||||
|
title: oekoStandard,
|
||||||
|
excerpt: '',
|
||||||
|
link: '',
|
||||||
|
},
|
||||||
|
oekoEco: {
|
||||||
|
title: oekoEco,
|
||||||
|
excerpt: '',
|
||||||
|
link: '',
|
||||||
|
},
|
||||||
|
peta: {
|
||||||
|
title: peta,
|
||||||
|
excerpt: '',
|
||||||
|
link: '',
|
||||||
|
},
|
||||||
|
fairWear: {
|
||||||
|
title: fairWear,
|
||||||
|
excerpt: '',
|
||||||
|
link: '',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export const credentialsKeys = Object.keys(credentials);
|
Loading…
x
Reference in New Issue
Block a user