refactor: streamline admin access switcher
Remove pseudonym switcher from the floating admin portal and update styles for a cleaner UI footprint.
This commit is contained in:
parent
25326bb97a
commit
85c06ef25e
1 changed files with 4 additions and 43 deletions
47
src/App.tsx
47
src/App.tsx
|
|
@ -90,8 +90,8 @@ export default function App() {
|
|||
<>
|
||||
{renderActivePortfolio()}
|
||||
|
||||
{/* Absolute floating administration and pseudonym portal switcher on the bottom left (hover to show) */}
|
||||
<div className="fixed bottom-3 left-3 opacity-0 hover:opacity-100 focus-within:opacity-100 transition-opacity duration-300 z-40 bg-neutral-950/90 border border-neutral-800 p-2.5 rounded-xl flex flex-wrap items-center gap-4 text-xs font-mono shadow-xl backdrop-blur-sm">
|
||||
{/* Absolute floating administration bypass link hidden on the bottom left (hover to show) */}
|
||||
<div className="fixed bottom-3 left-3 opacity-0 hover:opacity-100 focus-within:opacity-100 transition-opacity duration-300 z-40 bg-neutral-950/90 border border-neutral-800 p-2 rounded-xl flex items-center text-xs font-mono shadow-xl backdrop-blur-sm">
|
||||
<a
|
||||
href="/admin"
|
||||
onClick={(e) => {
|
||||
|
|
@ -99,50 +99,11 @@ export default function App() {
|
|||
window.history.pushState({}, "", "/admin");
|
||||
setCurrentPath("/admin");
|
||||
}}
|
||||
className="text-stone-500 hover:text-cyan-400 font-bold flex items-center gap-1 transition-colors"
|
||||
className="text-stone-500 hover:text-cyan-400 font-bold flex items-center gap-1.5 transition-colors px-1"
|
||||
>
|
||||
<Lock className="w-3.5 h-3.5" />
|
||||
<Lock className="w-3 h-3" />
|
||||
<span>Admin-Zentrale</span>
|
||||
</a>
|
||||
<div className="w-px h-3 bg-neutral-800" />
|
||||
<a
|
||||
href="/"
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
window.history.pushState({}, "", "/");
|
||||
setCurrentPath("/");
|
||||
}}
|
||||
className={`font-bold flex items-center gap-1 transition-colors ${currentPath === "/" ? "text-cyan-400" : "text-stone-500 hover:text-cyan-400"}`}
|
||||
>
|
||||
<Sparkles className="w-3.5 h-3.5" />
|
||||
<span>Sci-Fi & Fantasy</span>
|
||||
</a>
|
||||
<div className="w-px h-3 bg-neutral-800" />
|
||||
<a
|
||||
href="/sensual-moments"
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
window.history.pushState({}, "", "/sensual-moments");
|
||||
setCurrentPath("/sensual-moments");
|
||||
}}
|
||||
className={`font-bold flex items-center gap-1 transition-colors ${currentPath === "/sensual-moments" ? "text-orange-400" : "text-stone-500 hover:text-orange-400"}`}
|
||||
>
|
||||
<Eye className="w-3.5 h-3.5" />
|
||||
<span>Sinnlich (M.S. Velvet)</span>
|
||||
</a>
|
||||
<div className="w-px h-3 bg-neutral-800" />
|
||||
<a
|
||||
href="/clara-finch"
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
window.history.pushState({}, "", "/clara-finch");
|
||||
setCurrentPath("/clara-finch");
|
||||
}}
|
||||
className={`font-bold flex items-center gap-1 transition-colors ${currentPath === "/clara-finch" ? "text-emerald-400" : "text-stone-500 hover:text-emerald-400"}`}
|
||||
>
|
||||
<Leaf className="w-3.5 h-3.5" />
|
||||
<span>Naturlyrik (Clara Finch)</span>
|
||||
</a>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue