aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-13 05:10:58 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-16 04:38:13 +0100
commit25006ece6178292dfbaa485bc480b89ab9e8f059 (patch)
tree946ba7370781bdbf5bbfd654a2fca64d46581321
init
-rw-r--r--.envrc1
-rw-r--r--README.md7
-rw-r--r--default.nix2
-rw-r--r--nomath-org.nix13
-rw-r--r--shell.nix9
-rw-r--r--src/index.html49
6 files changed, 81 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..1d953f4
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+use nix
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..cda7b21
--- /dev/null
+++ b/README.md
@@ -0,0 +1,7 @@
+# nomath-website
+
+## develop
+
+```console
+$ develop
+```
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..5a612a8
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,2 @@
+{ pkgs ? import <nixpkgs> { } }:
+pkgs.callPackage ./nomath-org.nix { }
diff --git a/nomath-org.nix b/nomath-org.nix
new file mode 100644
index 0000000..805e8e5
--- /dev/null
+++ b/nomath-org.nix
@@ -0,0 +1,13 @@
+{ lib
+, stdenv
+, cm_unicode
+}:
+stdenv.mkDerivation {
+ name = "nomath-org";
+ src = ./.;
+ installPhase = ''
+ mkdir -p $out
+ cp src/index.html $out
+ cp ${cm_unicode}/share/fonts/opentype/cmunvt.otf $out
+ '';
+}
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..3d46a11
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,9 @@
+{ pkgs ? import <nixpkgs> { } }:
+pkgs.mkShell {
+ buildInputs = [
+ (pkgs.writers.writeDashBin "develop" ''
+ set -efu
+ find src | entr -rs '( cd $(nix-build --no-out-link -A nomath-website) && python -m http.server )'
+ '')
+ ];
+}
diff --git a/src/index.html b/src/index.html
new file mode 100644
index 0000000..0a6ca28
--- /dev/null
+++ b/src/index.html
@@ -0,0 +1,49 @@
+<!doctype html>
+<html lang="en"><head>
+ <meta charset="utf-8" />
+ <title>nomath.org</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <style type="text/css">
+/* fonts */
+@font-face {
+ font-family: 'CMU Typewriter Text Variable Width';
+ src: url('cmunvt.otf'); }
+
+/* layout */
+* {
+ box-sizing: border-box; }
+html {
+ width: 100%;
+ max-width: 600px; }
+body {
+ margin: 10px; }
+
+/* typography */
+html {
+ font: 16px 'CMU Typewriter Text Variable Width', serif;
+ color: black;
+ hyphens: auto; }
+h1, h2, h3 {
+ font-size: 1rem;
+ font-weight: normal; }
+h1 {
+ font-weight: bold;
+ font-style: italic; }
+h1, h2, h3, p {
+ margin-top: 10px;
+ margin-bottom: 10px;
+ white-space: pre-wrap; }
+
+/* links */
+a:link, a:hover {
+ color: coral; }
+a:visited {
+ color: chocolate; }
+a:focus {
+ outline: dashed darkorange; }
+</style></head><body>
+<h1>nomath.org</h1>
+
+<h2>we are a collective of hackers. we <em>“avoid success at all costs”</em>.</h2>
+
+<h3>we invite you to check out <a href="https://code.nomath.org">our projects</a>!</h3>