Zmiana iframe listy kanałow na pobierane lokalnie i parsowane

This commit is contained in:
dm
2025-11-26 09:15:29 +01:00
parent 284009d411
commit 8bf578e6d9
7 changed files with 129 additions and 96 deletions

View File

@@ -1,20 +1,26 @@
---
import ChannelSwitcher from "../../islands/ChannelSwitcher.jsx";
const { section } = Astro.props;
---
<section class="fuz-section bg-transparent">
<section class="f-section">
<div class="max-w-7xl mx-auto text-center">
{section.title && (
<h2 class="fuz-section-title">{section.title}</h2>
<h2 class="f-section-title">{section.title}</h2>
)}
{section.content && (
<div class="fuz-markdown mb-10" set:html={section.html} />
<div class="f-markdown mb-10" set:html={section.html} />
)}
<ChannelSwitcher client:load sets={section.iframe_sets} title={section.title} />
{section.iframe_sets && section.iframe_sets.length > 0 && (
<ChannelSwitcher
client:load
sets={section.iframe_sets}
title={section.title}
/>
)}
</div>
</section>