feat(web/tvl): Add clickable homepage links for most people

This commit is contained in:
Vincent Ambo 2020-04-21 04:03:33 +01:00
parent 38712efe0e
commit 848aca8580
2 changed files with 31 additions and 27 deletions

View file

@ -3,10 +3,10 @@
let let
inherit (pkgs) graphviz runCommandNoCC writeText; inherit (pkgs) graphviz runCommandNoCC writeText;
tvlGraph = runCommandNoCC "tvl.png" { tvlGraph = runCommandNoCC "tvl.svg" {
nativeBuildInputs = with pkgs; [ fontconfig freetype cairo jetbrains-mono ]; nativeBuildInputs = with pkgs; [ fontconfig freetype cairo jetbrains-mono ];
} '' } ''
${graphviz}/bin/neato -Tpng ${./tvl.dot} > $out ${graphviz}/bin/neato -Tsvg ${./tvl.dot} > $out
''; '';
homepage = writeText "index.html" '' homepage = writeText "index.html" ''
@ -55,7 +55,11 @@ let
<p> <p>
It's pretty straightforward. It's pretty straightforward.
</p> </p>
<img src="/static/tvl.png" alt="Who's who?"> <img src="/static/tvl.svg" alt="Who's who?">
<br>
<span style="text-align:center;font-style:italic;">
(Protip: Most of these names are clickable!)
</span>
<hr> <hr>
<footer> <footer>
@ -74,7 +78,7 @@ in runCommandNoCC "website" {} ''
mkdir -p $out/static mkdir -p $out/static
cp ${homepage} $out/index.html cp ${homepage} $out/index.html
cp -r ${./static}/* $out/static cp -r ${./static}/* $out/static
cp ${tvlGraph} $out/static/tvl.png cp ${tvlGraph} $out/static/tvl.svg
# Some assets are stolen from the blog # Some assets are stolen from the blog
cp ${depot.web.homepage}/static/jetbrains-* $out/static cp ${depot.web.homepage}/static/jetbrains-* $out/static

View file

@ -8,36 +8,36 @@ digraph tvl {
// people // people
ac; ac;
andi; andi href=["https://andreas.rammhold.de/"];
anna; anna [href="https://femalelegends.com/"];
anon1 [color="grey" fontcolor="grey"]; anon1 [color="grey" fontcolor="grey"];
aurora; aurora [href="https://nonegenderleftfox.aventine.se/"];
benjojo; benjojo [href="https://benjojo.co.uk/"];
cynthia; cynthia [href="https://cynthia.re/"];
edef; edef [href="https://edef.eu/files/edef.hs"];
espes; espes;
eta; eta [href="https://theta.eu.org/"];
firefly; firefly;
flokli; flokli [href="https://flokli.de/"];
geoffrey; geoffrey [href="https://ghuntley.com/"];
glittershark; glittershark [href="https://gws.fyi"];
grahamc; grahamc [href="https://grahamc.com/"];
isomer; isomer [href="https://www.lorier.net/"];
joern; joern [href="https://twitter.com/FR31H31T"];
justinw; justinw [href="https://jusrin.dev/"];
leah2; leah2 [href="https://leahneukirchen.org/"];
loke; loke;
lukegb; lukegb [href="https://lukegb.com/"];
marcusr; marcusr [href="http://marcus.nordaaker.com/"];
multi; multi;
ncl; ncl;
poigon; poigon;
profpatsch; profpatsch [href="http://profpatsch.de/"];
puck; puck [href="https://puckipedia.com/"];
qyliss; qyliss [href="https://alyssa.is"];
seven; seven [href="https://open.spotify.com/user/so7"];
tazjin; tazjin [href="https://tazj.in/"];
wpcarro; wpcarro [href="https://wpcarro.dev/"];
// companies (blue) // companies (blue)
spotify [color="#4285f4" fontcolor="#4285f4"]; spotify [color="#4285f4" fontcolor="#4285f4"];