aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-11-28 23:26:56 +0800
committerFred Carlsen <fred@sjelfull.no>2018-11-28 23:26:56 +0800
commit56ca19dc9bc5342ac5e97ad06c20a6083c2f3c2a (patch)
tree399ef0fcbfc627e0361a5b30e69ef853091927bb /packages/website/ts/@next/components
parent969674a5ce99260a1fa0b749611845153c105bc4 (diff)
downloaddexon-sol-tools-56ca19dc9bc5342ac5e97ad06c20a6083c2f3c2a.tar
dexon-sol-tools-56ca19dc9bc5342ac5e97ad06c20a6083c2f3c2a.tar.gz
dexon-sol-tools-56ca19dc9bc5342ac5e97ad06c20a6083c2f3c2a.tar.bz2
dexon-sol-tools-56ca19dc9bc5342ac5e97ad06c20a6083c2f3c2a.tar.lz
dexon-sol-tools-56ca19dc9bc5342ac5e97ad06c20a6083c2f3c2a.tar.xz
dexon-sol-tools-56ca19dc9bc5342ac5e97ad06c20a6083c2f3c2a.tar.zst
dexon-sol-tools-56ca19dc9bc5342ac5e97ad06c20a6083c2f3c2a.zip
Add ehader
Diffstat (limited to 'packages/website/ts/@next/components')
-rw-r--r--packages/website/ts/@next/components/header.tsx54
-rw-r--r--packages/website/ts/@next/components/logo.tsx22
-rw-r--r--packages/website/ts/@next/components/siteWrap.tsx3
3 files changed, 78 insertions, 1 deletions
diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx
new file mode 100644
index 000000000..615cf53d5
--- /dev/null
+++ b/packages/website/ts/@next/components/header.tsx
@@ -0,0 +1,54 @@
+import * as _ from 'lodash';
+import * as React from 'react';
+import styled from 'styled-components';
+
+import { Button } from './button';
+import { Container } from './container';
+import { Logo } from './logo';
+
+export interface HeaderInterface {
+}
+
+const StyledHeader = styled.header`
+ display: flex;
+ text-align: center;
+ align-items: center;
+ justify-content: space-between;
+ padding: 1.764705882rem 0;
+`;
+
+const Text = styled.span`
+ font-size: 1rem;
+ line-height: 1.375rem;
+`;
+
+const Links = styled.div`
+ display: flex;
+ justify-content: space-around;
+`;
+
+const Link = styled.a`
+ color: rgba(255, 255, 255, 0.5);
+ font-size: 18px;
+ margin: 0 1.764705882rem;
+`;
+
+const links = [
+ { url: '', text: 'Why 0x' },
+ { url: '', text: 'Products' },
+ { url: '', text: 'Developers' },
+ { url: '', text: 'About' },
+ { url: '', text: 'Blog' },
+];
+
+export const Header: React.StatelessComponent<HeaderInterface> = ({}) => (
+ <Container>
+ <StyledHeader>
+ <Logo/>
+ <Links>
+ {_.map(links, link => <Link>{link.text}</Link>)}
+ </Links>
+ <Button text="Trade on 0x" />
+ </StyledHeader>
+ </Container>
+);
diff --git a/packages/website/ts/@next/components/logo.tsx b/packages/website/ts/@next/components/logo.tsx
new file mode 100644
index 000000000..2d778408e
--- /dev/null
+++ b/packages/website/ts/@next/components/logo.tsx
@@ -0,0 +1,22 @@
+import * as React from 'react';
+import styled from 'styled-components';
+
+import logoWithType from '../icons/logo-with-type.svg';
+
+export interface LogoInterface {
+ // showType: boolean;
+}
+
+const StyledLogo = styled.div`
+ text-align: center;
+`;
+
+const Icon = styled.div`
+ flex-shrink: 0;
+`;
+
+export const Logo: React.StatelessComponent<LogoInterface> = ({}) => (
+ <StyledLogo>
+ <Icon as={logoWithType as 'svg'} />
+ </StyledLogo>
+);
diff --git a/packages/website/ts/@next/components/siteWrap.tsx b/packages/website/ts/@next/components/siteWrap.tsx
index 1b0efd145..d9dbabffb 100644
--- a/packages/website/ts/@next/components/siteWrap.tsx
+++ b/packages/website/ts/@next/components/siteWrap.tsx
@@ -1,6 +1,7 @@
import * as React from 'react';
import { GlobalStyles } from 'ts/@next/constants/globalStyle';
+import { Header } from './header'
interface Props {
@@ -13,7 +14,7 @@ const SiteWrap:React.StatelessComponent<Props> = props => {
<>
<GlobalStyles />
- <header>0x HEADER</header>
+ <Header />
{ children }