From 15efea6c84b79189e31f1b8801dab56c91e53df0 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 28 Oct 2018 01:20:44 +1100 Subject: add to webring --- app/init.moon | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/app/init.moon b/app/init.moon index 7d810cb..684c30a 100644 --- a/app/init.moon +++ b/app/init.moon @@ -60,7 +60,7 @@ table.insert routes, { route: '' dest: 'index.html' render: => - import h1, p, a, br, ul, tt, li from require 'lib.html' + import h1, p, a, br, ul, tt, li, img from require 'lib.html' import opairs from require 'lib.ordered' moon = '\xe2\x98\xbd' @@ -69,7 +69,21 @@ table.insert routes, { on_client patch_redirs -- menu - append h1 'mmm' + append h1 { + style: { position: 'relative' }, + 'mmm', + a { + style: { + position: 'absolute', + top: '2px', + right: '0', + }, + href: 'https://webring.xxiivv.com/#random', + target: '_blank', + img src: 'https://webring.xxiivv.com/icon.black.svg', alt: 'webring', style: { height: '1em' } + } + } + append p { tt 'mmm' ' is not the ' -- cgit v1.2.3