-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpresets.ts
More file actions
176 lines (164 loc) · 3.89 KB
/
presets.ts
File metadata and controls
176 lines (164 loc) · 3.89 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
import { tooltips } from './tooltips.js'
import { CornerType, SlideAnimationType, PositionType } from './types.js'
export const validConfigTypes = ['button', 'banner', 'widget']
export const textColorPresets = ['#ffffff', '#000000']
export const triggerColorPresets = ['#ffffff', '#000000', '#096b63']
export const backgroundColorPresets = [
'#ffffff',
'#4ec6c0',
'#f8c6db',
'#f69656',
'#7f76b2'
]
export const FontsType = ['Arial', 'Open Sans', 'Cookie', 'Titillium Web']
export const bgColors = {
button: 'from-wm-green to-wm-green-fade',
banner: 'from-wm-dark-green to-wm-dark-green-fade',
widget: 'from-wm-red to-wm-red-fade'
}
export const fontOptions = FontsType.map((font) => {
return {
value: font,
label: font
}
})
export const controlOptions = [
{
value: 'background',
label: 'Background'
},
{
value: 'text',
label: 'Text'
}
]
export const widgetControlOptions = [
{
value: 'background',
label: 'Background'
},
{
value: 'text',
label: 'Text'
},
{
value: 'buttonbackground',
label: 'Button background'
},
{
value: 'buttontext',
label: 'Button Text'
},
{
value: 'trigger',
label: 'Trigger & Icon'
}
]
export const buttonControlOptions = [
{
value: 'background',
label: 'Background'
},
{
value: 'text',
label: 'Text'
},
{
value: 'tooltipbackground',
label: 'Tooltip background'
},
{
value: 'tooltiptext',
label: 'Tooltip Text'
}
]
export const slideOptions = [
{
value: SlideAnimationType.None,
label: 'No'
},
{
value: SlideAnimationType.Down,
label: 'Yes'
}
]
export const buttonTooltipOptions = [
{
value: '0',
label: 'Hide'
},
{
value: '1',
label: 'Show'
},
{
value: '2',
label: 'Hover'
}
]
export const positionOptions = [
{
value: PositionType.Bottom,
label: 'Bottom'
},
{
value: PositionType.Top,
label: 'Top'
}
]
export const cornerOptions = [
{
value: CornerType.None,
label: 'No rounding'
},
{
value: CornerType.Light,
label: 'Light rounding'
},
{
value: CornerType.Pill,
label: 'Pill'
}
]
export const availableTools = [
{
enabled: true,
title: 'Banner',
image: 'banner_representation.svg',
bgColor: 'from-wm-dark-green to-wm-dark-green-fade',
link: 'create/banner',
tooltip: tooltips.banner,
description:
"The banner informs visitors who don't have the Web Monetization extension active, with a call-to-action linking to the extension or providing details about the options available. It also adds your wallet address for your site to be monetized."
},
{
enabled: true,
title: 'Widget',
image: 'widget_representation.svg',
bgColor: 'from-wm-red to-wm-red-fade',
link: 'create/widget',
tooltip: tooltips.widget,
description:
'You can add a widget to provide a brief explanation or description, along with a donation or one-time payment option, even for users without the Web Monetization extension. It also adds your wallet address for your site to be monetized.'
},
{
enabled: true,
title: 'Button',
image: 'button_representation.svg',
bgColor: 'from-wm-green to-wm-green-fade',
link: 'create/button',
tooltip: tooltips.button,
description:
'You can place a custom button with a short tooltip on your site that triggers a payment option in a full-page overlay, offering a convenient way for visitors to support your work or content.'
},
{
enabled: false,
title: 'Exclusive content',
image: 'exclusive_representation.svg',
bgColor: 'from-wm-green to-wm-green-fade',
link: 'create/exclusive',
tooltip: '',
description:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dictum felis eget dui ullamcorper, sit amet hendrerit ante sollicitudin. Donec eget metus lectus.'
}
].filter((tool) => tool.enabled)