mirror of
https://github.com/Radiquum/radiquum.github.io.git
synced 2025-09-08 15:33:54 +05:00
refactor: add background to links and headers
feat: add skills
This commit is contained in:
parent
ab5eedeb07
commit
46f7530e71
8 changed files with 99 additions and 17 deletions
|
@ -2,20 +2,23 @@ type IconWithTextProps = {
|
|||
icon: string;
|
||||
text: string;
|
||||
desc: string;
|
||||
hoverTextColor?: string | null;
|
||||
backgroundColor?: string | null;
|
||||
backgroundOpacity?: string | null;
|
||||
};
|
||||
|
||||
export const IconWithText = ({
|
||||
icon,
|
||||
text,
|
||||
desc,
|
||||
hoverTextColor,
|
||||
backgroundColor,
|
||||
backgroundOpacity
|
||||
}: IconWithTextProps) => {
|
||||
return (
|
||||
<div
|
||||
className={`flex items-center gap-1 ${
|
||||
hoverTextColor ? `hover:text-${hoverTextColor}` : ""
|
||||
} transition-[color,_scale] hover:scale-105 duration-100`}
|
||||
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}
|
||||
>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={icon} alt={""} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue