Remove "Home" menu item, instead make different parts of logo link to different sections of the website

This commit is contained in:
Fabio Berger
2018-11-11 15:31:52 +01:00
parent 7626d1d6fe
commit 753b33aec5
8 changed files with 54 additions and 60 deletions

View File

@@ -1,17 +1,34 @@
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 {
height: number;
containerStyle?: React.CSSProperties;
}
const Image = styled.img`
&:hover {
opacity: 0.7;
}
`;
export const DocsLogo: React.StatelessComponent<DocsLogoProps> = props => {
return (
<Link to={WebsitePaths.Docs}>
<img src="/images/docs_logo.svg" height={props.height} />
</Link>
<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>
);
};