Skip to content

Commit

Permalink
fix: revamped auth background
Browse files Browse the repository at this point in the history
  • Loading branch information
riipandi committed Oct 4, 2024
1 parent 23e9e34 commit 3a58d2c
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 11 deletions.
24 changes: 15 additions & 9 deletions app/routes/_auth+/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export default function AuthLayout() {
<div className="relative hidden bg-center bg-cover bg-no-repeat lg:block lg:w-3/5">
<div
className="absolute inset-0 bg-center bg-cover"
style={{ backgroundImage: `url('/images/cartist-hOGKh5qHNAE-unsplash.jpg')` }}
style={{ backgroundImage: `url('/images/login-illustration.svg')` }}
/>
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-gray-50/70 to-gray-50 dark:via-gray-900/70 dark:to-gray-900" />
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-gray-50/40 to-gray-50 dark:via-gray-900/70 dark:to-gray-900" />
<div className="relative flex h-full items-center px-20">
<div className="rounded-xl p-6">
<h2 className="font-bold text-2xl drop-shadow-[0_0_0.3rem_#ffffff70] sm:text-4xl dark:text-white">
<h2 className="font-bold text-2xl text-gray-100 drop-shadow-[0_0_0.3rem_#00000040] sm:text-4xl dark:text-white dark:drop-shadow-[0_0_0.3rem_#ffffff70]">
Remix Start
</h2>
<p className="mt-3 max-w-xl font-medium text-gray-700 dark:text-gray-100">
<p className="mt-3 max-w-xl font-medium text-gray-100 drop-shadow-[0_0_0.2rem_#00000030] dark:text-gray-100 dark:drop-shadow-[0_0_0.2rem_#ffffff50]">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. In autem ipsa, nulla
laboriosam dolores, repellendus perferendis libero suscipit nam temporibus molestiae
</p>
Expand All @@ -40,11 +40,17 @@ export default function AuthLayout() {
<main className="w-full max-w-md">
<div className="mx-auto flex justify-center">
<Link to="/" title="Back to home">
<img
src="/favicon.svg"
className="h-12 w-auto sm:h-10 dark:invert"
alt="Remix Start"
/>
{['light', 'dark'].map((mode) => (
<img
key={mode}
src={`/${mode === 'dark' ? 'favicon-white.svg' : 'favicon.svg'}`}
className={clx(
mode === 'dark' ? 'hidden dark:block' : 'dark:hidden',
`h-12 w-auto sm:h-10`
)}
alt="Remix Start"
/>
))}
</Link>
</div>

Expand Down
12 changes: 11 additions & 1 deletion app/routes/docs+/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,17 @@ export default function DocsLayout() {
className="group flex flex-row items-center gap-2"
aria-label="Remix Start home"
>
<img src="/favicon.svg" className="h-8 dark:invert" alt="Remix Start" />
{['light', 'dark'].map((mode) => (
<img
key={mode}
src={`/${mode === 'dark' ? 'favicon-white.svg' : 'favicon.svg'}`}
className={clx(
mode === 'dark' ? 'hidden dark:block' : 'dark:hidden',
`h-8 w-auto sm:h-10`
)}
alt="Remix Start"
/>
))}
</Link>
<div className="absolute top-[13px] right-2.5 z-20 block md:hidden">
<button
Expand Down
Binary file removed public/images/cartist-hOGKh5qHNAE-unsplash.jpg
Binary file not shown.
Loading

0 comments on commit 3a58d2c

Please sign in to comment.