aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-11-30 23:03:49 +0800
committerFred Carlsen <fred@sjelfull.no>2018-11-30 23:04:13 +0800
commit3a13286585eb1399247b808c6d45849db9d94a2d (patch)
tree728faf877fa620796f96004a386d2b1504150985 /packages/website/ts/@next/components
parentc98c8b1deddbe7ebb4acf8daa2c95e301bfa01fd (diff)
downloaddexon-sol-tools-3a13286585eb1399247b808c6d45849db9d94a2d.tar
dexon-sol-tools-3a13286585eb1399247b808c6d45849db9d94a2d.tar.gz
dexon-sol-tools-3a13286585eb1399247b808c6d45849db9d94a2d.tar.bz2
dexon-sol-tools-3a13286585eb1399247b808c6d45849db9d94a2d.tar.lz
dexon-sol-tools-3a13286585eb1399247b808c6d45849db9d94a2d.tar.xz
dexon-sol-tools-3a13286585eb1399247b808c6d45849db9d94a2d.tar.zst
dexon-sol-tools-3a13286585eb1399247b808c6d45849db9d94a2d.zip
Added about / mission
Diffstat (limited to 'packages/website/ts/@next/components')
-rw-r--r--packages/website/ts/@next/components/header.tsx2
-rw-r--r--packages/website/ts/@next/components/image.tsx21
2 files changed, 22 insertions, 1 deletions
diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx
index 357056c04..0f47588bd 100644
--- a/packages/website/ts/@next/components/header.tsx
+++ b/packages/website/ts/@next/components/header.tsx
@@ -19,7 +19,7 @@ const links = [
{ url: '/next/why', text: 'Why 0x' },
{ url: '/next/0x-instant', text: 'Products' },
{ url: '#', text: 'Developers' },
- { url: '#', text: 'About' },
+ { url: '/next/about/mission', text: 'About' },
{ url: '#', text: 'Blog' },
];
diff --git a/packages/website/ts/@next/components/image.tsx b/packages/website/ts/@next/components/image.tsx
new file mode 100644
index 000000000..f49c8c059
--- /dev/null
+++ b/packages/website/ts/@next/components/image.tsx
@@ -0,0 +1,21 @@
+import * as React from 'react';
+import styled from 'styled-components';
+
+interface Props {
+ alt?: string;
+ src: any;
+ srcset: any;
+ center: any;
+}
+
+const ImageClass: React.FunctionComponent<Props> = (props: Props) => {
+ const { src, srcset, alt } = props;
+
+ return (
+ <img src={src} {...props} />
+ );
+};
+
+export const Image = styled(ImageClass)`
+ margin: ${(props: Props) => props.center && `0 auto`};
+`;