From 4944e7b248787282f7220f6c6198e21a9fbc0212 Mon Sep 17 00:00:00 2001 From: jongomez Date: Mon, 23 Oct 2023 13:20:53 +0100 Subject: [PATCH] feat: adds UI for the subscription form --- .../EmailSubscribe/EmailSubscribe.tsx | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/components/EmailSubscribe/EmailSubscribe.tsx diff --git a/src/components/EmailSubscribe/EmailSubscribe.tsx b/src/components/EmailSubscribe/EmailSubscribe.tsx new file mode 100644 index 00000000..6edccf9b --- /dev/null +++ b/src/components/EmailSubscribe/EmailSubscribe.tsx @@ -0,0 +1,67 @@ +import { Button, Typography } from '@acid-info/lsd-react' +import styled from '@emotion/styled' + +type EmailSubscribeProps = React.HTMLAttributes & { + onSubmit?: (e: React.FormEvent) => void +} + +export const EmailSubscribe = ({ onSubmit, ...props }: EmailSubscribeProps) => { + return ( + + + Subscribe for updates + + + + + + + + + ) +} + +const EmailSubscribeContainer = styled.div` + display: flex; + flex-direction: column; + border-block: 1px solid rgb(var(--lsd-border-primary)); + padding: 24px 0px; + margin-top: 24px; +` + +const EmailSubscribeForm = styled.form` + display: flex; + gap: 16px; + width: 100%; +` + +const EmailSubscribeInput = styled.input` + padding: 0; + padding-left: 18px; + box-sizing: border-box; + border: 1px solid rgb(var(--lsd-border-primary)); + height: 40px; + width: 100%; + + &:focus { + outline: none; + } +`