Skip to content

Commit

Permalink
Create SettingsTurnOn component
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbodnar committed Sep 15, 2023
1 parent 0dfecdc commit 3338f78
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions src/NearOrg/Notifications/SettingsTurnOn.jsx
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>
);

0 comments on commit 3338f78

Please sign in to comment.