99 <link href =" css/cb.website.spa.@(LocalizationSettings.GetCurrentLanguageDirection().ToLower()).min.css" rel =" stylesheet" />
1010</HeadContent >
1111
12- <SplashScreen BrandName =" @ApplicationSettings.Localized.Name" BackgroundCssClass =" simple-layout-dark-bg" ProgressBarCssClass =" simple-layout-title-color" OnStarted =" HandleSplashStarted" />
13-
14- @if (SplashScreenStarted )
15- {
16- <div class =" website-wrapper" >
17- <BlazoredToasts Position =" ToastPosition.BottomCenter"
18- Timeout =" 5"
19- IconType =" IconType.Material"
20- ErrorIcon =" "
21- InfoIcon =" "
22- SuccessIcon =" "
23- WarningIcon =" "
24- ShowProgressBar =" true" />
25-
26- <NavMenu />
27-
28- <main >
29- @Body
30- </main >
31-
32- <Footer />
33-
34- @if (SettingAccessorService .Settings .AIChatBot .ShowChatBotWidgetOnWebsite )
35- {
36- <div class =" chat-widget" >
37- <ChatBotWidget Theme =" ChatBotWidgetTheme.Dark" />
38- </div >
39- }
40- </div >
41-
42- }
43-
44- @code {
45- /// <summary >
46- /// Controls whether the splash screen has finished and the main content should be displayed.
47- /// This demonstrates how to implement a loading state for better user experience.
48- /// </summary >
49- bool SplashScreenStarted = false ;
50-
51- /// <summary >
52- /// Event handler called when the splash screen animation completes.
53- /// Sets the flag to show the main website content and hide the splash screen.
54- /// This demonstrates how to handle component lifecycle events in Blazor.
55- /// </summary >
56- private void HandleSplashStarted ()
12+ <SplashScreen BrandName =" @ApplicationSettings.Localized.Name" BackgroundCssClass =" simple-layout-dark-bg" ProgressBarCssClass =" simple-layout-title-color" />
13+
14+ <div id =" main-layout-wrapper" class =" website-wrapper" >
15+ <BlazoredToasts Position =" ToastPosition.BottomCenter"
16+ Timeout =" 5"
17+ IconType =" IconType.Material"
18+ ErrorIcon =" "
19+ InfoIcon =" "
20+ SuccessIcon =" "
21+ WarningIcon =" "
22+ ShowProgressBar =" true" />
23+
24+ <NavMenu />
25+
26+ <main >
27+ @Body
28+ </main >
29+
30+ <Footer />
31+
32+ @if (SettingAccessorService .Settings .AIChatBot .ShowChatBotWidgetOnWebsite )
5733 {
58- SplashScreenStarted = true ;
34+ <div class =" chat-widget" >
35+ <ChatBotWidget Theme =" ChatBotWidgetTheme.Dark" />
36+ </div >
5937 }
60- }
38+
39+ </div >
0 commit comments