-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path_index.tsx
More file actions
228 lines (215 loc) · 7.31 KB
/
_index.tsx
File metadata and controls
228 lines (215 loc) · 7.31 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
import type { MetaFunction } from 'react-router'
import SVGBanner from '~/assets/images/landing/illustration_banner.svg?url'
import SVGButton from '~/assets/images/landing/illustration_button.svg?url'
import SVGLinkGenerator from '~/assets/images/landing/illustration_link_generator.svg?url'
import SVGRevShareGenerator from '~/assets/images/landing/illustration_rev_share.svg?url'
import SVGWidget from '~/assets/images/landing/illustration_widget.svg?url'
import SVGHeadingVector from '~/assets/images/landing/tools-heading-vector.svg?url'
import { ToolCard } from '~/components/redesign/components/landing/ToolCard'
import { Heading1, Heading3 } from '~/components/redesign/Typography'
const DEFAULT_TITLE = 'Publisher Tools'
const DEFAULT_DESCRIPTION = 'Choose and customize your tools!'
const DEFAULT_IMAGE_URL = 'https://webmonetization.org/img/wm-social.png'
const DEFAULT_URL = 'https://webmonetization.org/tools'
const SITE_NAME = 'Web Monetization'
const setupTools = [
{
title: 'Link tag generator',
description:
'Generate the <link rel="monetization"> tag required to enable Web Monetization on your web pages.',
tags: [
'Web Monetization',
'Easy integration',
'Easy setup',
'HTML tag',
'No code',
],
icon: SVGLinkGenerator,
link: '/link-tag/',
},
{
title: 'Probabilistic revenue share',
description:
'Split Web Monetization revenue across multiple payment pointers/wallets using probabilistic algorithms',
tags: [
'Web Monetization',
'Shared revenue',
'Automatic split',
'Fair payout',
],
icon: SVGRevShareGenerator,
link: '/prob-revshare/',
},
]
const interactionTools = [
{
title: 'Banner',
description: (
<>
Show a customizable banner to introduce Web Monetization.
<br />
The banner disappears when dismissed or the extension is installed.
</>
),
tags: [
'Web Monetization',
'Visibility boost',
'Audience education',
'Engagement',
],
icon: SVGBanner,
link: '/banner',
},
{
title: 'Widget',
description: (
<>
A floating icon that lets visitors support you with one-time payments.
<br />
No extension needed, simple and flexible.
</>
),
tags: [
'Web Monetization',
'One time support',
'Pay with Interledger',
'Engagement',
],
icon: SVGWidget,
link: '/widget',
},
{
title: 'Call-to-Action button',
description: (
<>
The most classic, yet one of the most effective methods in order to link
to your supporters.
<br />
Ladies and gents, the button!
</>
),
tags: ['flawless', 'dynamic', 'high click rate', 'button'],
icon: SVGButton,
link: '/button',
disabled: true,
},
].filter((e) => !e.disabled)
export const meta: MetaFunction = () => {
const title = DEFAULT_TITLE
const description = DEFAULT_DESCRIPTION
const imageUrl = DEFAULT_IMAGE_URL
const pageUrl = DEFAULT_URL
return [
{ title },
{ name: 'description', content: description },
{ property: 'og:title', content: title },
{ property: 'og:description', content: description },
{ property: 'og:image', content: imageUrl },
{ property: 'og:url', content: pageUrl },
{ property: 'og:type', content: 'website' },
{ property: 'og:site_name', content: SITE_NAME },
{ tagName: 'link', rel: 'canonical', href: pageUrl },
]
}
export default function Index() {
return (
<div className="bg-interface-bg-main min-h-screen flex flex-col gap-2xl items-center pt-5xl pb-xl px-0">
<div className="flex flex-col gap-2xl items-center justify-start px-md py-0 w-full max-w-[1280px]">
<div className="flex flex-col gap-xs items-center justify-start p-0 w-full">
<Heading1 className="!leading-normal !text-[42px] max-xl:!text-style-h2-semibold text-center">
{DEFAULT_TITLE}
</Heading1>
<img
alt=""
className="block max-w-none h-[23px] w-[442px] max-xl:h-[13px] max-xl:w-[247px]"
src={SVGHeadingVector}
/>
</div>
<p className="text-style-h5 !text-landing-content text-center w-full max-xl:!text-style-body-standard">
Use our suite of tools to set up and promote Web Monetization.
<br />
Encourage your visitors to support your content and website.
</p>
</div>
<div
id="content"
className="flex flex-col gap-2.5 items-center justify-start p-0 w-full"
>
<section
className="max-w-[1280px] w-full flex flex-col gap-md items-center justify-start px-md py-0"
aria-labelledby="heading-setup-tools"
>
<Heading3
className="w-full max-xl:text-center"
id="heading-setup-tools"
>
Setup tools
</Heading3>
<p className="text-style-h5 !text-landing-content text-center w-full max-xl:!text-style-small-standard max-xl:text-center xl:text-left">
Get started quickly with tools designed to help you set up Web
Monetization on your website
</p>
<ul
className="grid gap-lg w-full justify-items-center"
style={{
gridTemplateColumns: 'repeat(auto-fit, minmax(19rem, 1fr))',
}}
>
{setupTools.map((tool, index) => (
<li key={index}>
<ToolCard
title={tool.title}
tags={tool.tags}
icon={tool.icon}
to={tool.link || ''}
target={tool.link ? undefined : '_blank'}
>
{tool.description}
</ToolCard>
</li>
))}
<div className="w-[340px] opacity-0 max-xl:hidden" />
</ul>
</section>
<section
className="max-w-[1280px] w-full flex flex-col gap-md items-center justify-start px-md py-0"
aria-labelledby="heading-interaction-tools"
>
<Heading3
className="w-full max-xl:text-center"
id="heading-interaction-tools"
>
Interaction tools
</Heading3>
<p className="text-style-h5 !text-landing-content text-center w-full max-xl:!text-style-small-standard max-xl:text-center xl:text-left">
Add lightweight and embeddable tools, like banners and widgets, to
your site with simple scripts.
<br />
They're easily customizable, helping you connect with your
audience to encourage Web Monetization support.
</p>
<ul
className="grid gap-lg w-full justify-items-center"
style={{
gridTemplateColumns: 'repeat(auto-fit, minmax(19rem, 1fr))',
}}
>
{interactionTools.map((tool, index) => (
<li key={index}>
<ToolCard
title={tool.title}
tags={tool.tags}
icon={tool.icon}
to={tool.link}
>
{tool.description}
</ToolCard>
</li>
))}
<div className="w-[340px] opacity-0 max-xl:hidden" />
</ul>
</section>
</div>
</div>
)
}