From c901d6ca677c49bc76be8fca0d238b0bf9393f23 Mon Sep 17 00:00:00 2001 From: zhanknight <20487008+zhanknight@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:46:34 -0500 Subject: [PATCH 1/6] Author names appear on content card and links to authors other content --- TacoPoetry.UI/Components/ContentCard.razor | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/TacoPoetry.UI/Components/ContentCard.razor b/TacoPoetry.UI/Components/ContentCard.razor index 7d5dbf4..4a79408 100644 --- a/TacoPoetry.UI/Components/ContentCard.razor +++ b/TacoPoetry.UI/Components/ContentCard.razor @@ -3,6 +3,11 @@
@Content.ContentTitle +

+ by + @Content.ContentAuthor + +

@Content.ContentBody @@ -25,3 +30,5 @@ public Content? Content { get; set; } } + + From 1d657c93ac6738a2ce69a2d904af414c1e3b0769 Mon Sep 17 00:00:00 2001 From: zhanknight <20487008+zhanknight@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:51:27 -0500 Subject: [PATCH 2/6] Rename last musings route and file to poetry --- TacoPoetry.UI/Pages/{Musings.razor => Poetry.razor} | 2 +- TacoPoetry.UI/Program.cs | 3 +++ TacoPoetry.UI/Shared/NavMenu.razor | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) rename TacoPoetry.UI/Pages/{Musings.razor => Poetry.razor} (93%) diff --git a/TacoPoetry.UI/Pages/Musings.razor b/TacoPoetry.UI/Pages/Poetry.razor similarity index 93% rename from TacoPoetry.UI/Pages/Musings.razor rename to TacoPoetry.UI/Pages/Poetry.razor index 15e0284..034d9f3 100644 --- a/TacoPoetry.UI/Pages/Musings.razor +++ b/TacoPoetry.UI/Pages/Poetry.razor @@ -1,5 +1,5 @@ @page "/"; -@page "/musings"; +@page "/poetry";

diff --git a/TacoPoetry.UI/Program.cs b/TacoPoetry.UI/Program.cs index 92dca9d..4245591 100644 --- a/TacoPoetry.UI/Program.cs +++ b/TacoPoetry.UI/Program.cs @@ -2,7 +2,9 @@ using TacoPoetry.UI.Services.Interfaces; var builder = WebApplication.CreateBuilder(args); + builder.Services.AddRazorPages(); + builder.Services.AddServerSideBlazor(); builder.Services.AddHttpClient(client => @@ -25,6 +27,7 @@ app.UseRouting(); app.MapBlazorHub(); + app.MapFallbackToPage("/_Host"); app.Run(); diff --git a/TacoPoetry.UI/Shared/NavMenu.razor b/TacoPoetry.UI/Shared/NavMenu.razor index 6dbfcfb..5c6d921 100644 --- a/TacoPoetry.UI/Shared/NavMenu.razor +++ b/TacoPoetry.UI/Shared/NavMenu.razor @@ -52,12 +52,12 @@ c0.146,0.177,0.291,0.356,0.436,0.539l-0.158,0.148c-0.099,0.093-0.172,0.203-0.225,0.32L13.837,53.352z" /> - Taco Poetry + Taco Poetry
- + Poems From fde33f2dafae0531a30e6311a48b7c38af879c0b Mon Sep 17 00:00:00 2001 From: zhanknight <20487008+zhanknight@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:33:13 -0500 Subject: [PATCH 3/6] Minor styling changes, still not pretty or decently responsive --- TacoPoetry.UI/MainLayout.razor | 8 ++- TacoPoetry.UI/Shared/NavMenu.razor | 95 +++++++----------------------- 2 files changed, 28 insertions(+), 75 deletions(-) diff --git a/TacoPoetry.UI/MainLayout.razor b/TacoPoetry.UI/MainLayout.razor index 55efa93..c2bbe5d 100644 --- a/TacoPoetry.UI/MainLayout.razor +++ b/TacoPoetry.UI/MainLayout.razor @@ -1,5 +1,9 @@ @inherits LayoutComponentBase - -
@Body
+ +
+
@Body
+ +
+ diff --git a/TacoPoetry.UI/Shared/NavMenu.razor b/TacoPoetry.UI/Shared/NavMenu.razor index 5c6d921..2a9993b 100644 --- a/TacoPoetry.UI/Shared/NavMenu.razor +++ b/TacoPoetry.UI/Shared/NavMenu.razor @@ -1,79 +1,28 @@ -