diff --git a/configs/home-manager/foo-dogsquared/default.nix b/configs/home-manager/foo-dogsquared/default.nix index df4929ea..3b97c364 100644 --- a/configs/home-manager/foo-dogsquared/default.nix +++ b/configs/home-manager/foo-dogsquared/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, foodogsquaredLib, bahaghariLib, ... }: +{ config, lib, pkgs, foodogsquaredLib, bahaghariLib, ... }@attrs: let inherit (bahaghariLib.tinted-theming) importScheme; @@ -36,6 +36,11 @@ in flavorText = "For your local productivity"; textOnly = true; weight = (-50); + + icon = { + iconset = "material-design-icons"; + name = "room-service"; + }; }; } @@ -50,6 +55,13 @@ in text = "ArchiveBox webserver"; }); }) + + (lib.mkIf (attrs.nixosConfig.suites.filesystem.setups.archive.enable or false) { + YOHOOHOOHOOHOO.links = lib.mkBefore (lib.singleton { + url = "file://${attrs.nixosConfig.state.paths.archive}"; + text = "Personal archive"; + }); + }) ]; }; }; diff --git a/configs/home-manager/foo-dogsquared/files/homepage/assets/scss/main.scss b/configs/home-manager/foo-dogsquared/files/homepage/assets/scss/main.scss index 9f3cb239..a91dcd96 100644 --- a/configs/home-manager/foo-dogsquared/files/homepage/assets/scss/main.scss +++ b/configs/home-manager/foo-dogsquared/files/homepage/assets/scss/main.scss @@ -11,26 +11,40 @@ body { min-height: 100%; margin: 0; background: var(--background); + font-family: "Source Sans Pro", sans-serif; } #links { --width: 30ch; + --gap: 0.5em; + --header-font-size: 1.5em; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--width), 1fr)); grid-template-rows: max-content; - gap: 0.5em; + gap: var(--gap); + margin: calc(var(--gap) * 2); section[id^="section-"] { background: var(--foreground); color: var(--background); - font-family: sans-serif; - border: 0.5em solid var(--accent-color); - padding: 1rem; + border: var(--gap) solid var(--accent-color); + padding: calc(var(--gap) * 2); text-align: center; + .nav-icon { + color: currentColor; + fill: currentColor; + + svg { + --size: calc(var(--header-font-size) * 2); + width: var(--size); + height: var(--size); + } + } + .nav-header { - font-size: 1.5em; + font-size: var(--header-font-size); font-weight: bolder; } diff --git a/configs/home-manager/foo-dogsquared/files/homepage/data/foodogsquared-homepage/links.toml b/configs/home-manager/foo-dogsquared/files/homepage/data/foodogsquared-homepage/links.toml index dfcf0602..194dd802 100644 --- a/configs/home-manager/foo-dogsquared/files/homepage/data/foodogsquared-homepage/links.toml +++ b/configs/home-manager/foo-dogsquared/files/homepage/data/foodogsquared-homepage/links.toml @@ -10,7 +10,8 @@ links = [ { url = "https://login.tailscale.com", text = "Tailscale" }, { url = "https://devdocs.io", text = "Devdocs" }, ] -grid.row = 2 +icon.iconset = "material-design-icons" +icon.name = "fast-forward" [applications] name = "Applications" @@ -23,6 +24,8 @@ links = [ { url = "https://pass.foodogsquared.one", icon = "bitwarden", text = "Password manager" }, { url = "https://monitoring.foodogsquared.one", icon = "grafana", text = "Monitoring application" }, ] +icon.iconset = "material-design-icons" +icon.name = "developer-board" [dev] name = "Software dev" @@ -35,19 +38,27 @@ links = [ { 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" }, + { url = "https://manpages.debian.org", text = "Debian Manpages" }, ] grid.row = 2 +icon.iconset = "simple-icons" +icon.name = "github" [design] name = "Design" flavorText = "No matter how hard I try, it's pretty crap" textOnly = true links = [ + { url = "https://app.diagrams.net/", text = "lazy way of drawing things" }, + { url = "https://figma.com", text = "Figma..." }, { url = "https://www.awwwards.com/", text = "Awwwards" }, { url = "https://dribbble.com", text = "Dribbble" }, { url = "https://simpleicons.org/", text = "Simple Icons" }, { url = "https://pictogrammers.com/library/mdi/", text = "Material Design Icons" }, ] +icon.iconset = "material-design-icons" +icon.name = "pencil-ruler" [music] name = "Music" @@ -59,10 +70,12 @@ links = [ { url = "https://www.last.fm", text = "last.fm" }, { url = "https://modarchive.org/", text = "The Mod Archive" }, ] +icon.iconset = "material-design-icons" +icon.name = "music" [YOHOOHOOHOOHOO] -name = "🏴💀🏴" -flavorText = "Sailing on the high seas" +name = "YOHOOHOOHOOHOO" +flavorText = "Fly away, glum blue sea" textOnly = true weight = 100 links = [ @@ -72,3 +85,5 @@ links = [ { url = "https://annas-archive.se/", text = "Anna's Archive" }, { url = "https://archive.softwareheritage.org", text = "Software Heritage" }, ] +icon.iconset = "material-design-icons" +icon.name = "skull-crossbones" diff --git a/configs/home-manager/foo-dogsquared/files/homepage/layouts/index.html b/configs/home-manager/foo-dogsquared/files/homepage/layouts/index.html index acc17077..d34cd6a3 100644 --- a/configs/home-manager/foo-dogsquared/files/homepage/layouts/index.html +++ b/configs/home-manager/foo-dogsquared/files/homepage/layouts/index.html @@ -11,14 +11,16 @@ {{- $name := default $key $value.name -}}
- {{ $name }} + {{ with $value.icon }} + + {{ end }} + {{ with $value.flavorText }} - {{ . }} +
{{ . }}
{{ end }}
diff --git a/configs/home-manager/foo-dogsquared/files/homepage/layouts/partials/icon.html b/configs/home-manager/foo-dogsquared/files/homepage/layouts/partials/icon.html index c43304f4..76d6e813 100644 --- a/configs/home-manager/foo-dogsquared/files/homepage/layouts/partials/icon.html +++ b/configs/home-manager/foo-dogsquared/files/homepage/layouts/partials/icon.html @@ -1,15 +1,13 @@ {{- /* A partial for easily using icons from Simple Icons set. */ -}} -{{- $name := default .id .name }} -{{- $iconset := .iconset }} - -{{- $output := cond "" "" "" }} -{{- $template := cond "" "" "" }} -{{- $res := resources.ExecuteAsTemplate (printf $output .id) - (dict "id" .id - "name" $name) - (resources.Get $template) }} - - - +{{ if eq .iconset "simple-icons" }} + {{- $res := resources.ExecuteAsTemplate (printf "svg/brands/%s.svg" .name) + (dict "id" .name + "name" .name) + (resources.Get "templates/simple-icon.svg") }} + {{ $res.Content | safeHTML }} +{{ else if eq .iconset "material-design-icons" }} + {{- $res := resources.Get (printf "svg/material-design-icons/%s.svg" .name) }} + {{ $res.Content | safeHTML }} +{{ end }} diff --git a/configs/home-manager/foo-dogsquared/files/homepage/package.nix b/configs/home-manager/foo-dogsquared/files/homepage/package.nix index bec69046..ae2edc3d 100644 --- a/configs/home-manager/foo-dogsquared/files/homepage/package.nix +++ b/configs/home-manager/foo-dogsquared/files/homepage/package.nix @@ -5,7 +5,7 @@ buildHugoSite { pname = "foodogsquared-hm-startpage"; - version = "0.2.0"; + version = "0.3.0"; src = lib.cleanSource ./.; vendorHash = "sha256-Mi61QK1yKWIneZ+i79fpJqP9ew5r5vnv7ptr9YGq0Uk=";