barf: add fonts for people on macos

This commit is contained in:
Luke Granger-Brown 2024-03-12 02:22:13 +00:00
parent 416bb233e1
commit 8be0a210d9
11 changed files with 32 additions and 2 deletions

View file

@ -51,6 +51,8 @@
snapshot = "tank/local/root@blank"; snapshot = "tank/local/root@blank";
}; };
systemd.services."systemd-networkd-wait-online".wantedBy = lib.mkForce [];
fileSystems = let fileSystems = let
zfs = device: { zfs = device: {
device = device; device = device;

View file

@ -6,6 +6,6 @@
pkgs.buildGoModule { pkgs.buildGoModule {
name = "barf-fe"; name = "barf-fe";
src = lib.sourceByRegex ./. [".*\.go$" "go.mod" "go.sum" "static" "static/clipit" ".*/.*\.webm" ".*/.*\.png" ".*/.*\.wav" ".*/.*\.svg" ".*\.html"]; src = lib.sourceByRegex ./. [".*\.go$" "go.mod" "go.sum" "static" "static/clipit" "static/fonts" ".*/.*\.webm" ".*/.*\.png" ".*/.*\.wav" ".*/.*\.svg" ".*\.html" ".*/.*\.woff" ".*/.*\.woff2" ".*/.*\.css"];
vendorHash = "sha256:0w1k1ykga70af3643lky701kf27pfmgc3lhznfq1v32ww365w57f"; vendorHash = "sha256:0w1k1ykga70af3643lky701kf27pfmgc3lhznfq1v32ww365w57f";
} }

View file

@ -146,7 +146,7 @@ func main() {
indexTmpl, err := template.New("index").Parse(string(indexTmplBytes)) indexTmpl, err := template.New("index").Parse(string(indexTmplBytes))
if err != nil { if err != nil {
log.Fatalf("parsing index template: %w", err) log.Fatalf("parsing index template: %v", err)
} }
db, err := sql.Open("sqlite3", *dbPath) db, err := sql.Open("sqlite3", *dbPath)

View file

@ -4,6 +4,8 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" /> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link rel="stylesheet" href="/static/fonts/stylesheet.css" />
<title>BARF | Data Collection</title> <title>BARF | Data Collection</title>
<script type="application/json" id="load-data">{{.}}</script> <script type="application/json" id="load-data">{{.}}</script>
<style> <style>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,26 @@
@font-face {
font-family: 'Franklin Gothic';
src: url('FranklinGothic-Medium.woff2') format('woff2'),
url('FranklinGothic-Medium.woff') format('woff');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Tahoma';
src: url('Tahoma.woff2') format('woff2'),
url('Tahoma.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Tahoma';
src: url('Tahoma-Bold.woff2') format('woff2'),
url('Tahoma-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
font-display: swap;
}