0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-30 14:08:11 +00:00

adding attribution

This commit is contained in:
Víctor Losada Hernández
2026-03-11 15:31:56 +01:00
parent fb8838bfe4
commit 09a492ee7f
2 changed files with 10 additions and 3 deletions

View File

@@ -6,7 +6,8 @@ export default {
center : ()=>{
return dedent`
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0
![The Roman Theater at Taormina, 1828, by Louise-Joséphine sarazin de Belmont](${domain}/assets/roman_theatre.webp){height:100%}
![image description](${domain}/assets/roman_theatre.webp){height:100%}
<!-- Art: The Roman Theater at Taormina, 1828, by Louise-Joséphine sarazin de Belmont -->
}}
<!-- Use --offsetX to shift the mask left or right (can use cm instead of %)
Use --offsetY to shift the mask up or down
@@ -36,7 +37,8 @@ export default {
}[side];
return dedent`
{{imageMaskEdge${_.random(1, 8)},--offset:10%,--rotation:${rotation}
![The Roman Theater at Taormina, 1828, by Louise-Joséphine sarazin de Belmont](${domain}/assets/roman_theatre.webp)${styles()}
![image description](${domain}/assets/roman_theatre.webp)${styles()}
<!-- Art: The Roman Theater at Taormina, 1828, by Louise-Joséphine sarazin de Belmont -->
}}
<!-- Use --offset to shift the mask away from page center (can use cm instead of %)
Use --rotation to set rotation angle in degrees. -->\n\n`;
@@ -47,7 +49,8 @@ export default {
const offsetY = (y == 'top' ? '50%' : '-50%');
return dedent`
{{imageMaskCorner${_.random(1, 37)},--offsetX:${offsetX},--offsetY:${offsetY},--rotation:0
![The Roman Theater at Taormina, 1828, by Louise-Joséphine sarazin de Belmont](${domain}/assets/roman_theatre.webp){height:100%}
![image description](${domain}/assets/roman_theatre.webp){height:100%}
<!-- Art: The Roman Theater at Taormina, 1828, by Louise-Joséphine sarazin de Belmont -->
}}
<!-- Use --offsetX to shift the mask left or right (can use cm instead of %)
Use --offsetY to shift the mask up or down