mirror of
https://github.com/Radiquum/radiquum.github.io.git
synced 2025-09-07 23:13:55 +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
|
@ -50,7 +50,7 @@ const links = [
|
|||
export const Socials = () => {
|
||||
return (
|
||||
<Section>
|
||||
<h2 className="text-4xl md:text-5xl border-1 px-3 py-2 rounded-xl border-white/5 bg-[#ffb1cd]/5">Socials</h2>
|
||||
<h2 className="text-4xl md:text-5xl border-1 px-3 py-2 rounded-xl border-white/5 bg-[#161213]/25">Socials</h2>
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-2">
|
||||
{links.map((item) => (
|
||||
<Link href={item.url} key={`socials.link.${item.text}`}>
|
||||
|
|
|
@ -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