From ca997d10b19e71ab376fcb926010d583e65591a8 Mon Sep 17 00:00:00 2001
From: pancakes
Date: Fri, 12 Sep 2025 20:18:39 +1000
Subject: [PATCH] Add webrings
---
PancakesWeb/Components/Pages/Home.razor | 14 ++++++++++++++
PancakesWeb/Data/Webring.cs | 23 +++++++++++++++++++++++
PancakesWeb/wwwroot/style.css | 4 ++++
3 files changed, 41 insertions(+)
create mode 100644 PancakesWeb/Data/Webring.cs
diff --git a/PancakesWeb/Components/Pages/Home.razor b/PancakesWeb/Components/Pages/Home.razor
index c4731fc..e8bf596 100644
--- a/PancakesWeb/Components/Pages/Home.razor
+++ b/PancakesWeb/Components/Pages/Home.razor
@@ -107,4 +107,18 @@
}
+
+
Webrings
+ Adjacent websites
+
+
+ @foreach (var ring in Webrings.Rings.OrderBy(p => p.Name))
+ {
+ -
+ ←
+ @ring.Name
+ →
+
+ }
+
\ No newline at end of file
diff --git a/PancakesWeb/Data/Webring.cs b/PancakesWeb/Data/Webring.cs
new file mode 100644
index 0000000..aeb255f
--- /dev/null
+++ b/PancakesWeb/Data/Webring.cs
@@ -0,0 +1,23 @@
+namespace PancakesWeb.Data;
+
+public class Webring
+{
+ public required string Name { get; set; }
+ public required string MainUrl { get; set; }
+ public required string PrevUrl { get; set; }
+ public required string NextUrl { get; set; }
+}
+
+public static class Webrings
+{
+ public static readonly List Rings =
+ [
+ new Webring
+ {
+ Name = "Fediring",
+ MainUrl = "https://fediring.net/",
+ PrevUrl = "https://fediring.net/previous?host=pancakes.gay",
+ NextUrl = "https://fediring.net/next?host=pancakes.gay"
+ }
+ ];
+}
\ No newline at end of file
diff --git a/PancakesWeb/wwwroot/style.css b/PancakesWeb/wwwroot/style.css
index bb6bdcf..d34fd5f 100644
--- a/PancakesWeb/wwwroot/style.css
+++ b/PancakesWeb/wwwroot/style.css
@@ -162,6 +162,10 @@ pre code:hover + .copy-code-button, .copy-code-button:hover {
filter: invert() hue-rotate(180deg);
}
+.no-decorations {
+ text-decoration: none;
+}
+
@keyframes title-fade-in {
0% {
margin-top: 0;