aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-11-28 23:26:42 +0800
committerFred Carlsen <fred@sjelfull.no>2018-11-28 23:26:42 +0800
commit969674a5ce99260a1fa0b749611845153c105bc4 (patch)
tree037c2578a0991dc2ff12e91293437dbb27807c9d
parentd2a418b368b514b158e46c2b0459d49a9c07f177 (diff)
downloaddexon-sol-tools-969674a5ce99260a1fa0b749611845153c105bc4.tar
dexon-sol-tools-969674a5ce99260a1fa0b749611845153c105bc4.tar.gz
dexon-sol-tools-969674a5ce99260a1fa0b749611845153c105bc4.tar.bz2
dexon-sol-tools-969674a5ce99260a1fa0b749611845153c105bc4.tar.lz
dexon-sol-tools-969674a5ce99260a1fa0b749611845153c105bc4.tar.xz
dexon-sol-tools-969674a5ce99260a1fa0b749611845153c105bc4.tar.zst
dexon-sol-tools-969674a5ce99260a1fa0b749611845153c105bc4.zip
Add container and button
-rw-r--r--packages/website/ts/@next/components/button.tsx10
-rw-r--r--packages/website/ts/@next/components/container.tsx21
2 files changed, 30 insertions, 1 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx
index 48be7659c..bbb6b7935 100644
--- a/packages/website/ts/@next/components/button.tsx
+++ b/packages/website/ts/@next/components/button.tsx
@@ -1,21 +1,29 @@
import * as React from 'react';
import styled from 'styled-components';
+import { colors } from 'ts/style/colors';
+
export interface ButtonInterface {
text: string;
}
const StyledButton = styled.button`
+ appearance: none;
+ border: 0;
+ background-color: ${colors.brandLight};
+ color: ${colors.white};
text-align: center;
+ padding: 13px 22px 14px;
`;
const Text = styled.span`
font-size: 1rem;
+ font-weight: 500;
line-height: 1.375rem;
`;
export const Button: React.StatelessComponent<ButtonInterface> = ({ text }) => (
<StyledButton>
- <Text>Get Started</Text>
+ <Text>{text}</Text>
</StyledButton>
);
diff --git a/packages/website/ts/@next/components/container.tsx b/packages/website/ts/@next/components/container.tsx
new file mode 100644
index 000000000..a4da10cfd
--- /dev/null
+++ b/packages/website/ts/@next/components/container.tsx
@@ -0,0 +1,21 @@
+import * as React from 'react';
+import styled from 'styled-components';
+
+interface ContainerProps {
+}
+
+const StyledContainer = styled.div`
+ max-width: 117rem; // 2000px
+ margin: 0 auto;
+ padding: 0 1.764705882rem; // 30px
+`;
+
+export const Container: React.StatelessComponent<ContainerProps> = props => {
+ const { children } = props;
+
+ return (
+ <StyledContainer>
+ {children}
+ </StyledContainer>
+ );
+};