aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/documentation/docs_logo.tsx
blob: 54ea9e2b422c69abb1b7a1efdf230aeb871fd499 (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
34
35
36
37
import { Link } from '@0x/react-shared';
import * as React from 'react';
import { styled } from 'ts/style/theme';
import { WebsitePaths } from 'ts/types';

import { Container } from '../ui/container';

export interface DocsLogoProps {
    containerStyle?: React.CSSProperties;
}

const Image = styled.img`
    &:hover {
        opacity: 0.7;
    }
`;

export const DocsLogo: React.StatelessComponent<DocsLogoProps> = props => {
    return (
        <Container className="flex">
            <Container>
                <Link to={WebsitePaths.Home}>
                    <Image src="/images/developers/logo/0x.svg" height={30} />
                </Link>
            </Container>
            <Container paddingTop="7px" paddingLeft="7px">
                <Link to={WebsitePaths.Docs}>
                    <Image src="/images/developers/logo/docs.svg" height={16} />
                </Link>
            </Container>
        </Container>
    );
};

DocsLogo.defaultProps = {
    containerStyle: {},
};