diff --git a/themes/V3/5ePHB/snippets/coverpage.gen.js b/themes/V3/5ePHB/snippets/coverpage.gen.js index 96fc91cbd..b02093ed7 100644 --- a/themes/V3/5ePHB/snippets/coverpage.gen.js +++ b/themes/V3/5ePHB/snippets/coverpage.gen.js @@ -1,5 +1,6 @@ import _ from 'lodash'; import dedent from 'dedent'; +const domain = window.location.origin; const titles = [ 'The Burning Gallows', 'The Ring of Nenlast', @@ -84,7 +85,7 @@ export default { return dedent` {{frontCover}} - {{logo ![](https://homebrewery.naturalcrit.com/assets/naturalCritLogoRed.svg)}} + {{logo ![](${domain}/assets/naturalCritLogoRed.svg)}} # ${_.sample(titles)} ## ${_.sample(subtitles)} @@ -96,7 +97,7 @@ export default { ${_.sample(footnote)} }} - ![background image](https://homebrewery.naturalcrit.com/assets/demontemple.jpg){position:absolute,bottom:0,left:0,height:100%} + ![background image](${domain}/assets/the_departure.webp){position:absolute,bottom:0,right:-400px,height:100%} \page`; }, @@ -110,10 +111,10 @@ export default { ___ {{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0 - ![background image](https://homebrewery.naturalcrit.com/assets/mountaincottage.jpg){position:absolute,bottom:0,left:0,height:100%} + ![background image](${domain}/assets/the_spirit_of_war.webp){position:absolute,bottom:100px,right:70px,height:70%} }} - {{logo ![](https://homebrewery.naturalcrit.com/assets/naturalCritLogoRed.svg)}} + {{logo ![](${domain}/assets/naturalCritLogoRed.svg)}} \page`; }, @@ -126,7 +127,7 @@ export default { ## ${_.sample(subtitles)} {{imageMaskEdge${_.random(1, 8)},--offset:10cm,--rotation:180 - ![Background image](https://homebrewery.naturalcrit.com/assets/nightchapel.jpg){position:absolute,bottom:0,left:0,height:100%} + ![Background image](${domain}/assets/frigate.webp){position:absolute,bottom:0,right:0,height:100%} }} \page`; @@ -143,10 +144,10 @@ export default { For use with any fantasy roleplaying ruleset. Play the best game of your life! - ![background image](https://homebrewery.naturalcrit.com/assets/shopvials.jpg){position:absolute,bottom:0,left:0,height:100%} + ![background image](${domain}/assets/ruined_tower.webp){position:absolute,bottom:0,right:-250px,height:100%} {{logo - ![](https://homebrewery.naturalcrit.com/assets/naturalCritLogoWhite.svg) + ![](${domain}/assets/naturalCritLogoWhite.svg) Homebrewery.Naturalcrit.com }}`; diff --git a/themes/V3/Blank/snippets.js b/themes/V3/Blank/snippets.js index 0b61c0fd6..30af4be0f 100644 --- a/themes/V3/Blank/snippets.js +++ b/themes/V3/Blank/snippets.js @@ -11,6 +11,7 @@ import LicenseDTTRPGGCC from './snippets/licenseDTRPGCC.gen.js'; import LicenseMongoosePublishing from './snippets/licenseMongoose.gen.js'; import TableOfContentsGen from './snippets/tableOfContents.gen.js'; import indexGen from './snippets/index.gen.js'; +const domain = window.location.origin; export default [ @@ -645,25 +646,25 @@ export default [ name : 'Image', icon : 'fas fa-image', gen : dedent` - ![cat warrior](https://homebrewery.naturalcrit.com/assets/catwarrior.jpg) {width:325px,mix-blend-mode:multiply}` + ![cat warrior](${domain}/assets/catwarrior.jpg) {width:325px,mix-blend-mode:multiply}` }, { name : 'Image Wrap Left', icon : 'fac image-wrap-left', gen : dedent` - ![homebrewery_mug](https://homebrewery.naturalcrit.com/assets/homebrewerymug.png) {width:280px,margin-right:-3cm,wrapLeft}` + ![homebrewery_mug](${domain}/assets/homebrewerymug.png) {width:280px,margin-right:-3cm,wrapLeft}` }, { name : 'Image Wrap Right', icon : 'fac image-wrap-right', gen : dedent` - ![homebrewery_mug](https://homebrewery.naturalcrit.com/assets/homebrewerymug.png) {width:280px,margin-left:-3cm,wrapRight}` + ![homebrewery_mug](${domain}/assets/homebrewerymug.png) {width:280px,margin-left:-3cm,wrapRight}` }, { name : 'Background Image', icon : 'fas fa-tree', gen : dedent` - ![homebrew mug](https://homebrewery.naturalcrit.com/assets/homebrewerymug.png) {position:absolute,top:50px,right:30px,width:280px}` + ![homebrew mug](${domain}/assets/homebrewerymug.png) {position:absolute,top:50px,right:30px,width:280px}` }, { name : 'Watercolor Splatter', diff --git a/themes/V3/Blank/snippets/imageMask.gen.js b/themes/V3/Blank/snippets/imageMask.gen.js index 670d2de98..530ce01ac 100644 --- a/themes/V3/Blank/snippets/imageMask.gen.js +++ b/themes/V3/Blank/snippets/imageMask.gen.js @@ -1,11 +1,12 @@ import _ from 'lodash'; import dedent from 'dedent'; +const domain = window.location.origin; export default { center : ()=>{ return dedent` {{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0 - ![](https://homebrewery.naturalcrit.com/assets/dragoninflight.jpg){height:100%} + ![The Roman Theater at Taormina, 1828, by Louise-Joséphine sarazin de Belmont](${domain}/assets/roman_theatre.webp){height:100%} }} \n\n`; @@ -32,7 +47,7 @@ export default { const offsetY = (y == 'top' ? '50%' : '-50%'); return dedent` {{imageMaskCorner${_.random(1, 37)},--offsetX:${offsetX},--offsetY:${offsetY},--rotation:0 - ![](https://homebrewery.naturalcrit.com/assets/dragoninflight.jpg){height:100%} + ![The Roman Theater at Taormina, 1828, by Louise-Joséphine sarazin de Belmont](${domain}/assets/roman_theatre.webp){height:100%} }}