mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
chore(collection/presentation): prepare structure for Reveal.js
This commit is contained in:
parent
81b2b18eb7
commit
56b8381680
@ -15,11 +15,22 @@ function Presentation({ note }: { note: FNote }) {
|
|||||||
note.getChildNotes().then(setSlides);
|
note.getChildNotes().then(setSlides);
|
||||||
}, [ note ]);
|
}, [ note ]);
|
||||||
|
|
||||||
return (slides && slides?.map(slide => (
|
return (
|
||||||
<Slide note={slide} />
|
<div className="reveal">
|
||||||
)));
|
<div className="slides">
|
||||||
|
{slides && slides?.map(slide => (
|
||||||
|
<Slide note={slide} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Slide({ note }: { note: FNote }) {
|
function Slide({ note }: { note: FNote }) {
|
||||||
return <p>{note.title}</p>
|
return (
|
||||||
|
<section>
|
||||||
|
<p>{note.title}</p>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user