-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat:add Payment Section to register form (#222)
* Feat: improved Upper Slider,lower Slider,fix Responsiveness of EventPage * Feat:fix minor changes * feat:add payment Section in Register Form
- Loading branch information
Showing
5 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { PrimaryButton } from '@/components/shared/Typography/Buttons'; | ||
import { useState } from 'react'; | ||
import { QrModal } from './QrModal'; | ||
|
||
export const QrButton = ({ label }) => { | ||
const [isModalOpen, setIsModalOpen] = useState(false); | ||
|
||
const handleModal = () => { | ||
setIsModalOpen(!isModalOpen); | ||
}; | ||
return ( | ||
<> | ||
<PrimaryButton onClick={handleModal}>{label}</PrimaryButton> | ||
<QrModal isOpen={isModalOpen} onClose={handleModal} /> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { closeIcon } from '@/config/content/Footer'; | ||
import { QrImgUrl } from '@/config/content/Registration/details'; | ||
import { Button, Modal, ModalBody, ModalContent } from '@nextui-org/react'; | ||
import Image from 'next/image'; | ||
|
||
export const QrModal = ({ onClose, isOpen }) => { | ||
return ( | ||
<> | ||
<Modal | ||
size='xl' | ||
isOpen={isOpen} | ||
onClose={onClose} | ||
backdrop='blur' | ||
hideCloseButton={true} | ||
placement='center' | ||
className='backdrop-blur-lg' | ||
> | ||
<ModalContent className='relative bg-[#0000002a] h-[60vh] xxs:h-[70vh] md:h-[90vh] md:mt-48 focus:outline-none focus:border-0'> | ||
<Button | ||
color='danger' | ||
variant='light' | ||
onPress={onClose} | ||
className='absolute top-1 right-0 z-10 focus:outline-none focus:border-0' | ||
> | ||
<Image src={closeIcon} alt='close' width={30} height={30} /> | ||
</Button> | ||
<ModalBody className='h-full flex flex-col justify-center items-center'> | ||
<Image | ||
src={QrImgUrl} | ||
alt='Qr' | ||
fill | ||
style={{ objectFit: 'fill', borderRadius: '16px' }} | ||
/> | ||
</ModalBody> | ||
</ModalContent> | ||
</Modal> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters