forked from bukinoshita/secret
-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.js
94 lines (78 loc) · 2.17 KB
/
help.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
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
'use strict'
import React, { Component } from 'react'
import Link from 'next/link'
import Page from './../layouts/page'
import { colors, typography } from './../theme'
class About extends Component {
render() {
return (
<Page>
<section>
<h2>01.</h2>
<p>
On the{' '}
<Link prefetch href="/">
<span>homepage</span>
</Link>{' '}
you can type your secret and click `create`.
</p>
<h2>02.</h2>
<p>
After you click the `create` button, we will generate an{' '}
<strong>unique</strong> and <strong>encrypted</strong> link. You can
copy this link and share it with someone.
</p>
<h2>03.</h2>
<p>
After the person you shared with opens the link, we will
automatically delete the secret from the internet forever and your
secret will still be a secret.
</p>
</section>
<style jsx>{`
section {
max-width: 500px;
width: 100%;
margin-left: auto;
margin-right: auto;
}
h2 {
color: ${colors.white};
font-weight: ${typography.regular};
margin-bottom: 20px;
}
p {
color: ${colors.gray};
font-size: ${typography.f14};
line-height: 24px;
margin-bottom: 30px;
}
span {
font-weight: ${typography.bold};
color: ${colors.white};
font-size: ${typography.f12};
position: relative;
}
span:after {
content: '';
height: 1px;
background-color: ${colors.white};
position: absolute;
pointer-events: none;
bottom: -4px;
left: 0;
right: 0;
opacity: 0;
transform: scale(0, 1);
transition: all 200ms;
}
span:hover:after {
opacity: 1;
transform: scale(1, 1);
}
`}</style>
</Page>
)
}
}
export default About