Migrate privacy policy to Nextjs
This commit is contained in:
parent
b23c538408
commit
877c4b3479
12 changed files with 101 additions and 82 deletions
|
|
@ -3,3 +3,9 @@
|
|||
margin: 20px auto;
|
||||
max-width: calc(100% - 60px);
|
||||
}
|
||||
|
||||
.centered {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
import { makeClass } from '/src/utils'
|
||||
|
||||
import styles from './Content.module.scss'
|
||||
|
||||
interface ContentProps {
|
||||
children: React.ReactNode
|
||||
isCentered?: boolean
|
||||
}
|
||||
|
||||
const Content = (props: ContentProps) =>
|
||||
<div className={styles.content} {...props} />
|
||||
const Content = ({ isCentered, ...props }: ContentProps) =>
|
||||
<div className={makeClass(styles.content, isCentered && styles.centered)} {...props} />
|
||||
|
||||
export default Content
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
import styles from './Paragraph.module.scss'
|
||||
|
||||
interface ParagraphProps {
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
const Paragraph = (props: ParagraphProps) =>
|
||||
<p className={styles.p} {...props} />
|
||||
|
||||
export default Paragraph
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
.p {
|
||||
.text {
|
||||
font-weight: 500;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
11
frontend/src/components/Paragraph/Text.tsx
Normal file
11
frontend/src/components/Paragraph/Text.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import styles from './Text.module.scss'
|
||||
|
||||
interface TextProps {
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
export const P = (props: TextProps) =>
|
||||
<p className={styles.text} {...props} />
|
||||
|
||||
export const Ul = (props: TextProps) =>
|
||||
<ul className={styles.text} {...props} />
|
||||
|
|
@ -2,8 +2,4 @@
|
|||
margin: 30px 0 0;
|
||||
background-color: var(--surface);
|
||||
padding: 20px 0;
|
||||
|
||||
& a {
|
||||
color: var(--secondary);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue