mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 02:53:51 +00:00
Change header flair to underline from bubble
This commit is contained in:
@@ -43,16 +43,16 @@ function Header() {
|
|||||||
onClick={() => setActiveTab(tab.id)}
|
onClick={() => setActiveTab(tab.id)}
|
||||||
className={`${
|
className={`${
|
||||||
activeTab === tab.id ? "" : "hover:text-white/60"
|
activeTab === tab.id ? "" : "hover:text-white/60"
|
||||||
} relative rounded-full px-3 py-1.5 text-sm font-medium text-white outline-sky-400 transition focus-visible:outline-2`}
|
} relative rounded-full px-3 py-1.5 text-sm font-medium text-light-foreground dark:text-dark-foreground outline-sky-400 transition focus-visible:outline-2`}
|
||||||
style={{
|
style={{
|
||||||
WebkitTapHighlightColor: "transparent",
|
WebkitTapHighlightColor: "transparent",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{activeTab === tab.id && (
|
{activeTab === tab.id && (
|
||||||
<motion.span
|
<motion.div
|
||||||
layoutId="bubble"
|
layoutId="underline"
|
||||||
className="absolute inset-0 z-10 bg-white mix-blend-difference"
|
className="absolute inset-x-0 bottom-0 h-1 bg-light-green-1 dark:bg-dark-green-1"
|
||||||
style={{ borderRadius: 9999 }}
|
style={{ marginLeft: "0.75em", marginRight: "0.75em", borderRadius: 9999 }}
|
||||||
transition={{ type: "spring", bounce: 0.2, duration: 0.6 }}
|
transition={{ type: "spring", bounce: 0.2, duration: 0.6 }}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user