Skip to content

Commit

Permalink
website: Add manual link
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jan 9, 2021
1 parent 40adfdc commit 903f18a
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion src/website/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react';
import {Box} from 'react-feather';
import {css, Global} from '@emotion/react';
import styled from '@emotion/styled';
import {motion, Variants} from 'framer-motion';
Expand Down Expand Up @@ -43,7 +44,12 @@ const Landing = () => (
hook into real-time performance data to enhance your sets.
</Description>

<DownloadCta variants={animateInfo} />
<Actions variants={animateInfo}>
<DownloadCta />
<ManualButton href="/manual">
<Box size="1rem" /> user guide
</ManualButton>
</Actions>
</Intro>
<Spotlight
variants={{animate: {transition: {delayChildren: 0.8, staggerChildren: 0}}}}
Expand Down Expand Up @@ -118,6 +124,40 @@ const Description = styled(motion.p)`
margin-bottom: 3rem;
`;

const Actions = styled(motion.div)`
display: grid;
grid-template-columns: repeat(2, max-content);
grid-gap: 1rem;
align-items: start;
`;

const ManualButton = styled('a')`
text-decoration: none;
font-family: 'DM Mono';
letter-spacing: -0.75px;
font-size: 1rem;
background: #f6f6f6;
padding: 0.5rem 0.75rem;
border: 0;
display: flex;
align-items: center;
border-radius: 2px;
cursor: pointer;
transition: background 200ms ease-in-out;
color: inherit;
min-height: 38px;
color: #444;
svg {
margin-right: 0.5rem;
}
&:hover {
background: #ddd;
color: #222;
}
`;

const Spotlight = styled(motion.div)`
position: relative;
display: flex;
Expand Down

0 comments on commit 903f18a

Please sign in to comment.