lifeparticle / binarytree

🕰 We Provide an Array of Developer Productivity Tools Designed To Help You Save Time
https://binarytree.dev
Apache License 2.0
37 stars 13 forks source link

Inline CSS is not loading in Prod #397

Closed lifeparticle closed 10 months ago

lifeparticle commented 11 months ago

Inline CSS is not loading in Prod but works in dev

import style from "./Home.module.scss";
import { Footer } from "components/Layouts";
import Features from "./components/Features";
import Hero from "./components/Hero";
import Contribution from "./components/Contribution";
import grid_light from "assets/Home/grid_light.svg";
import grid_dark from "assets/Home/grid_dark.svg";
import { useMode } from "hooks";

const Home = () => {
    const { isDarkMode } = useMode();

    return (
        <>
            <div
                className={style.home}
                style={{
                    backgroundImage: isDarkMode
                        ? `url(${grid_dark})`
                        : `url(${grid_light})`,
                }}
            >
                <div className={style.home__container}>
                    <Hero />
                    <Features />
                    <Contribution />
                </div>
            </div>
            <Footer />
        </>
    );
};

export default Home;