From 9db73341f560b1e69fe86dcda7a52a09a8ca84ec Mon Sep 17 00:00:00 2001 From: Samantha Kellow Date: Thu, 27 Jul 2023 17:20:59 +0100 Subject: [PATCH] creating consts --- constants/brand.tsx | 1 + constants/item-details.tsx | 113 +++++++++++++++++++++++++++++++++++ constants/sustainability.tsx | 39 ++++++++++++ 3 files changed, 153 insertions(+) create mode 100644 constants/brand.tsx create mode 100644 constants/item-details.tsx create mode 100644 constants/sustainability.tsx diff --git a/constants/brand.tsx b/constants/brand.tsx new file mode 100644 index 000000000..8363c67b6 --- /dev/null +++ b/constants/brand.tsx @@ -0,0 +1 @@ +export const SCAPE = 'scape²' \ No newline at end of file diff --git a/constants/item-details.tsx b/constants/item-details.tsx new file mode 100644 index 000000000..b3601c6fe --- /dev/null +++ b/constants/item-details.tsx @@ -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, +}; diff --git a/constants/sustainability.tsx b/constants/sustainability.tsx new file mode 100644 index 000000000..34b0ef50b --- /dev/null +++ b/constants/sustainability.tsx @@ -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);