diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8f62fd7..ed6fab7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,17 +15,7 @@ jobs: - name: Setup .NET Core SDK uses: actions/setup-dotnet@v2.0.0 with: - dotnet-version: 6.0.x - - - name: Setup Node.js environment - uses: actions/setup-node@v3.1.1 - - # TO DO: this can be improved... - - name: Compile Sass - run: | - npm install -g sass - sass Site.Wasm/Pages - sass Site.Wasm/Shared + dotnet-version: 7.0.x - name: Publish project run: dotnet publish Site.Wasm -o release --nologo @@ -40,4 +30,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4.3.0 with: branch: gh-pages - folder: release/wwwroot + folder: release/wwwroot \ No newline at end of file diff --git a/Site.Wasm/Models/Painting.cs b/Site.Wasm/Models/Painting.cs deleted file mode 100644 index 717f257..0000000 --- a/Site.Wasm/Models/Painting.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -namespace Site.Wasm.Models -{ - public class Painting - { -#nullable disable - public string Name { get; set; } - - public string Link { get; set; } - - public string Description { get; set; } - - public int Year { get; set; } -#nullable enable - } -} - diff --git a/Site.Wasm/Pages/About.razor.less b/Site.Wasm/Pages/About.razor.less new file mode 100644 index 0000000..f7cca53 --- /dev/null +++ b/Site.Wasm/Pages/About.razor.less @@ -0,0 +1,2 @@ +body { +} diff --git a/Site.Wasm/Pages/About.razor.scss b/Site.Wasm/Pages/About.razor.scss deleted file mode 100644 index 61ea360..0000000 --- a/Site.Wasm/Pages/About.razor.scss +++ /dev/null @@ -1,5 +0,0 @@ - -dev { - background-color: red; -} - diff --git a/Site.Wasm/Pages/Index.razor b/Site.Wasm/Pages/Index.razor index adee4a7..509644d 100644 --- a/Site.Wasm/Pages/Index.razor +++ b/Site.Wasm/Pages/Index.razor @@ -8,17 +8,4 @@ - -@code { - string? _buildVersion; - - protected override void OnInitialized() - { - _buildVersion = Assembly.GetExecutingAssembly() - ?.GetCustomAttribute() - ?.InformationalVersion; - } -} \ No newline at end of file + \ No newline at end of file diff --git a/Site.Wasm/Pages/Index.razor.scss b/Site.Wasm/Pages/Index.razor.scss deleted file mode 100644 index 6d37a73..0000000 --- a/Site.Wasm/Pages/Index.razor.scss +++ /dev/null @@ -1,65 +0,0 @@ -@import "../Styles/_variables.scss"; - -h1 { - margin: 50px; -} - -span { - margin: 25px; - line-height: 2; -} - -span, h1 { - padding: 5px; - width: 100%; -} - -header { - position: relative; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - width: 100%; - height: 500px; - - > span > a { - @keyframes inverse-colour { - 0%, 49% { - opacity: 1; - } - - 50% { - background-color: transparent; - color: white; - } - - 51%, 100% { - opacity: 1; - } - } - - color: $primary-color-dark; - font-style: normal; - background-color: white; - padding: 3px; - animation: inverse-colour 10s linear infinite; - - @for $i from 1 through 2 { - &:nth-of-type(#{$i}) { - animation-delay: random(200) + ms; - } - } - } -} - -footer { - margin-top: auto; - display: flex; - justify-content: space-between; -} - -a.about { - color: #0D1315; - background-color: white; -} \ No newline at end of file diff --git a/Site.Wasm/Program.cs b/Site.Wasm/Program.cs index 334f5f0..c918270 100644 --- a/Site.Wasm/Program.cs +++ b/Site.Wasm/Program.cs @@ -1,13 +1,19 @@ using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; -using Site.Wasm; - +using Site.Wasm; var builder = WebAssemblyHostBuilder.CreateDefault(args); -builder.RootComponents.Add("#app"); + +builder.RootComponents.Add("app"); +builder.RootComponents.Add("head::after"); + ConfigureServices(builder.Services, builder.HostEnvironment.BaseAddress); +await builder.Build().RunAsync(); + -static void ConfigureServices(IServiceCollection services, string baseAddress) -{ - services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(baseAddress) }); +// To facilitate BlazorWasmPreRendering.Build +// https://github.com/jsakamoto/BlazorWasmPreRendering.Build#services-registration +static void ConfigureServices(IServiceCollection services, string baseAddress) +{ + services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(baseAddress) }); } \ No newline at end of file diff --git a/Site.Wasm/Shared/MainLayout.razor b/Site.Wasm/Shared/MainLayout.razor index 162c9fd..a42f1f2 100644 --- a/Site.Wasm/Shared/MainLayout.razor +++ b/Site.Wasm/Shared/MainLayout.razor @@ -1,4 +1,5 @@ -@inherits LayoutComponentBase +@using System.Reflection; +@inherits LayoutComponentBase @@ -7,4 +8,15 @@ - \ No newline at end of file + + +@code { + string? _buildVersion; + + protected override void OnInitialized() + { + _buildVersion = Assembly.GetExecutingAssembly() + ?.GetCustomAttribute() + ?.InformationalVersion; + } +} \ No newline at end of file diff --git a/Site.Wasm/Site.Wasm.csproj b/Site.Wasm/Site.Wasm.csproj index 6254f95..ccbb137 100644 --- a/Site.Wasm/Site.Wasm.csproj +++ b/Site.Wasm/Site.Wasm.csproj @@ -1,29 +1,28 @@ - - net6.0 - enable - enable - 1.0.0 - + + net7.0 + enable + enable + 1.1.0 + - - true - + + true + - - - - - + + + + + + - - - - - + + + - - - + + + diff --git a/Site.Wasm/Site.Wasm.sln b/Site.Wasm/Site.Wasm.sln index c2bee95..aba7a41 100644 --- a/Site.Wasm/Site.Wasm.sln +++ b/Site.Wasm/Site.Wasm.sln @@ -1,15 +1,22 @@ Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.810.22 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33122.133 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Site.Wasm", "Site.Wasm.csproj", "{AF2BC5C0-6AF5-40F7-8250-0C5A874B2ECD}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Site.Wasm", "Site.Wasm.csproj", "{AF2BC5C0-6AF5-40F7-8250-0C5A874B2ECD}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionItems", "{EE4B691A-BAC9-482A-A7CC-BDF1A4684E8D}" ProjectSection(SolutionItems) = preProject ..\.gitignore = ..\.gitignore EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{E23CF1E9-70F5-417F-991C-C43D401AB5F2}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{3C20D4D4-D6EC-4EF7-AF96-F2E53EC4B6C3}" + ProjectSection(SolutionItems) = preProject + ..\.github\workflows\main.yml = ..\.github\workflows\main.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -24,6 +31,9 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {3C20D4D4-D6EC-4EF7-AF96-F2E53EC4B6C3} = {E23CF1E9-70F5-417F-991C-C43D401AB5F2} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {58E98F5F-65AE-48EE-BCAA-6838738FA4C1} EndGlobalSection diff --git a/Site.Wasm/Styles/_normalize.scss b/Site.Wasm/Styles/_normalize.scss deleted file mode 100644 index fa4e73d..0000000 --- a/Site.Wasm/Styles/_normalize.scss +++ /dev/null @@ -1,447 +0,0 @@ -/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ - -/* Document - ========================================================================== */ - -/** - * 1. Correct the line height in all browsers. - * 2. Prevent adjustments of font size after orientation changes in - * IE on Windows Phone and in iOS. - */ - -html { - line-height: 1.15; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ - -webkit-text-size-adjust: 100%; /* 2 */ -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers (opinionated). - */ - -body { - margin: 0; -} - -/** - * Add the correct display in IE 9-. - */ - -article, -aside, -footer, -header, -nav, -section { - display: block; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/* Grouping content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - * 1. Add the correct display in IE. - */ - -figcaption, -figure, -main { /* 1 */ - display: block; -} - -/** - * Add the correct margin in IE 8. - */ - -figure { - margin: 1em 40px; -} - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - -hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/* Text-level semantics - ========================================================================== */ - -/** - * 1. Remove the gray background on active links in IE 10. - * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. - */ - -a { - background-color: transparent; /* 1 */ - -webkit-text-decoration-skip: objects; /* 2 */ -} - -/** - * 1. Remove the bottom border in Chrome 57- and Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - -abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ -} - -/** - * Prevent the duplicate application of `bolder` by the next rule in Safari 6. - */ - -b, -strong { - font-weight: inherit; -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - -b, -strong { - font-weight: bolder; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -code, -kbd, -samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/** - * Add the correct font style in Android 4.3-. - */ - -dfn { - font-style: italic; -} - -/** - * Add the correct background and color in IE 9-. - */ - -mark { - background-color: #ff0; - color: #000; -} - -/** - * Add the correct font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -audio, -video { - display: inline-block; -} - -/** - * Add the correct display in iOS 4-7. - */ - -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Remove the border on images inside links in IE 10-. - */ - -img { - border-style: none; -} - -/** - * Hide the overflow in IE. - */ - -svg:not(:root) { - overflow: hidden; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers (opinionated). - * 2. Remove the margin in Firefox and Safari. - */ - -button, -input, -optgroup, -select, -textarea { - font-family: sans-serif; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ - margin: 0; /* 2 */ -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { /* 1 */ - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - -button, -select { /* 1 */ - text-transform: none; -} - -/** - * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` - * controls in Android 4. - * 2. Correct the inability to style clickable types in iOS and Safari. - */ - -button, -html [type="button"], /* 1 */ -[type="reset"], -[type="submit"] { - -webkit-appearance: button; /* 2 */ -} - -/** - * Remove the inner border and padding in Firefox. - */ - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ - -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Correct the padding in Firefox. - */ - -fieldset { - padding: 0.35em 0.75em 0.625em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - -legend { - box-sizing: border-box; /* 1 */ - color: inherit; /* 2 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - white-space: normal; /* 1 */ -} - -/** - * 1. Add the correct display in IE 9-. - * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - -progress { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ -} - -/** - * Remove the default vertical scrollbar in IE. - */ - -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10-. - * 2. Remove the padding in IE 10-. - */ - -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - -[type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/** - * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. - */ - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in IE 9-. - * 1. Add the correct display in Edge, IE, and Firefox. - */ - -details, /* 1 */ -menu { - display: block; -} - -/* - * Add the correct display in all browsers. - */ - -summary { - display: list-item; -} - -/* Scripting - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -canvas { - display: inline-block; -} - -/** - * Add the correct display in IE. - */ - -template { - display: none; -} - -/* Hidden - ========================================================================== */ - -/** - * Add the correct display in IE 10-. - */ - -[hidden] { - display: none; -} diff --git a/Site.Wasm/Styles/_variables.scss b/Site.Wasm/Styles/_variables.scss deleted file mode 100644 index 59f073a..0000000 --- a/Site.Wasm/Styles/_variables.scss +++ /dev/null @@ -1,49 +0,0 @@ -// colour palette -$primary-color: #1B2328; -$primary-color-light: lighten($primary-color, 15%); -$primary-color-dark: darken($primary-color, 15%) !default; - -$secondary-color: #E9BCB7; -$success-color: #9CB8CA; -$error-color: #9C434A; -$link-color: #61747F; - -// Media Query Ranges (From material UI). -$small-screen-up: 601px !default; -$medium-screen-up: 993px !default; -$large-screen-up: 1201px !default; -$small-screen: 600px !default; -$medium-screen: 992px !default; -$large-screen: 1200px !default; - -$medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default; -$large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default; -$extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default; -$small-and-down: "only screen and (max-width : #{$small-screen})" !default; -$medium-and-down: "only screen and (max-width : #{$medium-screen})" !default; -$medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default; - -// Navigation bar (Also from material UI). -$navbar-height: 64px !default; -$navbar-line-height: $navbar-height !default; -$navbar-height-mobile: 56px !default; -$navbar-line-height-mobile: $navbar-height-mobile !default; -$navbar-font-size: 1rem !default; -$navbar-font-color: #fff !default; -$navbar-brand-font-size: 2.1rem !default; - -// z-depth for box-shadows. (adapted from material UI). - -// Z-levels -$z-depth-0: none; - -/* 2dp elevation modified*/ -$z-depth-1: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2); -$z-depth-1-half: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2); -$z-depth-2: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.3); -$z-depth-3: 0 8px 17px 2px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2); -$z-depth-4: 0 16px 24px 2px rgba(0,0,0,0.14), 0 6px 30px 5px rgba(0,0,0,0.12), 0 8px 10px -7px rgba(0,0,0,0.2); - -/* 24dp elevation */ -$z-depth-5: 0 24px 38px 3px rgba(0,0,0,0.14), 0 9px 46px 8px rgba(0,0,0,0.12), 0 11px 15px -7px rgba(0,0,0,0.2); - diff --git a/Site.Wasm/Styles/app.less b/Site.Wasm/Styles/app.less new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/Site.Wasm/Styles/app.less @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Site.Wasm/Styles/app.scss b/Site.Wasm/Styles/app.scss deleted file mode 100644 index 54f24fe..0000000 --- a/Site.Wasm/Styles/app.scss +++ /dev/null @@ -1,76 +0,0 @@ -@import "_variables.scss"; -@import "_normalize.scss"; - -html, body { - font-family: 'Roboto Mono', monospace; - color: white; -} - -html { - box-sizing: border-box; -} - -body { - background-color: #00130F; - background: linear-gradient(-45deg, #121212, #292323, #0C0C0C, #00130F); - background-size: 400% 400%; - animation: gradient 15s ease infinite; - - @keyframes gradient { - 0% { - background-position: 0% 50%; - } - - 50% { - background-position: 100% 50%; - } - - 100% { - background-position: 0% 50%; - } - } -} - -*, *:before, *:after { - box-sizing: inherit; - color: inherit; -} - -body { - display: flex; - min-height: 100vh; - flex-direction: column; -} - -.app { - flex: 1 0 auto; -} - -#blazor-error-ui { - background: lightyellow; - bottom: 0; - box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); - display: none; - left: 0; - padding: 0.6rem 1.25rem 0.7rem 1.25rem; - position: fixed; - width: 100%; - z-index: 1000; -} - -#blazor-error-ui .dismiss { - cursor: pointer; - position: absolute; - right: 0.75rem; - top: 0.5rem; -} - -.blazor-error-boundary { - background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121; - padding: 1rem 1rem 1rem 3.7rem; - color: white; -} - -.blazor-error-boundary::after { - content: "An error has occurred." -} \ No newline at end of file diff --git a/Site.Wasm/_Imports.razor b/Site.Wasm/_Imports.razor index b59eb6b..d88df34 100644 --- a/Site.Wasm/_Imports.razor +++ b/Site.Wasm/_Imports.razor @@ -7,5 +7,4 @@ @using Microsoft.AspNetCore.Components.WebAssembly.Http @using Microsoft.JSInterop @using Site.Wasm -@using Site.Wasm.Models @using Site.Wasm.Shared \ No newline at end of file diff --git a/Site.Wasm/compilerconfig.json b/Site.Wasm/compilerconfig.json new file mode 100644 index 0000000..e4f6f39 --- /dev/null +++ b/Site.Wasm/compilerconfig.json @@ -0,0 +1,6 @@ +[ + { + "outputFile": "Pages/About.razor.css", + "inputFile": "Pages/About.razor.less" + } +] \ No newline at end of file diff --git a/Site.Wasm/compilerconfig.json.defaults b/Site.Wasm/compilerconfig.json.defaults new file mode 100644 index 0000000..e96b6b3 --- /dev/null +++ b/Site.Wasm/compilerconfig.json.defaults @@ -0,0 +1,71 @@ +{ + "compilers": { + "less": { + "autoPrefix": "", + "cssComb": "none", + "ieCompat": true, + "math": null, + "strictMath": false, + "strictUnits": false, + "relativeUrls": true, + "rootPath": "", + "sourceMapRoot": "", + "sourceMapBasePath": "", + "sourceMap": false + }, + "sass": { + "autoPrefix": "", + "loadPaths": "", + "style": "expanded", + "relativeUrls": true, + "sourceMap": false + }, + "nodesass": { + "autoPrefix": "", + "includePath": "", + "indentType": "space", + "indentWidth": 2, + "outputStyle": "nested", + "precision": 5, + "relativeUrls": true, + "sourceMapRoot": "", + "lineFeed": "", + "sourceMap": false + }, + "stylus": { + "sourceMap": false + }, + "babel": { + "sourceMap": false + }, + "coffeescript": { + "bare": false, + "runtimeMode": "node", + "sourceMap": false + }, + "handlebars": { + "root": "", + "noBOM": false, + "name": "", + "namespace": "", + "knownHelpersOnly": false, + "forcePartial": false, + "knownHelpers": [], + "commonjs": "", + "amd": false, + "sourceMap": false + } + }, + "minifiers": { + "css": { + "enabled": true, + "termSemicolons": true, + "gzip": false + }, + "javascript": { + "enabled": true, + "termSemicolons": true, + "gzip": false + } + } +} \ No newline at end of file diff --git a/Site.Wasm/wwwroot/img/background.jpg b/Site.Wasm/wwwroot/img/background.jpg deleted file mode 100644 index 5bcdd29..0000000 Binary files a/Site.Wasm/wwwroot/img/background.jpg and /dev/null differ diff --git a/Site.Wasm/wwwroot/img/nundah.jpeg b/Site.Wasm/wwwroot/img/nundah.jpeg deleted file mode 100644 index c70213c..0000000 Binary files a/Site.Wasm/wwwroot/img/nundah.jpeg and /dev/null differ diff --git a/Site.Wasm/wwwroot/index.html b/Site.Wasm/wwwroot/index.html index 0553257..2337dce 100644 --- a/Site.Wasm/wwwroot/index.html +++ b/Site.Wasm/wwwroot/index.html @@ -11,23 +11,17 @@ - - - - - - - - loading + + Loading... + An unhandled error has occurred. Reload 🗙 -