pkgs: Add imprint

This commit is contained in:
Simon Bruder 2021-02-14 19:48:50 +01:00
parent b00498f23d
commit f827456d0c
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
5 changed files with 58 additions and 0 deletions

1
.gitattributes vendored
View file

@ -1,4 +1,5 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.svg filter=lfs diff=lfs merge=lfs -text
**/secrets/** filter=git-crypt diff=git-crypt

View file

@ -11,4 +11,8 @@ in
osu-lazer-container = super.callPackage ./osu-lazer-container { };
wordclock-dimmer = super.python3Packages.callPackage ./wordclock-dimmer { };
sbruder = super.recurseIntoAttrs {
imprint = super.callPackage ./imprint { };
};
}

16
pkgs/imprint/default.nix Normal file
View file

@ -0,0 +1,16 @@
{ lib, stdenvNoCC, ... }:
stdenvNoCC.mkDerivation {
name = "sbruder-imprint";
src = ./.;
dontBuild = true;
installPhase = ''
mkdir $out
cp \
index.html \
mail.svg \
$out
'';
}

34
pkgs/imprint/index.html Normal file
View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<style>
body {
font-family: "Roboto", sans-serif;
}
img.mail {
height: 1em;
margin-bottom: -4px;
}
</style>
</head>
<body>
<h1>Impressum</h1>
<h2>Anbieter</h2>
<p>
Simon Bruder<br>
Wallmersbach 42<br>
97215 Uffenheim
</p>
<h2>Kontakt</h2>
<ul>
<li>E-Mail: <img class="mail" src="mail.svg"></li>
<li>Telefon: +49 152 56561414</li>
</ul>
</body>
</html>

BIN
pkgs/imprint/mail.svg (Stored with Git LFS) Normal file

Binary file not shown.