-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
114e5a5
commit 75d53c4
Showing
6 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
met-web/src/components/engagement/form/EngagementWidgets/Subscribe/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React, { useContext } from 'react'; | ||
import { Grid, Divider, FormControlLabel, Checkbox } from '@mui/material'; | ||
import { PrimaryButton, MetHeader3, WidgetButton, MetParagraph, MetLabel } from 'components/common'; | ||
import { WidgetDrawerContext } from '../WidgetDrawerContext'; | ||
import BorderColorIcon from '@mui/icons-material/BorderColor'; | ||
|
||
const SubscribeForm = () => { | ||
const { handleWidgetDrawerOpen } = useContext(WidgetDrawerContext); | ||
|
||
return ( | ||
<Grid item xs={12} container alignItems="flex-start" justifyContent={'flex-start'} spacing={3}> | ||
<Grid item xs={12}> | ||
<Grid container item> | ||
<MetHeader3 bold sx={{ paddingRight: 1 }}> | ||
Sign-up for updates | ||
</MetHeader3> | ||
<BorderColorIcon /> | ||
</Grid> | ||
<Divider sx={{ marginTop: '1em' }} /> | ||
<FormControlLabel control={<Checkbox />} label={<MetLabel>Hide title</MetLabel>} /> | ||
</Grid> | ||
<Grid item xs={12} container direction="row" spacing={1} justifyContent={'flex-start'}> | ||
<Grid item xs={12}> | ||
<MetParagraph> | ||
The email list will collect email addresses for a mailing list. A "double-opt-in" email will be | ||
sent to confirm the subscription.Only the email addresses that have been double-opted-in will be | ||
on the list. Please include the unsubscribe link provided on the Email List screen in every | ||
future communication. Unsubscribed email addresses will be removed from the list. Please | ||
downloaded the list before each communication. | ||
</MetParagraph> | ||
</Grid> | ||
<Grid item xs={12} marginBottom="1em"> | ||
<MetParagraph> | ||
The form sign-up will open the pre-defined form. The text and CTA for both are customizable. | ||
</MetParagraph> | ||
</Grid> | ||
<Grid item> | ||
<WidgetButton>Email List</WidgetButton> | ||
</Grid> | ||
<Grid item> | ||
<WidgetButton>Form Sign-up</WidgetButton> | ||
</Grid> | ||
</Grid> | ||
<Grid item xs={12} container direction="row" spacing={1} justifyContent={'flex-start'} marginTop="2em"> | ||
<Grid item> | ||
<PrimaryButton | ||
onClick={() => { | ||
handleWidgetDrawerOpen(false); | ||
}} | ||
> | ||
Close | ||
</PrimaryButton> | ||
</Grid> | ||
</Grid> | ||
</Grid> | ||
); | ||
}; | ||
|
||
export default SubscribeForm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters