Merge branch 'alt-stream'

This commit is contained in:
2026-06-13 15:18:57 +02:00
+28 -3
View File
@@ -1,4 +1,14 @@
import { useState } from "react";
const streams = [
{ id: "aramstream", label: "Aram" },
{ id: "generalstream", label: "General" },
{ id: "gueststream", label: "Guest" },
];
export default function Stream() {
const [activeStream, setActiveStream] = useState("aramstream");
return (
<div className="text-ctp-text flex flex-col min-h-screen px-4 py-6">
<div className="w-full text-center flex flex-col flex-1">
@@ -6,12 +16,27 @@ export default function Stream() {
Stream
</h1>
<div className="flex justify-center gap-2 mb-4">
{streams.map((s) => (
<button
key={s.id}
onClick={() => setActiveStream(s.id)}
className={
activeStream === s.id
? "ui-btn bg-ctp-surface0 text-ctp-text"
: "ui-btn ui-btn:hover"
}
>
{s.label}
</button>
))}
</div>
<div className="stream-frame w-full mx-auto flex-1 max-h-[85vh]">
<iframe
src="https://stream.aramjonghu.nl"
title="Stream"
src={`https://stream.aramjonghu.nl/${activeStream}`}
title={activeStream}
allow="autoplay; fullscreen; picture-in-picture"
loading="lazy"
className="w-full h-full border-0 rounded-lg"
/>
</div>