fix: use custom top property for environments in production or not

This commit is contained in:
dvelo 2024-11-23 19:13:18 -06:00
parent 955ba3774c
commit d7714f4cdb

@ -30,6 +30,7 @@
"use client";
import { banner } from "@/config/banner";
import { useEffect, useState, ReactNode } from "react";
export default function StickyTopbar({
@ -60,7 +61,7 @@ export default function StickyTopbar({
return (
<div
className={`transition-all duration-300 ${isSticky ? "fixed top-[70px] left-0 w-full backdrop-blur shadow-lg " + className : "block w-full bg-transparent"}`}
className={`transition-all duration-300 ${isSticky ? "fixed left-0 w-full backdrop-blur shadow-lg " + (banner.isBanner == true ? "top-[70px] " : "top-[38px] ") + className : "block w-full bg-transparent"}`}
>
{children}
</div>