Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

feat: Add a form at the bottom of help pages. #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions src/components/Argument/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { css } from '@emotion/core';

const Argument = (props) => {
const theme = useTheme();
const { children, end, title, top } = props;
const { children, end, title, top, noWrapper } = props;

return (
<div
Expand Down Expand Up @@ -89,11 +89,19 @@ const Argument = (props) => {
color: ${theme.colors.neutral.white};
}
}

label {
color: ${theme.colors.neutral.grey400};
}
`}
>
<Paragraph noMargin inverse>
{children}
</Paragraph>
{noWrapper && children}

{!noWrapper && (
<Paragraph inverse noMargin>
{children}
</Paragraph>
)}
</div>
</div>
);
Expand Down
28 changes: 21 additions & 7 deletions src/components/HelpFooter/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css } from '@emotion/core';
import { Button, Link, useTheme } from '@octopusthink/nautilus';
import { Button, Link, Paragraph, TextField, useTheme } from '@octopusthink/nautilus';
import React from 'react';

import Argument from 'components/Argument';
Expand All @@ -14,14 +14,28 @@ const HelpFooter = () => {
margin: 0 auto;
max-width: ${theme.site.maxContentWidth};
text-align: center;

input {
margin-bottom: 1.6rem;
}
`}
>
<Argument title="This doesn't answer my question!">
Send a message to{' '}
<Link as="a" href="mailto:[email protected]">
[email protected]
</Link>{' '}
and we&rsquo;ll get back to you as soon as we can.
<Argument title="This doesn't answer my question!" noWrapper>
<Paragraph inverse>
Send a message to{' '}
<Link as="a" href="mailto:[email protected]">
[email protected]
</Link>{' '}
or fill in the form and we&rsquo;ll get back to you as soon as we can.
</Paragraph>

<TextField label="Name" />
<TextField label="Email" />
<TextField
label="What's going on?"
hint="Be as detailed as possible! If you can include which version of Mic Drop you're using..."
multiline
/>
</Argument>

<Button
Expand Down