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:
parent
0e9a022c2a
commit
631fd62912
3 changed files with 8 additions and 2 deletions
2
build.js
2
build.js
|
@ -20,7 +20,7 @@ const config = path.join(outDir, "config.json");
|
||||||
*/
|
*/
|
||||||
async function populateCSS({
|
async function populateCSS({
|
||||||
theme = "light",
|
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' */
|
/* Get the theme the user requests. Defaults to 'light' */
|
||||||
theme = `${theme}.css`;
|
theme = `${theme}.css`;
|
||||||
|
|
|
@ -96,3 +96,9 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
2
ui.js
2
ui.js
|
@ -61,7 +61,7 @@ function uiCommand() {
|
||||||
let twitter = req.body.twitter ? req.body.twitter : null;
|
let twitter = req.body.twitter ? req.body.twitter : null;
|
||||||
let background = req.body.background
|
let background = req.body.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";
|
let theme = req.body.theme == "on" ? "dark" : "light";
|
||||||
const opts = {
|
const opts = {
|
||||||
sort: sort,
|
sort: sort,
|
||||||
|
|
Loading…
Reference in a new issue