diff options
author | Fabio Berger <me@fabioberger.com> | 2018-09-17 23:55:22 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-09-17 23:55:22 +0800 |
commit | ce51edcf80cbecab6f04db4704ddcf21c804f3b0 (patch) | |
tree | c2ad0a5f1236d5f18da48b6e2653fa2b2763e749 /packages/website/ts/components/documentation/docs_logo.tsx | |
parent | 60ef45722cd20fe243f58f5eaf8717081cbc39f1 (diff) | |
download | dexon-sol-tools-ce51edcf80cbecab6f04db4704ddcf21c804f3b0.tar.gz dexon-sol-tools-ce51edcf80cbecab6f04db4704ddcf21c804f3b0.tar.zst dexon-sol-tools-ce51edcf80cbecab6f04db4704ddcf21c804f3b0.zip |
Implement new responsive, dev section header and home scaffolding
Diffstat (limited to 'packages/website/ts/components/documentation/docs_logo.tsx')
-rw-r--r-- | packages/website/ts/components/documentation/docs_logo.tsx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/website/ts/components/documentation/docs_logo.tsx b/packages/website/ts/components/documentation/docs_logo.tsx index 2a539c84b..9daf84ad0 100644 --- a/packages/website/ts/components/documentation/docs_logo.tsx +++ b/packages/website/ts/components/documentation/docs_logo.tsx @@ -2,12 +2,21 @@ import * as React from 'react'; import { Link } from 'react-router-dom'; import { WebsitePaths } from 'ts/types'; -export const DocsLogo = () => { +export interface DocsLogoProps { + height: number; + containerStyle?: React.CSSProperties; +} + +export const DocsLogo: React.StatelessComponent<DocsLogoProps> = props => { return ( - <div style={{ paddingTop: 28 }}> + <div style={props.containerStyle}> <Link to={`${WebsitePaths.Home}`} className="text-decoration-none"> - <img src="/images/docs_logo.svg" height="36px" /> + <img src="/images/docs_logo.svg" height={props.height} /> </Link> </div> ); }; + +DocsLogo.defaultProps = { + containerStyle: {}, +}; |