Skip to content
Snippets Groups Projects
Commit 63b74f5d authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

ScreenWrapper: Added option to add backgroundImage

parent a0313e3f
No related branches found
No related tags found
No related merge requests found
import React from 'react';
import ScreenBar from "./ScreenBar";
const ScreenWrapper = (props: {children: any}) => {
const ScreenWrapper = (props: {children: any, backgroundImage?: string}) => {
return (
<div className={"h-full w-full flex flex-col"} style={{backgroundImage: "/logo512.png"}}>
<ScreenBar />
<div className={"layout-grid flex-1 px-8 pb-10"}>
{props.children}
<div className={"relative"}>
<div
className={"absolute inset-0 h-screen w-screen bg-cover blur-lg backdrop-brightness-75"}
style={{backgroundImage: `url('${props.backgroundImage}')`}}
>
</div>
<div className={"absolute inset-0 h-screen w-screen flex flex-col"}>
<ScreenBar />
<div
className={"grid layout-grid flex-1 px-8 pb-8 pt-4 bg-contain bg-no-repeat bg-center"}
style={{
backgroundImage: `url('${props.backgroundImage}')`
}}
>
{props.children}
</div>
</div>
</div>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment