commit 5059fad

grunfink  ·  2025-05-20 21:08:49 +0000 UTC
parents 2b2b66e, bf94f6a
Merge pull request 'make greetings theme adaptive; define style in header' (#397) from postscriptum/snac2:adaptive-greeting-page into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/397
1 files changed,  +2, -1
+2, -1
 1@@ -101,8 +101,9 @@ static const char *greeting_html =
 2     "<html><head>\n"
 3     "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n"
 4     "<link rel=\"icon\" type=\"image/x-icon\" href=\"https://%host%/favicon.ico\"/>\n"
 5+    "<style>*{color-scheme:light dark}body{margin:auto;max-width:50em}</style>\n"
 6     "<title>Welcome to %host%</title>\n</head>\n"
 7-    "<body style=\"margin: auto; max-width: 50em\">\n"
 8+    "<body>\n"
 9     "%blurb%"
10     "<p>The following users are part of this community:</p>\n"
11     "\n"