131131
132132
133133< / script>
134- < div bind: this = {presentation}>
135- {#if ! $slide .loading }
136- {#if $slide .settings .showFirst }
137- < section>
138- < div class = " bg-center bg-cover hero h-screen w-screen"
139- style= " background-image:url({ resolveImage($slide.page?.cover) })" >
140- {#if $slide .settings .backgroundShadow }
141- < div class = " hero-overlay bg-opacity-50 " >< / div>
142- {/ if }
143- < div class = " text-center text-neutral-content w-full" >
144- < div class = " " >
145-
146- {#if $slide .page .icon && $slide .settings .showIcon }
147- < div class = " text-7xl" >
148- < Icon icon= {$slide .page .icon }/ >
149- < / div>
150- {/ if }
151- {#if $slide .settings .showTitle }
152- < h1 class = " text-7xl font-bold w-full" >
153- {#if $slide? .page ? .properties ? .Name }
154- < RichText richText= {$slide? .page ? .properties ? .Name ? .title }
155- overrideStyle= {true }/ >
156- {: else if $slide? .page ? .properties ? .title }
157- < RichText richText= {$slide? .page ? .properties ? .title ? .title }
158- overrideStyle= {true }/ >
159- {/ if }
160- < / h1>
161- {/ if }
162- < / div>
134+ < div class = " h-screen w-screen bg-base-100" >
135+ < div bind: this = {presentation}>
136+ {#if ! $slide .loading }
137+ {#if $slide .settings .showFirst }
138+ < section>
139+ < div class = " bg-center bg-cover hero h-screen w-screen"
140+ style= " background-image:url({ resolveImage($slide.page?.cover) })" >
141+ {#if $slide .settings .backgroundShadow }
142+ < div class = " hero-overlay bg-opacity-50 " >< / div>
143+ {/ if }
144+ < div class = " text-center text-neutral-content w-full" >
145+ < div class = " " >
146+
147+ {#if $slide .page .icon && $slide .settings .showIcon }
148+ < div class = " text-7xl" >
149+ < Icon icon= {$slide .page .icon }/ >
150+ < / div>
151+ {/ if }
152+ {#if $slide .settings .showTitle }
153+ < h1 class = " text-7xl font-bold w-full" >
154+ {#if $slide? .page ? .properties ? .Name }
155+ < RichText richText= {$slide? .page ? .properties ? .Name ? .title }
156+ overrideStyle= {true }/ >
157+ {: else if $slide? .page ? .properties ? .title }
158+ < RichText richText= {$slide? .page ? .properties ? .title ? .title }
159+ overrideStyle= {true }/ >
160+ {/ if }
161+ < / h1>
162+ {/ if }
163+ < / div>
163164
165+ < / div>
164166 < / div>
165- < / div>
166- < / section>
167- {/ if }
168- {#each $slide .sections as section,slide}
169- < section class = " p-4 flex-col flex-grow container mx-auto" >
170- {#each section as item}
171- < div class : flex- 1 = {item .type == ' child_database' }>
172- < Renderer items= {[item]}
173- on: mountedToggle= {mountedToggle ()}/ >
174- < / div>
175- {/ each}
176- < / section>
177- {/ each}
178- {: else }
179-
180- loading... it may takes several minutes depending of the length of your document and the speed of notion API .
181-
182- {#if loadingError}
183- < h1 class = " text-5xl" >
184- An error occurred during loading from notion, try to refresh 💪. If the problem persist, contact me ✉️.
185- < / h1>
167+ < / section>
168+ {/ if }
169+ {#each $slide .sections as section,slide}
170+ < section class = " p-4 flex-col flex-grow container mx-auto" >
171+ {#each section as item}
172+ < div class : flex- 1 = {item .type == ' child_database' }>
173+ < Renderer items= {[item]}
174+ on: mountedToggle= {mountedToggle ()}/ >
175+ < / div>
176+ {/ each}
177+ < / section>
178+ {/ each}
179+ {: else }
180+
181+ loading... it may takes several minutes depending of the length of your document and the speed of notion
182+ API .
183+
184+ {#if loadingError}
185+ < h1 class = " text-5xl" >
186+ An error occurred during loading from notion, try to refresh 💪. If the problem persist, contact me
187+ ✉️.
188+ < / h1>
189+ {/ if }
186190 {/ if }
187- { / if }
191+ < / div >
188192< / div>
0 commit comments