creating consts

This commit is contained in:
Samantha Kellow 2023-07-27 17:20:59 +01:00
parent 72c8855edc
commit 9db73341f5
3 changed files with 153 additions and 0 deletions

1
constants/brand.tsx Normal file
View File

@ -0,0 +1 @@
export const SCAPE = 'scape²'

113
constants/item-details.tsx Normal file
View 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,
};

View 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);