Reduce resolution of background image

This commit is contained in:
Kaustubh Ladiya 2020-01-05 18:34:46 +05:30
parent 0e9a022c2a
commit 631fd62912
No known key found for this signature in database
GPG Key ID: A77FFE5465BD4E7D
3 changed files with 8 additions and 2 deletions

View File

@ -20,7 +20,7 @@ const config = path.join(outDir, "config.json");
*/
async function populateCSS({
theme = "light",
background = "https://source.unsplash.com/1600x900/?wallpaper"
background = "https://source.unsplash.com/1280x720/?wallpaper"
} = {}) {
/* Get the theme the user requests. Defaults to 'light' */
theme = `${theme}.css`;

View File

@ -96,3 +96,9 @@
}
1"
}
}

2
ui.js
View File

@ -61,7 +61,7 @@ function uiCommand() {
let twitter = req.body.twitter ? req.body.twitter : null;
let background = req.body.background
? req.body.background
: "https://source.unsplash.com/1600x900/?wallpaper";
: "https://source.unsplash.com/1280x720/?wallpaper";
let theme = req.body.theme == "on" ? "dark" : "light";
const opts = {
sort: sort,