Remove "Home" menu item, instead make different parts of logo link to different sections of the website
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user