aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-11-16 23:27:10 +1100
committerYuchen Pei <id@ypei.org>2023-11-16 23:27:10 +1100
commita23fd0709041cb53022f62403d347250c007be6f (patch)
tree3ae65f7c7a035240547e41aa98224eb65c9d461a
parent2ba30c732cb5cdbfd295c4a0a55ecb4ef49b9bcc (diff)
Add fsf 202311 fundraiser banner.
-rw-r--r--css/default.css10
-rw-r--r--html-templates/preamble.html7
2 files changed, 17 insertions, 0 deletions
diff --git a/css/default.css b/css/default.css
index 8b8fb1d..2cc2bd8 100644
--- a/css/default.css
+++ b/css/default.css
@@ -33,6 +33,16 @@ nav a {
background-color: #f3f3f3;
}
+div#fsf-banner {
+ width: var(--main-width);
+ margin: auto;
+}
+
+div#fsf-banner center {
+ padding: 1rem;
+ background-color: #ff000014;
+}
+
div#content, div#comments {
width: calc(var(--main-width) - 1rem);
margin: auto;
diff --git a/html-templates/preamble.html b/html-templates/preamble.html
index a2d7c50..0988f0f 100644
--- a/html-templates/preamble.html
+++ b/html-templates/preamble.html
@@ -1,3 +1,10 @@
+<div id="fsf-banner">
+ <center>Please join me to support the FSF for a free society:</center>
+ <iframe title="FSF Fundraiser Banner"
+ src="//static.fsf.org/nosvn/banners/202311fundraiser/" scrolling="no"
+ style="width: 100%; height: 150px; display: block; margin: 0; border: 0 none; overflow: hidden;">
+ </iframe>
+</div>
<nav>
<span id="logo">
<a href="/index.html">About</a>