mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
d0a7a52254
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: João Melo <jopcmelo@gmail.com>
82 lines
1.9 KiB
TypeScript
82 lines
1.9 KiB
TypeScript
import { Button, Column, Heading, Row, Section, Text } from 'react-email';
|
|
import { Layout } from '../_components/layout';
|
|
|
|
export const component = (
|
|
<Section
|
|
style={{
|
|
textAlign: 'center',
|
|
paddingTop: 16,
|
|
paddingBottom: 16,
|
|
}}
|
|
>
|
|
<Text
|
|
style={{
|
|
marginTop: 8,
|
|
marginBottom: 8,
|
|
fontSize: 18,
|
|
lineHeight: '28px',
|
|
fontWeight: 600,
|
|
color: 'rgb(79,70,229)',
|
|
}}
|
|
>
|
|
Your opinion matters
|
|
</Text>
|
|
<Heading
|
|
as="h1"
|
|
style={{
|
|
margin: '0px',
|
|
marginTop: 8,
|
|
fontSize: 30,
|
|
lineHeight: '36px',
|
|
fontWeight: 600,
|
|
color: 'rgb(17,24,39)',
|
|
}}
|
|
>
|
|
We want to hear you
|
|
</Heading>
|
|
<Text
|
|
style={{
|
|
fontSize: 16,
|
|
lineHeight: '24px',
|
|
color: 'rgb(55,65,81)',
|
|
}}
|
|
>
|
|
How would you rate your experience using our product in a scale from 1 to
|
|
5?
|
|
</Text>
|
|
<Row>
|
|
<Column align="center">
|
|
<table>
|
|
<tr>
|
|
{[1, 2, 3, 4, 5].map((number) => (
|
|
<td align="center" key={number} style={{ padding: 4 }}>
|
|
<Button
|
|
// Replace with the proper URL that saves the selected number
|
|
href="https://react.email"
|
|
style={{
|
|
height: 20,
|
|
width: 20,
|
|
borderRadius: 8,
|
|
borderWidth: 1,
|
|
borderStyle: 'solid',
|
|
borderColor: 'rgb(79,70,229)',
|
|
padding: 8,
|
|
fontWeight: 600,
|
|
color: 'rgb(79,70,229)',
|
|
}}
|
|
>
|
|
{number}
|
|
</Button>
|
|
</td>
|
|
))}
|
|
</tr>
|
|
</table>
|
|
</Column>
|
|
</Row>
|
|
</Section>
|
|
);
|
|
|
|
export default () => {
|
|
return <Layout>{component}</Layout>;
|
|
};
|