fix: nav hover unified, lightbox full viewport with proper nav
CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 10s
CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 10s
This commit is contained in:
+29
-23
@@ -139,29 +139,35 @@ export function App() {
|
||||
{toast.message}
|
||||
</div>
|
||||
)}
|
||||
<nav className="mx-auto mt-[1vh] sm:mt-[1.5vh] flex trans-bloc rounded-[50px] w-[min(95vw,380px)] shrink-0 relative">
|
||||
<div
|
||||
className={`absolute inset-y-0 left-0 w-1/2 rounded-[50px] glass-button transition-transform duration-300 ease-in-out ${
|
||||
activeTab === "media" ? "translate-x-full" : "translate-x-0"
|
||||
}`}
|
||||
/>
|
||||
<button
|
||||
className={`relative z-10 flex-1 h-full py-2 sm:py-2.5 md:py-3 text-center text-sm sm:text-base md:text-lg transition-all active:scale-95 hover:bg-white/10 ${
|
||||
activeTab === "live" ? "font-medium" : ""
|
||||
}`}
|
||||
onClick={() => setActiveTab("live")}
|
||||
>
|
||||
Live
|
||||
</button>
|
||||
<button
|
||||
className={`relative z-10 flex-1 h-full py-2 sm:py-2.5 md:py-3 text-center text-sm sm:text-base md:text-lg transition-all active:scale-95 hover:bg-white/10 ${
|
||||
activeTab === "media" ? "font-medium" : ""
|
||||
}`}
|
||||
onClick={() => setActiveTab("media")}
|
||||
>
|
||||
Médias
|
||||
</button>
|
||||
</nav>
|
||||
<div className="mx-auto mt-[1vh] sm:mt-[1.5vh] w-[min(95vw,380px)] shrink-0 group">
|
||||
<nav className="flex trans-bloc rounded-full overflow-hidden">
|
||||
<div
|
||||
className={`absolute inset-y-0 left-0 w-1/2 rounded-full glass-button transition-transform duration-300 ease-in-out ${
|
||||
activeTab === "media" ? "translate-x-full" : "translate-x-0"
|
||||
}`}
|
||||
/>
|
||||
<button
|
||||
className={`relative z-10 flex-1 py-2 sm:py-2.5 md:py-3 text-center text-sm sm:text-base md:text-lg transition-all duration-300 active:scale-95 ${
|
||||
activeTab === "live"
|
||||
? "font-medium"
|
||||
: "group-hover:bg-white/12"
|
||||
}`}
|
||||
onClick={() => setActiveTab("live")}
|
||||
>
|
||||
Live
|
||||
</button>
|
||||
<button
|
||||
className={`relative z-10 flex-1 py-2 sm:py-2.5 md:py-3 text-center text-sm sm:text-base md:text-lg transition-all duration-300 active:scale-95 ${
|
||||
activeTab === "media"
|
||||
? "font-medium"
|
||||
: "group-hover:bg-white/12"
|
||||
}`}
|
||||
onClick={() => setActiveTab("media")}
|
||||
>
|
||||
Médias
|
||||
</button>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div className="flex-1 min-h-0 relative overflow-hidden">
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user