|
| 1 | +import styled from 'styled-components' |
| 2 | + |
| 3 | +import { Link } from '../components/Link' |
| 4 | +import { $theme } from '../styles/theme' |
| 5 | +import { theme } from '../theme' |
| 6 | + |
| 7 | +export const Hero = styled.div` |
| 8 | + text-align: center; |
| 9 | + padding: 3rem 0 4rem; |
| 10 | +` |
| 11 | + |
| 12 | +export const Greeting = styled.h1` |
| 13 | + font-size: ${$theme.fontSize.l2}rem; |
| 14 | + font-weight: ${$theme.fontWeight.black}; |
| 15 | + color: ${$theme.color.copy}; |
| 16 | + line-height: 1; |
| 17 | + margin: 0 0 0.75rem; |
| 18 | +
|
| 19 | + ${theme.breakpoints.up('lg')} { |
| 20 | + font-size: ${$theme.fontSize.l1}rem; |
| 21 | + } |
| 22 | +` |
| 23 | + |
| 24 | +export const CardGrid = styled.div` |
| 25 | + display: grid; |
| 26 | + grid-template-columns: 1fr; |
| 27 | + gap: 1.5rem; |
| 28 | + padding-bottom: 4rem; |
| 29 | +
|
| 30 | + ${theme.breakpoints.up('md')} { |
| 31 | + grid-template-columns: 1fr 1fr; |
| 32 | + } |
| 33 | +` |
| 34 | + |
| 35 | +export const Card = styled(Link)` |
| 36 | + display: flex; |
| 37 | + flex-direction: column; |
| 38 | + border: ${$theme.color.secondary} solid 2px; |
| 39 | + border-radius: 4px; |
| 40 | + padding: 2rem; |
| 41 | + text-decoration: none; |
| 42 | + color: ${$theme.color.copy}; |
| 43 | + transition: ${$theme.transition.default}; |
| 44 | +
|
| 45 | + &:hover { |
| 46 | + border-color: ${$theme.color.primary}; |
| 47 | + background-color: ${$theme.color.primary}0a; |
| 48 | + } |
| 49 | +` |
| 50 | + |
| 51 | +export const CardIcon = styled.div` |
| 52 | + font-family: 'Source Code Pro', Consolas, Monaco, monospace; |
| 53 | + font-size: 1.75rem; |
| 54 | + color: ${$theme.color.primary}; |
| 55 | + margin-bottom: 1.25rem; |
| 56 | + line-height: 1; |
| 57 | +` |
| 58 | + |
| 59 | +export const CardTitle = styled.h2` |
| 60 | + font-size: ${$theme.fontSize.l2}rem; |
| 61 | + font-weight: ${$theme.fontWeight.black}; |
| 62 | + line-height: 1; |
| 63 | + margin: 0 0 0.75rem; |
| 64 | +` |
| 65 | + |
| 66 | +export const CardDescription = styled.p` |
| 67 | + font-size: ${$theme.fontSize.copy1}rem; |
| 68 | + color: ${$theme.color.copyLight}; |
| 69 | + margin: 0; |
| 70 | + flex-grow: 1; |
| 71 | +` |
| 72 | + |
| 73 | +export const CardCTA = styled.span` |
| 74 | + display: inline-block; |
| 75 | + margin-top: 1.5rem; |
| 76 | + font-size: ${$theme.fontSize.copy2}rem; |
| 77 | + color: ${$theme.color.primary}; |
| 78 | + font-weight: ${$theme.fontWeight.semiBold}; |
| 79 | +` |
0 commit comments