Skip to content

Commit

Permalink
add help page (bukinoshita#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukinoshita committed Nov 23, 2017
1 parent 9c8a620 commit f7ab181
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ const Page = ({ children }) => {

<footer>
<ul>
<li>
<Link prefetch href="/">
<span>create secret</span>
</Link>
</li>

<li>
<Link prefetch href="/about">
<span>About</span>
Expand Down
94 changes: 94 additions & 0 deletions pages/help.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 your 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

0 comments on commit f7ab181

Please sign in to comment.