TPH styling

This commit is contained in:
Stone_Red
2024-11-05 23:50:30 +01:00
parent 0a33d7313b
commit 6e4288104a
7 changed files with 40 additions and 30 deletions
+1 -5
View File
@@ -5,11 +5,7 @@
</div> </div>
<main> <main>
<div class="top-row px-4"> <article class="content px-4 d-flex row justify-content-center text-center">
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
</div>
<article class="content px-4">
@Body @Body
</article> </article>
</main> </main>
+17 -17
View File
@@ -9,7 +9,7 @@ main {
} }
.sidebar { .sidebar {
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%); background-image: linear-gradient(225deg, #9423fc 0%, #feac70 99%);
} }
.top-row { .top-row {
@@ -27,23 +27,23 @@ main {
text-decoration: none; text-decoration: none;
} }
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover { .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
text-decoration: underline; text-decoration: underline;
} }
.top-row ::deep a:first-child { .top-row ::deep a:first-child {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
@media (max-width: 640.98px) { @media (max-width: 640.98px) {
.top-row { .top-row {
justify-content: space-between; justify-content: space-between;
} }
.top-row ::deep a, .top-row ::deep .btn-link { .top-row ::deep a, .top-row ::deep .btn-link {
margin-left: 0; margin-left: 0;
} }
} }
@media (min-width: 641px) { @media (min-width: 641px) {
@@ -64,14 +64,14 @@ main {
z-index: 1; z-index: 1;
} }
.top-row.auth ::deep a:first-child { .top-row.auth ::deep a:first-child {
flex: 1; flex: 1;
text-align: right; text-align: right;
width: 0; width: 0;
} }
.top-row, article { .top-row, article {
padding-left: 2rem !important; padding-left: 2rem !important;
padding-right: 1.5rem !important; padding-right: 1.5rem !important;
} }
} }
+12 -3
View File
@@ -1,7 +1,16 @@
@page "/" @page "/"
<PageTitle>Home</PageTitle> <PageTitle>TPH Blazor Spotlight Example</PageTitle>
<h1>Hello, world!</h1> <h1>Welcome to TPH Blazor Spotlight Example</h1>
<h5 class="text-secondary">For everyone that doesn't know: TPH = The Programmer's Hangout</h5>
<h4 class="mt-5">Links</h4>
<p class="mb-0">Discord Server</p>
<a href="https://discord.gg/programming">discord.gg/programming</a>
<p class="mt-4 mb-0">GitHub Repository</p>
<a href="https://github.com/Stone-Red-Code/TPH-Blazor-Spotlight-Example">github.com/Stone-Red-Code/TPH-Blazor-Spotlight-Example</a>
Welcome to your new app.
+3 -2
View File
@@ -1,11 +1,12 @@
using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using TphBlazorSpotlightExample; using TphBlazorSpotlightExample;
var builder = WebAssemblyHostBuilder.CreateDefault(args); WebAssemblyHostBuilder builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app"); builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after"); builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
await builder.Build().RunAsync(); await builder.Build().RunAsync();
+1
View File
@@ -8,3 +8,4 @@
@using Microsoft.JSInterop @using Microsoft.JSInterop
@using TphBlazorSpotlightExample @using TphBlazorSpotlightExample
@using TphBlazorSpotlightExample.Layout @using TphBlazorSpotlightExample.Layout
@using TphBlazorSpotlightExample.Models
+6 -3
View File
@@ -1,5 +1,8 @@
html, body { html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background-color: #121240;
color: aliceblue !important;
overflow: hidden;
} }
h1:focus { h1:focus {
@@ -7,7 +10,7 @@ h1:focus {
} }
a, .btn-link { a, .btn-link {
color: #0071c1; color: #33AAFF;
} }
.btn-primary { .btn-primary {
@@ -17,7 +20,7 @@ a, .btn-link {
} }
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus { .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb; box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
} }
.content { .content {
@@ -82,7 +85,7 @@ a, .btn-link {
} }
.loading-progress circle:last-child { .loading-progress circle:last-child {
stroke: #1b6ec2; stroke: #9423fc;
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%; stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
transition: stroke-dasharray 0.05s ease-in-out; transition: stroke-dasharray 0.05s ease-in-out;
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 51 KiB