mirror of
https://github.com/Radiquum/radiquum.github.io.git
synced 2025-09-08 15:33:54 +05:00
fix: socials header bg color
This commit is contained in:
parent
46f7530e71
commit
fec0e79c50
2 changed files with 9 additions and 6 deletions
|
@ -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={""} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue