From 2b2b1fcdd6ad102b490f9a78dfe6fa7e71a71490 Mon Sep 17 00:00:00 2001 From: cark Date: Fri, 20 Aug 2021 04:11:01 +0100 Subject: [PATCH] add some categories to the main page --- sass/main.scss | 32 ++++++++++++++++++++++++++++++++ templates/index.html | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/sass/main.scss b/sass/main.scss index d4d9847..fa4ac58 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -33,4 +33,36 @@ body { font-size: 1.5em; font-family: 'Crimson Text', serif; +} + +.categories { + max-width: 600px; + margin: 12px auto; + display: flex; + flex-flow: row wrap; + justify-content: space-around; + .category { + width: calc(50% - 24px); + padding: 4px 0; + margin: 12px; + * { + margin: 0; + } + .category-link { + display: flex; + align-items: center; + .icon { + margin-right: 4px; + margin-left: -2px; + } + } + } +} + +a, a:focus { + color: #d9d5f3 +} + +.icon { + width: 24px; } \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 6ebcfc4..0f9f1cb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,6 +15,45 @@
+ +
+
+

+ + + + Guides

+

Words telling you how to do things, for children of all ages.

+
+
+

+ + + + Docs

+

Things that are on this server, and how to use them.

+
+
+

+ + + + + Manual

+

Ask the server nicely to retrieve an entry from the system's manual.

+
+
+

+ + + + Extras

+

Other things that didn't fit elsewhere.

+
+
+ + +