generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add terms, disclaimer and privacy policy pages (#456)
* feat: add terms page * fix: add disclaimer * fix: add privacy policy * fix: styling * fix: improve belearn icon * fix: review comments
- Loading branch information
Showing
17 changed files
with
1,016 additions
and
195 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -25,3 +25,5 @@ export const NS = { | |
Common: 'common', | ||
Enums: 'enums', | ||
} as const; | ||
|
||
export const PRIVACY_EMAIL = '[email protected]'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
import { Stack, Typography } from '@mui/material'; | ||
|
||
export function Section({ | ||
children, | ||
title, | ||
}: { | ||
children: ReactNode; | ||
title: ReactNode; | ||
}): JSX.Element { | ||
return ( | ||
<Stack gap={2}> | ||
<SectionTitle>{title}</SectionTitle> | ||
<Stack component="ol" sx={{ paddingInlineStart: 0 }} gap={4}> | ||
{children} | ||
</Stack> | ||
</Stack> | ||
); | ||
} | ||
|
||
export function SectionTitle({ | ||
children, | ||
}: { | ||
children: ReactNode; | ||
}): JSX.Element { | ||
return ( | ||
<Typography component="li" variant="h2" color="primary"> | ||
{children} | ||
</Typography> | ||
); | ||
} | ||
|
||
export function ListItem({ children }: { children: ReactNode }): JSX.Element { | ||
return <Typography component="li">{children}</Typography>; | ||
} | ||
export function Paragraphs({ children }: { children: ReactNode }): JSX.Element { | ||
return ( | ||
<Stack direction="column" gap={2}> | ||
{children} | ||
</Stack> | ||
); | ||
} | ||
|
||
export function SubSection({ | ||
children, | ||
title, | ||
}: { | ||
children: ReactNode; | ||
title: string; | ||
}): JSX.Element { | ||
return ( | ||
<Paragraphs> | ||
<Typography variant="h5" component="li"> | ||
{title} | ||
</Typography> | ||
{children} | ||
</Paragraphs> | ||
); | ||
} | ||
|
||
export function EnumeratedParagraph({ | ||
children, | ||
text, | ||
}: { | ||
children: ReactNode; | ||
text: ReactNode; | ||
}): JSX.Element { | ||
return ( | ||
<Stack gap={1}> | ||
<Typography>{text}</Typography> | ||
<Stack | ||
component="ol" | ||
gap={1} | ||
sx={{ | ||
paddingInlineStart: '20px', | ||
'& li': { | ||
listPosition: 'outside', | ||
}, | ||
}} | ||
> | ||
{children} | ||
</Stack> | ||
</Stack> | ||
); | ||
} | ||
|
||
export function ListedParagraph({ | ||
children, | ||
text, | ||
}: { | ||
children: ReactNode; | ||
text?: ReactNode; | ||
}): JSX.Element { | ||
return ( | ||
<Stack gap={1}> | ||
{text && <Typography>{text}</Typography>} | ||
<Stack | ||
component="ul" | ||
sx={{ | ||
paddingInlineStart: '20px', | ||
listStyleType: 'disc', | ||
'& li': { | ||
listPosition: 'outside', | ||
}, | ||
}} | ||
> | ||
{children} | ||
</Stack> | ||
</Stack> | ||
); | ||
} |
Oops, something went wrong.