aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/heroImage.tsx
blob: e16e29199ed2699421efb77266e518e480e57919 (plain) (blame)
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
import * as React from 'react';
import styled from 'styled-components';

import LogoOutlined from 'ts/@next/icons/illustrations/logo-outlined.svg';

interface Props {
    image: React.Node;
}

export const LandingAnimation = (props: Props) => (
    <Wrap>
        {props.image}
    </Wrap>
);

const Wrap = styled.figure`
    display: inline-block;

    svg {
        width: 100%;
        height: auto;
    }

    @media (min-width: 768px) {
        width: 100%;
        max-width: 400px;
    }

    @media (max-width: 768px) {
        width: 180px;
        margin-bottom: 40px;
    }
`;