Files
Atomcms-edit/frontend/.next/static/chunks/138iuq.mb8xv3.js
T
2026-05-09 17:32:17 +02:00

1 line
5.2 KiB
JavaScript
Executable File

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91989,e=>{"use strict";var s=e.i(43476),a=e.i(71645),t=e.i(57688),l=e.i(22016),r=e.i(88589),n=e.i(13642),i=e.i(9165);e.s(["default",0,function(){let[e,d]=(0,a.useState)(null),[c,o]=(0,a.useState)([]),[m,x]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{async function e(){let[e,s]=await Promise.all([i.radio.getConfig(),i.radio.getShouts()]);e.data&&d(e.data),s.data&&o(s.data),x(!1)}e();let s=setInterval(e,3e4);return()=>clearInterval(s)},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.default,{}),(0,s.jsx)("main",{className:"bg-background min-h-screen",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto p-4 lg:p-6",children:[(0,s.jsxs)("div",{className:"bg-surface rounded-lg shadow-card overflow-hidden",children:[(0,s.jsxs)("div",{className:"h-48 bg-cover bg-center relative",style:{backgroundImage:"url(/assets/images/kasja_mepage_header.png)"},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50"}),(0,s.jsxs)("div",{className:"relative z-10 h-full flex flex-col items-center justify-center text-white p-4",children:[(0,s.jsx)("h1",{className:"text-3xl md:text-4xl font-bold mb-2",children:"Epicnabbo Radio"}),(0,s.jsx)("p",{className:"text-lg",children:"24/7 de beste muziek!"}),e?.listeners!==void 0&&(0,s.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,s.jsx)("span",{className:"w-3 h-3 rounded-full bg-accent animate-pulse"}),(0,s.jsxs)("span",{className:"font-semibold",children:[e.listeners," luisteraars"]})]})]})]}),(0,s.jsxs)("div",{className:"p-4 md:p-6",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-6 mb-6",children:[(0,s.jsx)("div",{className:"w-32 h-32 rounded-lg overflow-hidden bg-background flex-shrink-0 relative",children:e?.now_playing?.cover?(0,s.jsx)(t.default,{src:e.now_playing.cover,alt:"Album cover",fill:!0,className:"object-cover"}):(0,s.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,s.jsx)("svg",{className:"w-16 h-16 text-text-muted",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"})})})}),(0,s.jsxs)("div",{className:"text-center md:text-left",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted uppercase",children:"Nu speelt"}),(0,s.jsxs)("h2",{className:"text-xl md:text-2xl font-bold text-text-main",children:[e?.now_playing?.title||"Geen muziek",e?.now_playing?.artist&&` - ${e.now_playing.artist}`]}),e?.current_dj&&(0,s.jsxs)(l.default,{href:`/profile/${e.current_dj.username}`,className:"text-primary hover:underline mt-2 inline-block",children:["DJ: ",e.current_dj.username]})]}),(0,s.jsx)("audio",{src:e?.stream_url,controls:!0,className:"ml-auto hidden md:block",autoPlay:!0})]}),(0,s.jsx)("div",{className:"md:hidden mb-6",children:(0,s.jsxs)("a",{href:e?.stream_url,className:"flex items-center justify-center gap-2 w-full py-3 rounded-lg bg-primary text-text-main font-semibold",children:[(0,s.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M8 5v14l11-7z"})}),"Luisteren"]})}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3 justify-center md:justify-start",children:[(0,s.jsx)(l.default,{href:"/community/radio/rooster",className:"px-4 py-2 rounded-lg bg-background hover:bg-gray-200 transition-colors text-sm font-semibold",children:"DJ Rooster"}),(0,s.jsx)(l.default,{href:"/community/radio/dj-aanmelden",className:"px-4 py-2 rounded-lg bg-background hover:bg-gray-200 transition-colors text-sm font-semibold",children:"DJ worden"}),(0,s.jsx)(l.default,{href:"/community/radio/punten",className:"px-4 py-2 rounded-lg bg-background hover:bg-gray-200 transition-colors text-sm font-semibold",children:"Radio Punten"})]})]})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg shadow-card p-4 mt-6",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"Live Nachrichten"}),m?(0,s.jsx)("p",{className:"text-text-muted",children:"Laden..."}):c.length>0?(0,s.jsx)("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:c.map(e=>(0,s.jsxs)("div",{className:"flex gap-3 p-3 rounded-lg bg-background",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-lg overflow-hidden bg-surface relative flex-shrink-0",children:(0,s.jsx)(t.default,{src:e.user.avatar||"https://epicnabbo.nl/imaging/?figure=hr-893-45.hd-180-14.ch-210-30.lg-270-75.sh-290-75&headonly=1&direction=2",alt:e.user.username,fill:!0,className:"object-cover"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(l.default,{href:`/profile/${e.user.username}`,className:"font-semibold text-primary hover:underline",children:e.user.username}),(0,s.jsx)("span",{className:"text-xs text-text-muted",children:new Date(e.created_at).toLocaleString("de-DE")})]}),(0,s.jsx)("p",{className:"text-text-main mt-1 break-words",children:e.message})]})]},e.id))}):(0,s.jsx)("p",{className:"text-text-muted",children:"Nog geen berichten"})]})]})}),(0,s.jsx)(n.default,{})]})}])}]);