Section, dodanie sekcji z rozdzieleniem na standardowa i tą pod iframe
This commit is contained in:
20
src/components/sections/SectionIframeChannels.astro
Normal file
20
src/components/sections/SectionIframeChannels.astro
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
import IframeChannelSwitcher from "../../islands/ChannelSwitcher.jsx";
|
||||
|
||||
const { section } = Astro.props;
|
||||
---
|
||||
<section class="fuz-section bg-transparent">
|
||||
<div class="max-w-7xl mx-auto text-center">
|
||||
|
||||
{section.title && (
|
||||
<h2 class="fuz-section-title">{section.title}</h2>
|
||||
)}
|
||||
|
||||
{section.content && (
|
||||
<div class="fuz-markdown mb-10" set:html={section.html} />
|
||||
)}
|
||||
|
||||
<IframeChannelSwitcher client:load sets={section.iframe_sets} />
|
||||
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user