aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>
+ );
+};