From d9101034c362f69df6f4eb73fa73618fc4b7de64 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 16 Mar 2024 12:21:14 +0000 Subject: [PATCH 1/4] chore: update nuget dependencies - MailKit 4.4.0 - Markdig 0.36.2 - Microsoft.AspNetCore.Components.Web 8.0.3 - Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 8.0.3 - Microsoft.Extensions.FileProviders.Embedded 8.0.3 - Pomelo.EntityFrameworkCore.MySql 8.0.2 --- OliverBooth/OliverBooth.csproj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OliverBooth/OliverBooth.csproj b/OliverBooth/OliverBooth.csproj index ae99a40..2922e7a 100644 --- a/OliverBooth/OliverBooth.csproj +++ b/OliverBooth/OliverBooth.csproj @@ -32,14 +32,14 @@ - + - - - - + + + + - + From a7f7d7862c34a05207e943ca644e2f1c7023eaac Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 16 Mar 2024 12:28:02 +0000 Subject: [PATCH 2/4] style: add rounded border to main container --- src/scss/app.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scss/app.scss b/src/scss/app.scss index 0542b64..3229309 100644 --- a/src/scss/app.scss +++ b/src/scss/app.scss @@ -26,6 +26,7 @@ body { main.container { background: #333; padding: 20px; + border-radius: 5px; } a { @@ -142,6 +143,7 @@ nav { article { background: #333333; padding: 20px; + border-radius: 5px; *:last-child { margin-bottom: 0; From 90f6d34af932fd214c661e951dd94e0152866d55 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 16 Mar 2024 12:28:39 +0000 Subject: [PATCH 3/4] style: reduce nav link size --- src/scss/app.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scss/app.scss b/src/scss/app.scss index 3229309..8ffa1b6 100644 --- a/src/scss/app.scss +++ b/src/scss/app.scss @@ -110,7 +110,7 @@ nav { ul.site-nav { list-style-type: none; padding: 0; - margin: 0 auto; + margin: 20px auto 0 auto; li { display: inline-block; @@ -121,7 +121,7 @@ nav { } a { - font-size: 24px; + font-size: 20px; &:link, &:visited, &:hover, &:active { text-decoration: none; From 9dc12ba3b3e2e750b9e46ddcbdbb850cb837d012 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 16 Mar 2024 12:34:35 +0000 Subject: [PATCH 4/4] refactor: remove usa countdown timer --- OliverBooth/Pages/Shared/_Layout.cshtml | 14 ------------- src/ts/UI.ts | 27 ------------------------- src/ts/app.ts | 7 ------- 3 files changed, 48 deletions(-) diff --git a/OliverBooth/Pages/Shared/_Layout.cshtml b/OliverBooth/Pages/Shared/_Layout.cshtml index 695f461..2ee6fe0 100644 --- a/OliverBooth/Pages/Shared/_Layout.cshtml +++ b/OliverBooth/Pages/Shared/_Layout.cshtml @@ -112,20 +112,6 @@
-@if (!doAprilFools && DateTimeOffset.UtcNow < new DateTime(2024, 03, 08)) -{ -
-
-
00
-
00
-
00
-
00
-
-
-} - -
-
@if (doAprilFools) { diff --git a/src/ts/UI.ts b/src/ts/UI.ts index 34310f8..969fde3 100644 --- a/src/ts/UI.ts +++ b/src/ts/UI.ts @@ -82,33 +82,6 @@ class UI { UI.updateProjectCards(element); } - public static updateUsaCountdown(element?: Element){ - element = element || document.getElementById("usa-countdown"); - - const daysElement = element.querySelector("#usa-countdown-days"); - const hoursElement = element.querySelector("#usa-countdown-hours"); - const minutesElement = element.querySelector("#usa-countdown-minutes"); - const secondsElement = element.querySelector("#usa-countdown-seconds"); - - const start = new Date().getTime(); - const end = Date.UTC(2024, 2, 7, 13, 20); - const diff = end - start; - let days = Math.floor(diff / (1000 * 60 * 60 * 24)); - let hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); - let minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60)); - let seconds = Math.floor((diff % (1000 * 60)) / 1000); - - if (days < 0) days = 0 - if (hours < 0) hours = 0; - if (minutes < 0) minutes = 0; - if (seconds < 0) seconds = 0; - - daysElement.innerHTML = days.toString().padStart(2, '0'); - hoursElement.innerHTML = hours.toString().padStart(2, '0'); - minutesElement.innerHTML = minutes.toString().padStart(2, '0'); - secondsElement.innerHTML = seconds.toString().padStart(2, '0'); - } - /** * Adds Bootstrap tooltips to all elements with a title attribute. * @param element The element to search for elements with a title attribute in. diff --git a/src/ts/app.ts b/src/ts/app.ts index ac67ee4..bcf9d34 100644 --- a/src/ts/app.ts +++ b/src/ts/app.ts @@ -98,13 +98,6 @@ declare const Prism: any; UI.updateUI(); - const usaCountdown = document.getElementById("usa-countdown"); - if (usaCountdown) { - usaCountdown.addEventListener("click", () => window.location.href = "/blog/2024/02/19/the-american"); - UI.updateUsaCountdown(usaCountdown); - setInterval(() => UI.updateUsaCountdown(usaCountdown), 1000); - } - let avatarType = 0; const headshot = document.getElementById("index-headshot") as HTMLImageElement; if (headshot) {