This commit is contained in:
+21
-25
@@ -150,31 +150,27 @@ export function App() {
|
||||
</div>
|
||||
)}
|
||||
<div className="mx-auto mt-[1vh] sm:mt-[1.5vh] mb-1 w-[min(95vw,380px)] shrink-0">
|
||||
<div className="relative group rounded-full p-[3px]">
|
||||
<div className="absolute inset-0 rounded-full bg-white/5 group-hover:bg-white/15 transition-colors duration-300" />
|
||||
<div className="relative flex rounded-full overflow-hidden bg-[rgba(237,237,237,0.14)] backdrop-blur-[25px]">
|
||||
<div
|
||||
className={`absolute inset-y-0 left-0 w-1/2 rounded-full bg-[rgba(237,237,237,0.32)] backdrop-blur-[10px] 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" : ""
|
||||
}`}
|
||||
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" : ""
|
||||
}`}
|
||||
onClick={() => setActiveTab("media")}
|
||||
>
|
||||
Médias
|
||||
</button>
|
||||
</div>
|
||||
<div className="relative flex rounded-full overflow-hidden bg-[rgba(237,237,237,0.12)] backdrop-blur-[25px] before:absolute before:inset-0 before:rounded-full before:bg-white/0 hover:before:bg-white/8 before:transition-colors before:duration-300">
|
||||
<div
|
||||
className={`absolute inset-y-0 left-0 w-1/2 rounded-full bg-[rgba(237,237,237,0.25)] backdrop-blur-[10px] transition-transform duration-300 ease-in-out`}
|
||||
style={{ transform: activeTab === "media" ? "translateX(100%)" : "translateX(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" : ""
|
||||
}`}
|
||||
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" : ""
|
||||
}`}
|
||||
onClick={() => setActiveTab("media")}
|
||||
>
|
||||
Médias
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user