mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-11-03 07:35:44 +00:00
feat: custom background image config option
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { useAppContext } from "@/context/app-context";
|
||||
import { LanguageSelector } from "../language/language";
|
||||
|
||||
export const Layout = ({ children }: { children: React.ReactNode }) => {
|
||||
const { backgroundImage } = useAppContext();
|
||||
|
||||
return (
|
||||
<div className="flex flex-col justify-center items-center min-h-svh bg-[url(/background.jpg)] bg-cover">
|
||||
<div
|
||||
className={`flex flex-col justify-center items-center min-h-svh bg-[url(${backgroundImage})] bg-cover`}
|
||||
>
|
||||
<img></img>
|
||||
<LanguageSelector />
|
||||
{children}
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,8 @@ export const appContextSchema = z.object({
|
||||
genericName: z.string(),
|
||||
domain: z.string(),
|
||||
forgotPasswordMessage: z.string(),
|
||||
oauthAutoRedirect: z.string(),
|
||||
// oauthAutoRedirect: z.string(),
|
||||
backgroundImage: z.string(),
|
||||
})
|
||||
|
||||
export type AppContextSchema = z.infer<typeof appContextSchema>;
|
||||
Reference in New Issue
Block a user