diff --git a/.gitignore b/.gitignore index 533683f..5990e30 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ coverage/ *.rdb *.sublime-* config.js +lib/public/images/sponsor.png diff --git a/config.example.js b/config.example.js index 25b273e..09061e7 100644 --- a/config.example.js +++ b/config.example.js @@ -30,7 +30,11 @@ var config = { http_timeout: 2000, // ms until connection to Mojang is dropped debug_enabled: false, // enables logging.debug & editing index page log_time: true // set to false if you use an external logger that provides timestamps - } + }, + sponsor: { + sidebar: '
'
+ },
};
module.exports = config;
\ No newline at end of file
diff --git a/lib/public/images/akliz.png b/lib/public/images/akliz.png
deleted file mode 100644
index ba4d2a6..0000000
Binary files a/lib/public/images/akliz.png and /dev/null differ
diff --git a/lib/public/stylesheets/style.css b/lib/public/stylesheets/style.css
index 170cd47..784a66e 100644
--- a/lib/public/stylesheets/style.css
+++ b/lib/public/stylesheets/style.css
@@ -43,6 +43,17 @@ a.sponsor {
margin: 5px;
}
+a.sponsor-item {
+ color: #aa7100 !important;
+ font-weight: initial;
+ background: #fff3de;
+ border-color: #fcd794;
+}
+
+.sponsor-item:hover {
+ background: #fff8ec !important;
+}
+
.alert {
font-size: 1rem;
}
diff --git a/lib/views/index.html.ejs b/lib/views/index.html.ejs
index 6df030a..f3d547d 100644
--- a/lib/views/index.html.ejs
+++ b/lib/views/index.html.ejs
@@ -25,8 +25,9 @@
Fork me on GitHub
-
-
+ <% if (config.sponsor.top_right) { %>
+ <%- config.sponsor.top_right %>
+ <% } %>