about summary refs log tree commit diff
path: root/web
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-09-30T23·12+0300
committertazjin <mail@tazj.in>2021-10-01T15·59+0000
commit69ed4984e311d74b6d952a517599a9cd6c3c6fa4 (patch)
tree91ed078fdb26b2de2b0cdddfdb65152d18588a72 /web
parentb1f52b2617902524088e50bf8eff506ba49bb795 (diff)
feat(web/static): Add TVL logo to static files r/2944
Change-Id: Ie5ee4fe9d137cde9502ded1558fae3ad685b8863
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3661
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'web')
-rw-r--r--web/static/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/static/default.nix b/web/static/default.nix
index ef346f9c74..7a17dec362 100644
--- a/web/static/default.nix
+++ b/web/static/default.nix
@@ -2,11 +2,16 @@
 # `drvHash` attribute which can be used for cache-busting.
 { depot, lib, pkgs, ... }:
 
-let storeDirLength = with builtins; (stringLength storeDir) + 1;
+let
+  storeDirLength = with builtins; (stringLength storeDir) + 1;
+  logo = depot.web.tvl.logo;
 in lib.fix(self: pkgs.runCommand "tvl-static" {
   passthru = {
     drvHash = lib.substring storeDirLength 32 self.drvPath;
   };
 } ''
-  cp -r ${./.} $out
+  mkdir $out
+  cp -r ${./.}/* $out
+  cp ${logo.pastelRainbow} $out/logo-animated.svg
+  cp ${logo.redPng} $out/logo-red.png
 '')