users/foo-dogsquared/homepage: implement subsections in links

This commit is contained in:
Gabriel Arazas 2025-02-13 18:20:21 +08:00
parent f987c32b03
commit eceb124e55
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 49 additions and 10 deletions

View File

@ -48,6 +48,23 @@ body {
font-weight: bolder;
}
.nav-subsection {
font-style: italic;
font-weight: bold;
display: flex;
align-items: center;
color: var(--base07);
margin: 0.5em;
}
.nav-subsection::before,
.nav-subsection::after {
content: '';
flex: 1;
border-bottom: 1px solid var(--base0B);
margin: 0 0.5em;
}
.flavor-text {
font-size: 0.9em;
font-style: italic;

View File

@ -10,6 +10,7 @@ links = [
{ url = "https://search.brave.com", text = "Brave Search" },
{ url = "https://login.tailscale.com", text = "Tailscale" },
{ url = "https://devdocs.io", text = "Devdocs" },
{ url = "https://chat.deepseek.com", text = "Your uncomplaining junior" },
]
icon.iconset = "material-design-icons"
icon.name = "fast-forward"
@ -23,7 +24,7 @@ links = [
{ url = "https://start.foodogsquared.one", text = "The other homepage" },
{ url = "https://code.foodogsquared.one", icon = "gitea", text = "Personal forge" },
{ url = "https://pass.foodogsquared.one", icon = "bitwarden", text = "Password manager" },
{ url = "https://monitoring.foodogsquared.one", icon = "grafana", text = "Monitoring application" },
{ url = "https://monitoring.foodogsquared.one/grafana", icon = "grafana", text = "Monitoring dashboard" },
]
icon.iconset = "material-design-icons"
icon.name = "developer-board"
@ -34,14 +35,21 @@ flavorText = "...is just standing on a house of cards"
textOnly = true
weight = -25
links = [
{ subsection = true, text = "Search" },
{ url = "https://github.com", text = "GitHub" },
{ url = "https://sourcegraph.com", text = "SourceGraph" },
{ url = "https://devdocs.io", text = "Devdocs" },
{ url = "https://sourcegraph.com/search", text = "SourceGraph" },
{ url = "https://archive.softwareheritage.org", text = "Software Heritage" },
{ subsection = true, text = "Cloud platforms" },
{ url = "https://vscode.dev", text = "Online Visual Studio Code" },
{ url = "https://cloud.oracle.com", text = "Oracle Cloud" },
{ url = "https://cloud.hetzner.com", text = "Hetzner Cloud" },
{ url = "https://portal.azure.com", text = "Azure Cloud" },
{ subsection = true, text = "References" },
{ url = "https://devdocs.io", text = "Devdocs" },
{ url = "https://manpages.debian.org", text = "Debian Manpages" },
{ url = "https://nixos.org/manual/nixpkgs/unstable", text = "nixpkgs reference" },
]
grid.row = 2
icon.iconset = "simple-icons"
@ -52,17 +60,26 @@ name = "Design"
flavorText = "No matter how hard I try, it's pretty crap"
textOnly = true
links = [
{ subsection = true, text = "References" },
{ url = "https://www.awwwards.com/", text = "Awwwards" },
{ url = "https://dribbble.com", text = "Dribbble" },
{ subsection = true, text = "Apps" },
{ url = "https://app.diagrams.net/", text = "lazy way of drawing things" },
{ url = "https://penpot.app", text = "Penpot" },
{ url = "https://figma.com", text = "Figma..." },
{ url = "https://editor.graphite.rs", text = "Graphite" },
{ url = "https://www.awwwards.com/", text = "Awwwards" },
{ url = "https://dribbble.com", text = "Dribbble" },
{ subsection = true, text = "Color" },
{ url = "https://coolors.co", text = "Coolors" },
{ url = "https://www.colourlovers.com", text = "ColourLovers" },
{ subsection = true, text = "Font" },
{ url = "https://www.typewolf.com", text = "Typewolf" },
{ url = "https://www.fontpair.co", text = "FontPair" },
{ url = "https://color.adobe.com", text = "Adobe Color CC" },
{ subsection = true, text = "Icon sets" },
{ url = "https://simpleicons.org/", text = "Simple Icons" },
{ url = "https://pictogrammers.com/library/mdi/", text = "Material Design Icons" },
]
@ -104,10 +121,11 @@ flavorText = "Let's get down to bidness"
textOnly = true
weight = 25
links = [
{ url = "https://webmail.foodogsquared.one", text = "Mail" },
{ url = "https://webmail.foodogsquared.one", text = "Mail (just use an email client)" },
{ url = "https://microsoft365.com/", text = "Microsoft 365" },
{ url = "https://messenger.com/", text = "Messenger" },
{ url = "https://discord.com/", text = "Discord" },
{ url = "https://app.element.io", text = "Element (just use a Matrix client)" },
{ url = "https://app.messenger.com/", text = "Messenger" },
{ url = "https://app.discord.com/", text = "Discord" },
]
icon.iconset = "material-design-icons"
icon.name = "card-account-details"

View File

@ -25,8 +25,12 @@
<hr />
<nav>
{{ range $link := $value.links }}
<a href="{{ safeURL $link.url }}">{{ $link.text }}</a>
{{ range $item := $value.links }}
{{ if $item.subsection }}
<span class="nav-subsection">{{ $item.text }}</span>
{{ else }}
<a href="{{ safeURL $item.url }}">{{ $item.text }}</a>
{{ end }}
{{ end }}
</nav>
</section>