mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 14:49:01 +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 ]);
|
||||
|
||||
return (slides && slides?.map(slide => (
|
||||
<Slide note={slide} />
|
||||
)));
|
||||
return (
|
||||
<div className="reveal">
|
||||
<div className="slides">
|
||||
{slides && slides?.map(slide => (
|
||||
<Slide note={slide} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
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