UI added toggle theme

This commit is contained in:
rgrgogu
2026-07-15 22:34:12 +08:00
parent 07e8ab2a01
commit 510370b4c3
4 changed files with 31 additions and 3 deletions
+3 -1
View File
@@ -14,6 +14,7 @@
***********************************************************************************************************************************************************************/
import { Link } from 'react-router-dom'
import { RegisterForm } from '../components/RegisterForm'
import { AuthThemeToggle } from '../components/AuthThemeToggle'
import { MetadataProvider } from '@/contexts/MetadataContext'
// TODO: flip to true once the hero banner asset is ready; grid auto-centers the
@@ -31,7 +32,8 @@ export default function Register() {
ogDescription: 'Create an account to access our online course platform.',
}}
>
<div className={`grid min-h-svh ${SHOW_BANNER ? 'lg:grid-cols-2' : ''}`}>
<div className={`relative grid min-h-svh ${SHOW_BANNER ? 'lg:grid-cols-2' : ''}`}>
<AuthThemeToggle className="absolute top-4 right-4 z-10" />
{/* ── Left panel ── */}
<div className="flex flex-col gap-4 p-6 md:p-10">
<div className="flex justify-center">