diff --git a/.gitignore b/.gitignore index add57be..916af59 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ bin/ obj/ /packages/ riderModule.iml -/_ReSharper.Caches/ \ No newline at end of file +/_ReSharper.Caches/ +*/appsettings.json \ No newline at end of file diff --git a/SU.LorePage/Layout/Screen.razor.css b/SU.LorePage/Layout/Screen.razor.css deleted file mode 100644 index b1c2856..0000000 --- a/SU.LorePage/Layout/Screen.razor.css +++ /dev/null @@ -1,79 +0,0 @@ -.screen { - display: flex; - box-sizing: border-box; - flex-direction: column; - position: relative; - width: 100%; - height: 100%; - padding: 0.5rem 1ch; - max-width: 82ch; - max-height: 37.45rem; - overflow: hidden; - background-color: var(--bg); - color: var(--fg); - box-shadow: var(--glow); - transition-property: border-radius, filter, transform, opcaity; - transition-duration: 130ms, 130ms, 130ms, 75ms; - transition-timing-function: ease-out; -} - -.header { - display: flex; - flex: none; - gap: 1ch; -} - -.logo { - flex: 0 0 auto; -} - -.nt-logo { - font-weight: 600; - text-align: center; - width: 3ch; -} - -.nt-logo::before, -.nt-logo::after { - content: ""; - display: inline-block; - width: 1ch; - height: 0.75rem; - vertical-align: 0; - background-color: currentColor; -} - -.nt-logo::before { - clip-path: polygon(10% 0, 90% 0, 90% 60%); -} - -.nt-logo::after { - clip-path: polygon(10% 100%, 90% 100%, 10% 40%); -} - -.content { - overflow: auto; - scrollbar-gutter: stable; - scrollbar-width: thin; - scrollbar-color: var(--fg-sys) var(--bg); - white-space-collapse: preserve; -} - -.header-title::before { - content: "- "; -} - -.backlink::before { - content: "← "; - display: inline-block; - text-decoration: none; -} - -.backlink { - white-space-collapse: preserve; - user-select: none; -} - -.backlink:hover { - cursor: pointer; -} \ No newline at end of file diff --git a/SU.LorePage/Program.cs b/SU.LorePage/Program.cs index a623021..02173f8 100644 --- a/SU.LorePage/Program.cs +++ b/SU.LorePage/Program.cs @@ -8,6 +8,8 @@ builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); +builder.Configuration.AddJsonFile("appsettings.json"); + var app = builder.Build(); await app.RunAsync(); \ No newline at end of file diff --git a/SU.LorePage/SU.LorePage.csproj b/SU.LorePage/SU.LorePage.csproj index ffba0a5..c363f51 100644 --- a/SU.LorePage/SU.LorePage.csproj +++ b/SU.LorePage/SU.LorePage.csproj @@ -4,6 +4,8 @@ net8.0 enable enable + true + Exe diff --git a/SU.LorePage/wwwroot/css/app.css b/SU.LorePage/wwwroot/css/app.css index 6c7a5f4..0275a33 100644 --- a/SU.LorePage/wwwroot/css/app.css +++ b/SU.LorePage/wwwroot/css/app.css @@ -209,4 +209,84 @@ a::before { width: 0.5ch; background: var(--fg-block); box-shadow: var(--glow-block); +} + +.screen { + display: flex; + box-sizing: border-box; + flex-direction: column; + position: relative; + width: 100%; + height: 100%; + padding: 0.5rem 1ch; + max-width: 82ch; + max-height: 37.45rem; + overflow: hidden; + background-color: var(--bg); + color: var(--fg); + box-shadow: var(--glow); + transition-property: border-radius, filter, transform, opcaity; + transition-duration: 130ms, 130ms, 130ms, 75ms; + transition-timing-function: ease-out; +} + +.header { + display: flex; + flex: none; + gap: 1ch; +} + +.logo { + flex: 0 0 auto; +} + +.nt-logo { + font-weight: 600; + text-align: center; + width: 3ch; +} + +.nt-logo::before, +.nt-logo::after { + content: ""; + display: inline-block; + width: 1ch; + height: 0.75rem; + vertical-align: 0; + background-color: currentColor; +} + +.nt-logo::before { + clip-path: polygon(10% 0, 90% 0, 90% 60%); +} + +.nt-logo::after { + clip-path: polygon(10% 100%, 90% 100%, 10% 40%); +} + +.content { + overflow: auto; + scrollbar-gutter: stable; + scrollbar-width: thin; + scrollbar-color: var(--fg-sys) var(--bg); + white-space-collapse: preserve; +} + +.header-title::before { + content: "- "; +} + +.backlink::before { + content: "← "; + display: inline-block; + text-decoration: none; +} + +.backlink { + white-space-collapse: preserve; + user-select: none; +} + +.backlink:hover { + cursor: pointer; } \ No newline at end of file