fix: improve overall rendering (#10)

This commit is contained in:
Walid
2022-02-09 23:27:54 +01:00
committed by GitHub
parent ee73885fe9
commit 48debe8638
12 changed files with 111 additions and 96 deletions

View File

@ -0,0 +1,38 @@
import Image from 'next/image'
export interface ConfirmGuildJoinProps {
className?: string
handleJoinGuild: () => void
}
export const ConfirmGuildJoin: React.FC<ConfirmGuildJoinProps> = (props) => {
const { className, handleJoinGuild } = props
return (
<div className={className}>
<Image
src='/images/svg/design/join-guild.svg'
alt='Joing Guild Illustration'
height={150}
width={150}
/>
<div className='flex flex-col mt-8'>
<h1 className='text-xl mb-6 text-center'>Rejoindre la guild ?</h1>
<div className='flex gap-7'>
<button
className='px-8 py-2 rounded-3xl bg-success hover:opacity-50 transition'
onClick={handleJoinGuild}
>
Oui
</button>
<button
className='px-8 py-2 rounded-3xl bg-error hover:opacity-50 transition'
onClick={handleJoinGuild}
>
Non
</button>
</div>
</div>
</div>
)
}

View File

@ -0,0 +1 @@
export * from './ConfirmGuildJoin'