forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatron-info.ts
More file actions
34 lines (31 loc) · 735 Bytes
/
patron-info.ts
File metadata and controls
34 lines (31 loc) · 735 Bytes
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
import Patron1 from './svg/patron-1.svg';
import Patron2 from './svg/patron-2.svg';
import Patron3 from './svg/patron-3.svg';
import Patron4 from './svg/patron-4.svg';
const info = {
'patron-1': {
Badge: Patron1,
particleCount: 10,
colors: ['#1BB978'],
},
'patron-2': {
Badge: Patron2,
particleCount: 20,
colors: ['#B53D3D', '#1BB978'],
},
'patron-3': {
Badge: Patron3,
particleCount: 35,
colors: ['#609AC3', '#1BB978', '#B53D3D'],
},
'patron-4': {
Badge: Patron4,
particleCount: 100,
colors: ['#D0AF72', '#1BB978', '#B53D3D', '#609AC3'],
},
};
// Preload the images
Object.keys(info).forEach(badge => {
new Image().src = info[badge].Badge;
});
export default info;