From fc670aff4d41176450dbe6873a32c3ed79a1cf10 Mon Sep 17 00:00:00 2001 From: pancakes Date: Fri, 12 Sep 2025 16:12:21 +1000 Subject: [PATCH] Add base home page contents and fix navbar --- PancakesWeb/Components/Pages/Home.razor | 77 ++++++++++++++++++++- PancakesWeb/Components/Pages/Home.razor.css | 61 ++++++++++++++++ PancakesWeb/Components/UI/Navbar.razor | 6 +- PancakesWeb/Components/UI/Navbar.razor.css | 9 +-- PancakesWeb/Data/Link.cs | 56 ++++++++++++--- PancakesWeb/wwwroot/style.css | 48 +++++++++++++ 6 files changed, 237 insertions(+), 20 deletions(-) create mode 100644 PancakesWeb/Components/Pages/Home.razor.css diff --git a/PancakesWeb/Components/Pages/Home.razor b/PancakesWeb/Components/Pages/Home.razor index dfcdf75..ff9b1c8 100644 --- a/PancakesWeb/Components/Pages/Home.razor +++ b/PancakesWeb/Components/Pages/Home.razor @@ -1,7 +1,80 @@ @page "/" +@using PancakesWeb.Data Home -

Hello, world!

+
+

pancakes

+

I'm a cat enby (they/it) from Australia + that likes cats, Linux, and programming. You can find my links, projects, and other pages here.

-Welcome to your new app. \ No newline at end of file +

Accounts

+

Other places you can find me

+ + + +

Blog Posts

+

Things I've written. Licensing can be found in the appropriate page footers

+ + @* TODO: Add blog index *@ + +

Projects

+

Projects that I have created

+ + + +

Contributions

+

Projects that I do not maintain but have contributed to

+ + +
\ No newline at end of file diff --git a/PancakesWeb/Components/Pages/Home.razor.css b/PancakesWeb/Components/Pages/Home.razor.css new file mode 100644 index 0000000..368a3d3 --- /dev/null +++ b/PancakesWeb/Components/Pages/Home.razor.css @@ -0,0 +1,61 @@ +.accounts { + display: flex; + flex-direction: row; + flex-wrap: wrap; + gap: 1rem; + padding-left: 0; + list-style: none; +} + +.account { + display: flex; + flex-direction: row; + align-items: center; + gap: 1rem; + margin-top: 0; +} + +.account-img { + width: 2em; + height: 2em; + object-fit: contain; +} + +.account-details { + display: flex; + flex-direction: column; + + text-wrap: wrap; + word-break: break-word; +} + +.account-username { + font-size: 0.9em; +} + +.links { + display: flex; + flex-direction: column; + gap: 1rem; + padding-left: 0; + list-style: none; +} + +.link :last-child { + margin-bottom: 0; +} + +.link-heading { + font-size: large; + font-weight: bold; +} + +@media screen and (max-width: 768px) { + .accounts { + flex-direction: column; + } + + .account-username { + font-size: inherit; + } +} \ No newline at end of file diff --git a/PancakesWeb/Components/UI/Navbar.razor b/PancakesWeb/Components/UI/Navbar.razor index efc6303..9b45d93 100644 --- a/PancakesWeb/Components/UI/Navbar.razor +++ b/PancakesWeb/Components/UI/Navbar.razor @@ -1,6 +1,6 @@ @using PancakesWeb.Data -