-
Notifications
You must be signed in to change notification settings - Fork 0
/
themeConfig.js
55 lines (54 loc) · 1.14 KB
/
themeConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// default configuration for links and images
const defaultConfig = {
home: {
bannerA: {
link: '/',
image: {
mobile: '/homepage/bannerB.webp',
desktop: '/homepage/bannerF.webp'
}
},
bannerB: {
link: '/',
image: '/homepage/bannerE.webp'
},
bannerC: {
link: '/',
image: '/homepage/bannerC.webp'
},
bannerD: {
link: '/',
image: '/homepage/bannerG.webp'
}
}
};
// configuration used for links and images for demo purposes
const demoConfig = {
home: {
bannerA: {
link: '/c/women/women-clothing-skirts',
image: {
mobile: '/homepage/bannerB.webp',
desktop: '/homepage/bannerF.webp'
}
},
bannerB: {
link: '/c/women/women-clothing-dresses',
image: '/homepage/bannerE.webp'
},
bannerC: {
link: '/c/women/women-clothing-shirts',
image: '/homepage/bannerC.webp'
},
bannerD: {
link: '/c/women/women-shoes-sandals',
image: '/homepage/bannerG.webp'
}
}
};
export default (() => {
if (process.env.IS_DEMO) {
return demoConfig;
}
return defaultConfig;
})();