Add webrings

This commit is contained in:
pancakes 2025-09-12 20:18:39 +10:00
parent 77b2bb18ae
commit ca997d10b1
Signed by: pancakes
SSH key fingerprint: SHA256:yrp4c4hhaPoPG07fb4QyQIgAdlbUdsJvUAydJEWnfTw
3 changed files with 41 additions and 0 deletions

View file

@ -107,4 +107,18 @@
</li> </li>
} }
</ul> </ul>
<h2 id="webrings">Webrings</h2>
<p>Adjacent websites</p>
<ul class="accounts">
@foreach (var ring in Webrings.Rings.OrderBy(p => p.Name))
{
<li class="account card">
<a href="@ring.PrevUrl" class="no-decorations">←</a>
<a href="@ring.MainUrl">@ring.Name</a>
<a href="@ring.NextUrl" class="no-decorations">→</a>
</li>
}
</ul>
</main> </main>

View file

@ -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<Webring> 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"
}
];
}

View file

@ -162,6 +162,10 @@ pre code:hover + .copy-code-button, .copy-code-button:hover {
filter: invert() hue-rotate(180deg); filter: invert() hue-rotate(180deg);
} }
.no-decorations {
text-decoration: none;
}
@keyframes title-fade-in { @keyframes title-fade-in {
0% { 0% {
margin-top: 0; margin-top: 0;