mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 02:32:41 +00:00
Move snippet to common CoverPage.gen
This commit is contained in:
@@ -183,9 +183,10 @@ module.exports = [
|
|||||||
experimental : true
|
experimental : true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Part Cover Page',
|
name : 'Part Cover Page',
|
||||||
icon : 'fas fa-file-alt',
|
icon : 'fac book-part-cover',
|
||||||
gen : PartCoverPageGen,
|
gen : CoverPageGen.part,
|
||||||
|
experimental : true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Magic Item',
|
name : 'Magic Item',
|
||||||
|
|||||||
@@ -100,11 +100,25 @@ module.exports = {
|
|||||||
___
|
___
|
||||||
|
|
||||||
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0
|
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0
|
||||||
{height:100%}
|
{position:absolute,bottom:0,left:0,height:100%}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{logo }}
|
{{logo }}
|
||||||
|
|
||||||
|
\page`;
|
||||||
|
},
|
||||||
|
|
||||||
|
part : function() {
|
||||||
|
return dedent`
|
||||||
|
{{partCover}}
|
||||||
|
|
||||||
|
# PART X
|
||||||
|
## ${_.sample(subtitles)}
|
||||||
|
|
||||||
|
{{imageMaskEdge${_.random(1, 8)},--offset:10cm,--rotation:180
|
||||||
|
{position:absolute,bottom:0,left:0,height:100%}
|
||||||
|
}}
|
||||||
|
|
||||||
\page`;
|
\page`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -43,10 +43,8 @@ module.exports = ()=>{
|
|||||||
# PART X
|
# PART X
|
||||||
## ${_.sample(titles)}
|
## ${_.sample(titles)}
|
||||||
|
|
||||||
{{imageMaskEdge5,--offset:10cm,--rotation:180
|
{{imageMaskEdge5,--offset:10cm,--rotation:180
|
||||||

|
{height:100%}
|
||||||
}}
|
}}
|
||||||
<!-- Use --offset to shift the mask toward or away from the page center.
|
|
||||||
Use --rotation to set rotation angle in degrees. -->
|
|
||||||
\\page`;
|
\\page`;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user