1
0
Fork 0
freesewing/sites/org/components/wrappers/susi.js

28 lines
728 B
JavaScript
Raw Normal View History

const opacity = {
light: 70,
dark: 60,
hax0r: 90,
lgbtq: 80,
}
const SusiWrapper = ({ theme, children }) => (
<section
style={{
2022-12-27 18:20:53 +01:00
backgroundImage: `url('https://static.freesewing.org/img/splash/${theme || 'light'}.jpg')`,
backgroundSize: 'cover',
backgroundPosition: '40% 50%',
}}
className="m-0 p-0 shadow drop-shadow-lg w-full h-screen"
>
<div className="flex flex-col items-center justify-center h-screen mt-4 lg:mt-12 max-w-md m-auto pb-32">
<div
className={`bg-neutral bg-opacity-${opacity[theme]} text-neutral-content rounded-none sm:rounded-lg py-4 px-8 drop-shadow`}
>
{children}
</div>
</div>
</section>
)
export default SusiWrapper