diff --git a/OpenBirchWebsite.Client/.config/dotnet-tools.json b/OpenBirchWebsite.Client/.config/dotnet-tools.json new file mode 100644 index 0000000..8612f23 --- /dev/null +++ b/OpenBirchWebsite.Client/.config/dotnet-tools.json @@ -0,0 +1,13 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "8.0.7", + "commands": [ + "dotnet-ef" + ], + "rollForward": false + } + } +} \ No newline at end of file diff --git a/OpenBirchWebsite.Client/Layout/MainLayout.razor b/OpenBirchWebsite.Client/Layout/MainLayout.razor index ebe3d67..0198285 100644 --- a/OpenBirchWebsite.Client/Layout/MainLayout.razor +++ b/OpenBirchWebsite.Client/Layout/MainLayout.razor @@ -12,7 +12,7 @@ Download - + diff --git a/OpenBirchWebsite.Client/Pages/Download.razor b/OpenBirchWebsite.Client/Pages/Download.razor index 0381f7c..db8d7be 100644 --- a/OpenBirchWebsite.Client/Pages/Download.razor +++ b/OpenBirchWebsite.Client/Pages/Download.razor @@ -2,4 +2,4 @@ Download OpenBirch - \ No newline at end of file + \ No newline at end of file diff --git a/OpenBirchWebsite.Client/Pages/Home.razor b/OpenBirchWebsite.Client/Pages/Home.razor index 2ba687d..203652d 100644 --- a/OpenBirchWebsite.Client/Pages/Home.razor +++ b/OpenBirchWebsite.Client/Pages/Home.razor @@ -2,57 +2,42 @@ Home -Hello, world! -Welcome to your new app, powered by MudBlazor and the .NET 8 Template! +
+ Welcome to
OpenBirch!!!
+
+
+
+ +
+
+
- - You can find documentation and examples on our website here: - - www.mudblazor.com - - +@code { + public string temp = " "; + public bool hasInteracted = false; // Has the user interacted with the input field? -
-Interactivity in this Template -
- - When you opt for the "Global" Interactivity Location,
- the render modes are defined in App.razor and consequently apply to all child components.
- In this case, providers are globally set in the MainLayout.
-
- On the other hand, if you choose the "Per page/component" Interactivity Location,
- it is necessary to include the
-
- <MudPopoverProvider />
- <MudDialogProvider />
- <MudSnackbarProvider />
-
- components on every interactive page.
-
- If a render mode is not specified for a page, it defaults to Server-Side Rendering (SSR),
- similar to this page. While MudBlazor allows pages to be rendered in SSR,
- please note that interactive features, such as buttons and dropdown menus, will not be functional. -
+ protected override async Task OnInitializedAsync() + { + StartAutoTyping(); + } -
-What's New in Blazor with the Release of .NET 8 -
-Prerendering - - If you're exploring the features of .NET 8 Blazor,
you might be pleasantly surprised to learn that each page is prerendered on the server,
regardless of the selected render mode.

- This means that you'll need to inject all necessary services on the server,
even when opting for the wasm (WebAssembly) render mode.

- This prerendering functionality is crucial to ensuring that WebAssembly mode feels fast and responsive,
especially when it comes to initial page load times.

- For more information on how to detect prerendering and leverage the RenderContext, you can refer to the following link: - - More details - -
+ private async void StartAutoTyping() + { + await Task.Delay(1000); -
-InteractiveAuto - - A discussion on how to achieve this can be found here: - - More details - - \ No newline at end of file + foreach (char letter in "Balls... Itchy... HELP ME!!!") + { + temp += letter; + await InvokeAsync(StateHasChanged); // Trigger UI update + await Task.Delay(200); // Non-blocking delay + + if (!hasInteracted) continue; + + temp = ""; // Clear input and let user input + await InvokeAsync(StateHasChanged); + return; + } + } + + +} \ No newline at end of file diff --git a/OpenBirchWebsite.Client/Pages/Home.razor.css b/OpenBirchWebsite.Client/Pages/Home.razor.css new file mode 100644 index 0000000..1304edc --- /dev/null +++ b/OpenBirchWebsite.Client/Pages/Home.razor.css @@ -0,0 +1,10 @@ +.double_centered_boxes { + display: grid; + grid-template-columns: 1fr 1fr; + /*border: red 1mm solid;*/ +} + +.input-field { + max-width: 400px; + min-width: 300px; +} \ No newline at end of file diff --git a/OpenBirchWebsite.Client/Properties/PublishProfiles/FolderProfile.pubxml b/OpenBirchWebsite.Client/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..458cfa8 --- /dev/null +++ b/OpenBirchWebsite.Client/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,23 @@ + + + + + false + false + true + Release + Any CPU + FileSystem + bin\Release\net8.0\browser-wasm\publish\ + FileSystem + <_TargetId>Folder + + net8.0 + browser-wasm + false + c243e272-80d5-4775-95ec-e9c080301927 + true + + \ No newline at end of file diff --git a/OpenBirchWebsite/Components/App.razor b/OpenBirchWebsite/Components/App.razor index a843e7b..2e9ff8a 100644 --- a/OpenBirchWebsite/Components/App.razor +++ b/OpenBirchWebsite/Components/App.razor @@ -7,6 +7,7 @@ + diff --git a/OpenBirchWebsite/wwwroot/images/edj9g2cqox4d1.webp b/OpenBirchWebsite/wwwroot/images/edj9g2cqox4d1.webp new file mode 100644 index 0000000..b40df8f Binary files /dev/null and b/OpenBirchWebsite/wwwroot/images/edj9g2cqox4d1.webp differ