Skip to content

Commit

Permalink
[#1584] Add login component in newer landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Sep 4, 2023
1 parent 1c39e0b commit f65ab80
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/src/pages/landing/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { Pagination } from 'swiper'
import moment from 'moment'
import { useDeviceSize } from '../../modules/landing/landing'
import Button from '../../components/button'
import Login from '../../modules/#/view'

const pagination = {
clickable: true,
Expand Down Expand Up @@ -46,6 +47,7 @@ const Landing = () => (
)

const Hero = () => {
const [loginVisible, setLoginVisible] = useState(false)
const [selected, setSelected] = useState('Governments')
const [timeout, _setTimeout] = useState(true)
const intidRef = useRef()
Expand Down Expand Up @@ -98,6 +100,7 @@ const Hero = () => {
}
return (
<>
<Login visible={loginVisible} close={() => setLoginVisible(false)} />
<div className="hero">
<div className="container">
<div className="globe">
Expand Down Expand Up @@ -161,7 +164,12 @@ const Hero = () => {
</AnimatePresence>
))}
</div>
<Button type="primary" size="large" withArrow>
<Button
type="primary"
size="large"
onClick={() => setLoginVisible(true)}
withArrow
>
Join Now
</Button>
</div>
Expand Down

0 comments on commit f65ab80

Please # to comment.