2023-08-27 22:05:09 +00:00
import styles from './Hero.module.scss'
2023-02-17 09:21:02 +00:00
2022-09-09 11:53:35 +00:00
import { showModal } from '../../stores/ui'
2023-02-17 09:21:02 +00:00
import { useLocalize } from '../../context/localize'
2023-09-04 21:50:48 +00:00
import { useRouter } from '../../stores/router'
import { AuthModalSearchParams } from '../Nav/AuthModal/types'
2022-09-09 11:53:35 +00:00
export default ( ) = > {
2023-02-17 09:21:02 +00:00
const { t } = useLocalize ( )
2023-09-04 21:50:48 +00:00
const { changeSearchParam } = useRouter < AuthModalSearchParams > ( )
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 (
2022-11-20 21:23:12 +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'
) }
2023-08-30 20:55:33 +00:00
/ >
2023-08-27 22:05:09 +00:00
< div class = { styles . aboutDiscoursActions } >
2022-11-20 21:23:12 +00:00
< a class = "button" href = "/create" >
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' )
changeSearchParam ( 'mode' , 'register' )
} }
>
2023-08-27 22:05:09 +00:00
{ t ( 'Join the community' ) }
2022-11-20 21:23:12 +00:00
< / a >
< a class = "button" href = "/about/help" >
{ t ( 'Support us' ) }
< / a >
< / div >
2022-09-09 11:53:35 +00:00
< / div >
< / div >
< / div >
< / div >
)
}