Skip to content

Commit f7c22f2

Browse files
committed
Added loading spinner when loading presentation slides
1 parent a184cde commit f7c22f2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ProgrammerAl.Site/ProgrammerAl.Site/Pages/PresentationSlides.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@page "/drafts/{PostUrl}/slides/{Index:int}"
33
@using System.Text.Encodings.Web;
44
@using ProgrammerAl.Site.Components
5+
@using ProgrammerAl.Site.Components.AnimatedComponents
56

67
@if (PostData is object)
78
{
@@ -15,7 +16,13 @@
1516
</HeadContent>
1617
}
1718

18-
@if (!string.IsNullOrWhiteSpace(SlidesHtml.Value))
19+
@if (string.IsNullOrWhiteSpace(SlidesHtml.Value))
20+
{
21+
<div class="place-self-center">
22+
<GreenSpinnerComponent TailwindCssHeightClass="h-12" TailwindCssWidthClass="w-12" />
23+
</div>
24+
}
25+
else
1926
{
2027
@SlidesHtml
2128
}

0 commit comments

Comments
 (0)