Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion src/views/ToS/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { FormattedMessage, useIntl } from 'react-intl'

import IMAGE_INTRO from '@/public/static/images/intro.jpg'
import { Head, Layout } from '~/components'
import { PATHS } from '~/common/enums'
import { Button, Head, Layout, TextIcon, Translate } from '~/components'

import styles from './styles.module.css'
import { Term } from './Term'

const ToS = () => {
Expand Down Expand Up @@ -30,6 +32,38 @@ const ToS = () => {
/>

<Layout.Main.Spacing>
<section className={styles.transparencyEntry}>
<div>
<h2>
<Translate
zh_hant="平台治理與透明度"
zh_hans="平台治理与透明度"
en="Governance and Transparency"
/>
</h2>
<p>
<Translate
zh_hant="查看內容治理、申訴機制、政府與個資請求統計,以及定期透明度報告。"
zh_hans="查看内容治理、申诉机制、政府与个人资料请求统计,以及定期透明度报告。"
en="Review content governance, appeals, government and privacy request metrics, and periodic transparency reports."
/>
</p>
</div>
<Button
borderColor="green"
href={PATHS.TRANSPARENCY}
size={[null, '2.25rem']}
spacing={[0, 16]}
>
<TextIcon color="green" size={14} weight="medium">
<Translate
zh_hant="前往透明度中心"
zh_hans="前往透明度中心"
en="Open Transparency Center"
/>
</TextIcon>
</Button>
</section>
<Term />
</Layout.Main.Spacing>
</Layout.Main>
Expand Down
29 changes: 29 additions & 0 deletions src/views/ToS/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.transparencyEntry {
display: flex;
gap: var(--sp16);
align-items: center;
justify-content: space-between;
padding-bottom: var(--sp24);
margin-bottom: var(--sp24);
border-bottom: 1px solid var(--color-grey-lighter);

& h2 {
font-size: var(--font-size-18);
}

& p {
max-width: 36rem;
margin-top: var(--sp8);
font-size: var(--font-size-14);
color: var(--color-grey-darker);
}

& > a {
flex: 0 0 auto;
}

@media (--sm-down) {
flex-direction: column;
align-items: flex-start;
}
}
Loading