2020-04-21 04:16:17 +02:00
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2020-04-21 04:38:30 +02:00
|
|
|
inherit (pkgs) graphviz runCommandNoCC writeText;
|
|
|
|
|
2020-04-21 05:03:33 +02:00
|
|
|
tvlGraph = runCommandNoCC "tvl.svg" {
|
2020-04-21 04:38:30 +02:00
|
|
|
nativeBuildInputs = with pkgs; [ fontconfig freetype cairo jetbrains-mono ];
|
|
|
|
} ''
|
2020-04-21 05:03:33 +02:00
|
|
|
${graphviz}/bin/neato -Tsvg ${./tvl.dot} > $out
|
2020-04-21 04:38:30 +02:00
|
|
|
'';
|
2020-04-21 04:16:17 +02:00
|
|
|
|
|
|
|
homepage = writeText "index.html" ''
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2021-03-31 21:16:56 +02:00
|
|
|
<meta name="description" content="The Virus Lounge">
|
2020-04-21 04:19:16 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/tazjin.css" media="all">
|
2020-04-21 04:16:17 +02:00
|
|
|
<link rel="icon" type="image/webp" href="/static/favicon.webp">
|
2021-03-31 21:16:56 +02:00
|
|
|
<title>The Virus Lounge</title>
|
2020-04-21 05:19:41 +02:00
|
|
|
<style>
|
|
|
|
svg {
|
|
|
|
max-width: inherit;
|
2020-04-22 01:15:44 +02:00
|
|
|
height: auto;
|
2020-04-21 05:19:41 +02:00
|
|
|
}
|
|
|
|
</style>
|
2020-04-21 04:16:17 +02:00
|
|
|
</head>
|
|
|
|
<body class="light">
|
|
|
|
<header>
|
2021-03-31 21:16:56 +02:00
|
|
|
<h1><a class="blog-title" href="/">The Virus Lounge</a> </h1>
|
2020-04-21 04:16:17 +02:00
|
|
|
<hr>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<main>
|
2021-03-31 21:16:56 +02:00
|
|
|
<img alt="The Virus Lounge" src="/static/virus_lounge.webp">
|
2020-04-21 04:16:17 +02:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<p>
|
2021-03-31 21:16:56 +02:00
|
|
|
Welcome to <b>The Virus Lounge</b>. We're a random group of
|
2020-04-21 04:16:17 +02:00
|
|
|
people who feel undersocialised in these trying times, and
|
|
|
|
we've decided that there isn't enough spontaneous socialising
|
|
|
|
on the internet.
|
|
|
|
</p>
|
2020-04-21 04:26:04 +02:00
|
|
|
|
2020-04-21 04:38:30 +02:00
|
|
|
<hr>
|
|
|
|
<h2>Where did all these people come from?</h2>
|
|
|
|
|
|
|
|
<p>
|
2020-04-21 05:19:41 +02:00
|
|
|
It's pretty straightforward. Feel free to click on people, too.
|
2020-04-21 04:38:30 +02:00
|
|
|
</p>
|
2020-04-21 05:07:40 +02:00
|
|
|
${builtins.readFile tvlGraph}
|
2020-04-21 04:38:30 +02:00
|
|
|
|
2020-04-21 04:16:17 +02:00
|
|
|
<hr>
|
|
|
|
<footer>
|
|
|
|
<p class="footer">
|
2020-06-24 15:35:01 +02:00
|
|
|
<a class="uncoloured-link" href="https://cs.tvl.fyi/depot/-/blob/README.md">code</a>
|
2020-04-21 04:16:17 +02:00
|
|
|
|
|
2021-03-31 22:55:57 +02:00
|
|
|
<a class="uncoloured-link" href="https://cl.tvl.fyi/">reviews</a>
|
|
|
|
|
|
|
|
|
<a class="uncoloured-link" href="https://b.tvl.fyi/">bugs</a>
|
|
|
|
|
|
|
|
|
<a class="uncoloured-link" href="https://todo.tvl.fyi/">todos</a>
|
2020-04-21 04:16:17 +02:00
|
|
|
</p>
|
|
|
|
<p class="lod">ಠ_ಠ</p>
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
'';
|
|
|
|
in runCommandNoCC "website" {} ''
|
|
|
|
mkdir -p $out/static
|
|
|
|
cp ${homepage} $out/index.html
|
|
|
|
cp -r ${./static}/* $out/static
|
|
|
|
|
2020-06-26 21:28:06 +02:00
|
|
|
# Some assets are stolen from tazjin's blog
|
|
|
|
cp ${depot.users.tazjin.homepage}/static/jetbrains-* $out/static
|
|
|
|
cp ${depot.users.tazjin.homepage}/static/tazjin.css $out/static
|
2020-04-21 04:16:17 +02:00
|
|
|
''
|