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">
|
2020-06-04 02:14:58 +02:00
|
|
|
<meta name="description" content="tazjin's 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">
|
2020-06-04 02:14:58 +02:00
|
|
|
<title>tazjin's 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>
|
2020-06-04 02:14:58 +02:00
|
|
|
<h1><a class="blog-title" href="/">tazjin's Virus Lounge</a> </h1>
|
2020-04-21 04:16:17 +02:00
|
|
|
<hr>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<main>
|
2020-06-04 02:14:58 +02:00
|
|
|
<img alt="tazjin's Virus Lounge" src="/static/virus_lounge.webp">
|
2020-04-21 04:16:17 +02:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<p>
|
2020-06-04 02:14:58 +02:00
|
|
|
Welcome to <b>tazjin's 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">
|
|
|
|
<a class="uncoloured-link" href="https://tazj.in">homepage</a>
|
|
|
|
|
|
|
|
|
<a class="uncoloured-link" href="https://git.tazj.in/about">code</a>
|
|
|
|
|
|
|
|
|
<a class="uncoloured-link" href="https://twitter.com/tazjin">twitter</a>
|
|
|
|
</p>
|
|
|
|
<p class="lod">ಠ_ಠ</p>
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
'';
|
|
|
|
in runCommandNoCC "website" {} ''
|
|
|
|
mkdir -p $out/static
|
|
|
|
cp ${homepage} $out/index.html
|
|
|
|
cp -r ${./static}/* $out/static
|
|
|
|
|
|
|
|
# Some assets are stolen from the blog
|
|
|
|
cp ${depot.web.homepage}/static/jetbrains-* $out/static
|
|
|
|
cp ${depot.web.homepage}/static/tazjin.css $out/static
|
|
|
|
''
|