mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 16:52:38 +00:00
Add Blended Watercolor Background Image
Add a snippet to create a nice watercolor background for use behind other images. Includes injection syntax which includes absolute position, hue-rotate, mix-blend-mode, and opacity. Chooses an image randomly from an Imgur album. All images created by me (and open to creating more/making adjustments). v3 only. Could be improved by cycling through images rather than choosing randomly.
This commit is contained in:
@@ -7,6 +7,7 @@ const ClassFeatureGen = require('./classfeature.gen.js');
|
|||||||
const CoverPageGen = require('./coverpage.gen.js');
|
const CoverPageGen = require('./coverpage.gen.js');
|
||||||
const TableOfContentsGen = require('./tableOfContents.gen.js');
|
const TableOfContentsGen = require('./tableOfContents.gen.js');
|
||||||
const dedent = require('dedent-tabs').default;
|
const dedent = require('dedent-tabs').default;
|
||||||
|
const watercolorGen = require('./watercolor.gen.js');
|
||||||
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
@@ -131,8 +132,12 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
name : 'Class Table Decoration',
|
name : 'Class Table Decoration',
|
||||||
icon : 'fas fa-award',
|
icon : 'fas fa-award',
|
||||||
gen : dedent`\n
|
gen : `\n {position:absolute,top:0px,right:0px,width:380px}`
|
||||||
 {position:absolute,top:0px,right:0px,width:380px}`
|
},
|
||||||
|
{
|
||||||
|
name : 'Watercolor Splatter',
|
||||||
|
icon : 'fas fa-fill-drip',
|
||||||
|
gen : watercolorGen,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
20
client/homebrew/editor/snippetbar/snippets/watercolor.gen.js
Normal file
20
client/homebrew/editor/snippetbar/snippets/watercolor.gen.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
const _ = require('lodash');
|
||||||
|
|
||||||
|
const watercolorBG = [
|
||||||
|
'https://i.imgur.com/UPUX4zG.png',
|
||||||
|
'https://i.imgur.com/Q6Uquv9.png',
|
||||||
|
'https://i.imgur.com/UOtaJpJ.png',
|
||||||
|
'https://i.imgur.com/Wy2DVk3.png',
|
||||||
|
'https://i.imgur.com/IempVlg.png',
|
||||||
|
'https://i.imgur.com/iJ1ddgd.png',
|
||||||
|
'https://i.imgur.com/qg4an04.png',
|
||||||
|
'https://i.imgur.com/ogGTcCh.png',
|
||||||
|
'https://i.imgur.com/itBD19A.png',
|
||||||
|
'https://i.imgur.com/tbbycAt.png',
|
||||||
|
'https://i.imgur.com/1SVWpGR.png',
|
||||||
|
'https://i.imgur.com/wC1zkuJ.png'
|
||||||
|
];
|
||||||
|
|
||||||
|
module.exports = ()=>{
|
||||||
|
return `\n}) {watercolor,position:absolute,top:0px,left:0px,width:240px,filter:hue-rotate(0deg),mix-blend-mode:multiply,opacity:80%}\n`
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user