Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(collection/presentation): prepare structure for Reveal.js
Elian Doran56b8381680bd
diff --git a/apps/client/src/widgets/collections/presentation/index.tsx b/apps/client/src/widgets/collections/presentation/index.tsxindex 8fd856acd4..ae2c645864 100644--- a/apps/client/src/widgets/collections/presentation/index.tsx+++ b/apps/client/src/widgets/collections/presentation/index.tsx@@ -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>+ );}