fix: socials header bg color

This commit is contained in:
Kentai Radiquum 2025-07-25 03:05:23 +05:00
parent 46f7530e71
commit fec0e79c50
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 9 additions and 6 deletions

View file

@ -11,14 +11,17 @@ export const IconWithText = ({
text,
desc,
backgroundColor,
backgroundOpacity
backgroundOpacity,
}: IconWithTextProps) => {
return (
<div
className={`flex items-start gap-2 border-1 px-3 py-1.5 rounded-xl border-white/5 bg-[var(--bg-color)]/[var(--bg-opacity)] ${
backgroundColor ? `` : "bg-[#161213]/25"
} transition-[scale] hover:scale-105 duration-100 ease-in-out`}
style={{ "--bg-color": backgroundColor, "--bg-opacity": backgroundOpacity || "25%" } as React.CSSProperties}
className={`flex items-start gap-2 border-1 px-3 py-1.5 rounded-xl border-white/5 bg-[var(--bg-color)]/[var(--bg-opacity)] transition-[scale] hover:scale-105 duration-100 ease-in-out`}
style={
{
"--bg-color": backgroundColor || "#161213",
"--bg-opacity": backgroundOpacity || "25%",
} as React.CSSProperties
}
>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src={icon} alt={""} />