Skip to content

Commit

Permalink
login. Added background as an image to allow for rebranding
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyco97 committed Sep 4, 2024
1 parent 7fe3cff commit 7b6705d
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,31 +414,35 @@ export default function Login() {
}

return (
<>
<div>
<Head>
<title>{productName}</title>
</Head>
</div>
<body className='bg-[url(../public/login_background.svg)] bg-cover text-gray-700 dark:text-gray-100'>
<div>
<div className='absolute inset-0 z-[1000rem] hidden lg:block'>
<img
className=' w-full h-full object-contain transform -translate-x-[-20rem] xl:-translate-x-[-16rem] lg:scale-[40%] xl:scale-[60%] 2xl:scale-75'
src='/action_voice-cti.svg'
alt='image'
/>
</div>
{/* login card */}
<div className='w-1/2'>
<div className='absolute top-1/2 left-1/2 lg:left-40 transform -translate-y-1/2 -translate-x-1/2 lg:-translate-x-0'>
<div className='border-b border-gray-200 dark:border-gray-700 rounded-lg bg-gray-50 dark:bg-gray-900 p-10'>
{loginTemplate()}
</div>
<div className='relative min-h-screen'>
<Head>
<title>{productName}</title>
</Head>

{/* Background image */}
<img
className='absolute inset-0 w-full h-full object-cover z-[-1]'
src='/login_background.svg'
alt='background'
/>
<div className='text-gray-700 dark:text-gray-100'>
<div className='absolute inset-0 z-[1000rem] hidden lg:block'>
<img
className='w-full h-full object-contain transform -translate-x-[-20rem] xl:-translate-x-[-16rem] lg:scale-[40%] xl:scale-[60%] 2xl:scale-75'
src='/action_voice-cti.svg'
alt='image'
/>
</div>

{/* login card */}
<div className='w-1/2'>
<div className='absolute top-1/2 left-1/2 lg:left-40 transform -translate-y-1/2 -translate-x-1/2 lg:-translate-x-0'>
<div className='border-b border-gray-200 dark:border-gray-700 rounded-lg bg-gray-50 dark:bg-gray-900 p-10'>
{loginTemplate()}
</div>
</div>
</div>
</body>
</>
</div>
</div>
)
}

0 comments on commit 7b6705d

Please sign in to comment.