58 lines
1.5 KiB
TypeScript
58 lines
1.5 KiB
TypeScript
|
|
import { noop } from "lodash";
|
||
|
|
import React from "react";
|
||
|
|
import styled from "styled-components";
|
||
|
|
import Button, { Category, Size } from "components/ads/Button";
|
||
|
|
import Toggle from "components/ads/Toggle";
|
||
|
|
import {
|
||
|
|
AllowToggle,
|
||
|
|
AllowToggleLabel,
|
||
|
|
AllowToggleWrapper,
|
||
|
|
ButtonWrapper,
|
||
|
|
FormBodyWrapper,
|
||
|
|
FormHeaderIndex,
|
||
|
|
FormHeaderLabel,
|
||
|
|
FormHeaderWrapper,
|
||
|
|
} from "./common";
|
||
|
|
import { memo } from "react";
|
||
|
|
|
||
|
|
export const StyledButton = styled(Button)`
|
||
|
|
width: 201px;
|
||
|
|
height: 38px;
|
||
|
|
`;
|
||
|
|
|
||
|
|
const NewsletterContainer = styled.div`
|
||
|
|
widht: 100%;
|
||
|
|
position: relative;
|
||
|
|
padding-left: ${(props) => props.theme.spaces[17] * 2}px;
|
||
|
|
margin-top: ${(props) => props.theme.spaces[12] * 2}px;
|
||
|
|
`;
|
||
|
|
|
||
|
|
export default memo(function NewsletterForm() {
|
||
|
|
return (
|
||
|
|
<NewsletterContainer>
|
||
|
|
<FormHeaderWrapper>
|
||
|
|
<FormHeaderIndex>3.</FormHeaderIndex>
|
||
|
|
<FormHeaderLabel>Stay in touch</FormHeaderLabel>
|
||
|
|
</FormHeaderWrapper>
|
||
|
|
<FormBodyWrapper>
|
||
|
|
<AllowToggleWrapper>
|
||
|
|
<AllowToggle>
|
||
|
|
<Toggle name="signupForNewsletter" onToggle={() => noop} value />
|
||
|
|
</AllowToggle>
|
||
|
|
<AllowToggleLabel>
|
||
|
|
Get updates about what we are cooking. We do not spam you.
|
||
|
|
</AllowToggleLabel>
|
||
|
|
</AllowToggleWrapper>
|
||
|
|
<ButtonWrapper>
|
||
|
|
<StyledButton
|
||
|
|
category={Category.primary}
|
||
|
|
size={Size.medium}
|
||
|
|
tag="button"
|
||
|
|
text="Make your first App"
|
||
|
|
/>
|
||
|
|
</ButtonWrapper>
|
||
|
|
</FormBodyWrapper>
|
||
|
|
</NewsletterContainer>
|
||
|
|
);
|
||
|
|
});
|