UNPKG

1.29 kBJavaScriptView Raw
1import React from 'react'
2import PropTypes from 'prop-types'
3import styled from 'styled-components'
4
5import { P } from 'SRC/core/typography/'
6import { MailboxIcon } from 'SRC/core/icons/'
7import { InformationalSection } from 'SRC/components/sections/'
8
9const UnstyledSubscriptionShipping = ({className}) => {
10 return (
11 <InformationalSection className={className}>
12 <MailboxIcon animate />
13 <aside>
14 <P>Seasonal Shipments</P>
15 <P>A box every 3 months. So easy. Simple to cancel anytime.</P>
16 </aside>
17 </InformationalSection>
18 )
19}
20
21const SubscriptionShipping = styled(UnstyledSubscriptionShipping)`
22 display: flex;
23 align-items: center;
24 padding: 1rem;
25 margin-bottom: 3rem;
26 ${props => props.theme.media.tablet`
27 padding: 0;
28 min-height: 8rem;
29 `}
30 min-height: 8rem;
31 ${MailboxIcon} {
32 margin-right: 1.5rem;
33 flex: 0 0 5rem;
34 ${props => props.theme.media.tablet`
35 flex: 0 0 7rem;
36 align-self: flex-end;
37 `}
38 }
39 aside {
40 ${P}:first-of-type {
41 font-weight: 500;
42 }
43 }
44`
45
46SubscriptionShipping.propTypes = {
47 theme: PropTypes.shape({
48 media: PropTypes.shape({
49 tablet: PropTypes.func
50 })
51 })
52}
53
54/** @component */
55export default SubscriptionShipping
56export { UnstyledSubscriptionShipping }