webapp/src/components/Discours/Hero.tsx

47 lines
1.5 KiB
TypeScript
Raw Normal View History

import { useLocalize } from '~/context/localize'
2024-06-24 17:50:27 +00:00
import { useUI } from '~/context/ui'
2022-09-09 11:53:35 +00:00
2024-06-24 17:50:27 +00:00
import { useSearchParams } from '@solidjs/router'
import styles from './Hero.module.scss'
2022-09-09 11:53:35 +00:00
export default () => {
2023-02-17 09:21:02 +00:00
const { t } = useLocalize()
2024-06-24 17:50:27 +00:00
const { showModal } = useUI()
const [, changeSearchParams] = useSearchParams()
2022-09-09 11:53:35 +00:00
return (
2023-08-27 22:05:09 +00:00
<div class={styles.aboutDiscours}>
2022-11-20 21:23:12 +00:00
<div class="wide-container">
<div class="row">
2023-08-27 22:05:09 +00:00
<div class="col-lg-20 offset-lg-2 col-xl-18 offset-xl-3">
2023-08-30 20:55:33 +00:00
<h4 innerHTML={t('Horizontal collaborative journalistic platform')} />
<p
innerHTML={t(
2024-06-26 08:22:05 +00:00
'Discours is an intellectual environment, a web space and tools that allows authors to collaborate with readers and come together to co-create publications and media projects'
2022-11-20 21:23:12 +00:00
)}
2023-08-30 20:55:33 +00:00
/>
2023-08-27 22:05:09 +00:00
<div class={styles.aboutDiscoursActions}>
2024-07-03 21:25:03 +00:00
<a class="button" href="/edit/new">
2023-08-27 22:05:09 +00:00
{t('Create post')}
2022-11-20 21:23:12 +00:00
</a>
2023-09-04 21:50:48 +00:00
<a
class="button"
onClick={() => {
showModal('auth')
changeSearchParams({
2024-06-26 08:22:05 +00:00
mode: 'register'
})
2023-09-04 21:50:48 +00:00
}}
>
2023-08-27 22:05:09 +00:00
{t('Join the community')}
2022-11-20 21:23:12 +00:00
</a>
2024-07-05 07:23:59 +00:00
<a class="button" href="/support">
2022-11-20 21:23:12 +00:00
{t('Support us')}
</a>
</div>
2022-09-09 11:53:35 +00:00
</div>
</div>
</div>
</div>
)
}