-
Notifications
You must be signed in to change notification settings - Fork 12
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
0dfecdc
commit 3338f78
Showing
1 changed file
with
64 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// This component will be shown to users who have disabled notifications in browser settings | ||
|
||
const Card = styled.div` | ||
display: flex; | ||
padding: 24px; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 32px; | ||
align-self: stretch; | ||
border-radius: 6px; | ||
border: 1px solid var(--sand-light-6, #e3e3e0); | ||
background: var(--sand-light-1, #fdfdfc); | ||
`; | ||
|
||
const Header = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 10px; | ||
align-self: stretch; | ||
`; | ||
|
||
const Title = styled.div` | ||
font: var(--text-base); | ||
font-weight: 600; | ||
line-height: 130%; | ||
`; | ||
|
||
const Text = styled.div` | ||
color: var(--sand-light-11, var(--sand-light-11, #706f6c)); | ||
font: var(--text-s); | ||
ont-weight: 450; | ||
line-height: 150%; | ||
`; | ||
|
||
const Button = styled.div``; | ||
|
||
const handleOnClick = () => { | ||
// where does this lead | ||
}; | ||
|
||
return ( | ||
<Card> | ||
<Header> | ||
<Title>Enable push notifications</Title> | ||
<Text> | ||
To receive push notifications, you'll first need to enable them in your | ||
browser settings. | ||
</Text> | ||
</Header> | ||
<Button> | ||
<Widget | ||
src="${REPL_ACCOUNT}/widget/DIG.Button" | ||
props={{ | ||
label: "Learn More", | ||
variant: "secondary", | ||
// fill: "", | ||
onClick: handleOnClick, | ||
style: { width: "100%" }, | ||
}} | ||
/> | ||
</Button> | ||
</Card> | ||
); |