From ac2c9b7e87daabcaa86dfad98034f82e61915107 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 9 Feb 2020 02:20:41 +0000 Subject: style(web/homepage): Wrap links around the entire entry This makes it much easier to click on them. Required some style reshuffling to satisfy CSS. --- web/homepage/default.nix | 20 ++++++++++---------- web/homepage/header.html | 10 +++++----- web/homepage/static/tazjin.css | 5 +++-- 3 files changed, 18 insertions(+), 17 deletions(-) (limited to 'web') diff --git a/web/homepage/default.nix b/web/homepage/default.nix index e7190bbc9d..d2905a7eb6 100644 --- a/web/homepage/default.nix +++ b/web/homepage/default.nix @@ -46,16 +46,16 @@ let }); entryToDiv = defun [ entry string ] (entry: '' -
-

- ${escape entry.title} -

- ${ - lib.optionalString ((entry ? description) && (entry.description != null)) - "

${escape entry.description}

" - } - -
+ +
+

${escape entry.title}

+ ${ + lib.optionalString ((entry ? description) && (entry.description != null)) + "

${escape entry.description}

" + } + +
+
''); index = entries: third_party.writeText "index.html" (lib.concatStrings ( diff --git a/web/homepage/header.html b/web/homepage/header.html index 64579586d1..ec81fa04dc 100644 --- a/web/homepage/header.html +++ b/web/homepage/header.html @@ -17,11 +17,11 @@

Hello, illuminated visitor.

I'm tazjin. Usually you can find - me programming computers - using tools such as Nix - and Emacs, - cuddling people I love - or posting nonsense on the + me programming computers + using tools such as Nix + and Emacs, + cuddling people I love + or posting nonsense on the internet.

diff --git a/web/homepage/static/tazjin.css b/web/homepage/static/tazjin.css index 7175a36df1..68e72577c3 100644 --- a/web/homepage/static/tazjin.css +++ b/web/homepage/static/tazjin.css @@ -50,7 +50,7 @@ h1, h2, h3 { color: #e4e4ef; } -.dark a { +.dark-link, .interblag-title { color: #96a6c8; } @@ -68,11 +68,12 @@ h1, h2, h3 { .entry { width: 42%; margin: 5px; - padding-left: 5px; + padding-left: 7px; padding-right: 5px; border: 2px solid; border-radius: 5px; flex-grow: 1; + text-decoration: none; } .misc { -- cgit 1.4.1