63 lines
2.1 KiB
TypeScript
63 lines
2.1 KiB
TypeScript
"use client"
|
|
|
|
import {
|
|
ListMusic,
|
|
Music,
|
|
Pause,
|
|
Repeat,
|
|
Shuffle,
|
|
SkipBack,
|
|
SkipForward,
|
|
Volume2,
|
|
} from "lucide-react"
|
|
|
|
import { Button } from "@/components/ui/button"
|
|
|
|
export function PlayerBar() {
|
|
return (
|
|
<div className="pointer-events-none fixed bottom-0 left-0 right-0 z-10 flex justify-center px-4 pb-4 md:left-[var(--sidebar-width)] md:peer-data-[state=collapsed]:left-0">
|
|
<div className="pointer-events-auto flex w-full max-w-3xl items-center gap-3 rounded-xl border bg-card/80 px-3 py-2 shadow-lg backdrop-blur">
|
|
<div className="flex items-center gap-1">
|
|
<Button variant="ghost" size="icon" aria-label="Shuffle">
|
|
<Shuffle />
|
|
</Button>
|
|
<Button variant="ghost" size="icon" aria-label="Previous">
|
|
<SkipBack />
|
|
</Button>
|
|
<Button variant="ghost" size="icon" aria-label="Play">
|
|
<Pause />
|
|
</Button>
|
|
<Button variant="ghost" size="icon" aria-label="Next">
|
|
<SkipForward />
|
|
</Button>
|
|
<Button variant="ghost" size="icon" aria-label="Repeat">
|
|
<Repeat />
|
|
</Button>
|
|
</div>
|
|
|
|
<div className="flex min-w-0 flex-1 items-center justify-center gap-3 rounded-lg bg-muted/60 px-3 py-1.5">
|
|
<div className="size-8 shrink-0 rounded bg-gradient-to-br from-emerald-500 to-teal-800" />
|
|
<div className="min-w-0 text-center">
|
|
<p className="truncate text-sm font-medium">Ends of the Earth</p>
|
|
<p className="truncate text-xs text-muted-foreground">
|
|
The Longest Johns — Ends of the Earth
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="flex items-center gap-1">
|
|
<Button variant="ghost" size="icon" aria-label="Lyrics">
|
|
<Music />
|
|
</Button>
|
|
<Button variant="ghost" size="icon" aria-label="Queue">
|
|
<ListMusic />
|
|
</Button>
|
|
<Button variant="ghost" size="icon" aria-label="Volume">
|
|
<Volume2 />
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|