use normal css for bg image

This commit is contained in:
incognitotgt 2024-04-15 01:13:50 -04:00
parent c0272a798d
commit d7bb56b815
No known key found for this signature in database
GPG key ID: D229D19A500C60B0

View file

@ -45,7 +45,12 @@ export default function App() {
<Routes />
</div>
<div
className={`z-10 h-full w-full bg-primary ${bgImage && `bg-[url(${bgImage})] bg-cover`}`}
className="z-10 h-full w-full bg-primary"
style={{
backgroundImage: bgImage ? `url(${bgImage})` : "none",
backgroundSize: "contain",
backgroundRepeat: "space"
}}
>
{init && particlesUrl !== "none" && (
<Particles