1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00

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,