mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 02:52:38 +00:00
Merge branch 'master' into pr/2711
This commit is contained in:
@@ -182,6 +182,12 @@ module.exports = [
|
||||
gen : CoverPageGen.inside,
|
||||
experimental : true
|
||||
},
|
||||
{
|
||||
name : 'Part Cover Page',
|
||||
icon : 'fac book-part-cover',
|
||||
gen : CoverPageGen.part,
|
||||
experimental : true
|
||||
},
|
||||
{
|
||||
name : 'Back Cover Page',
|
||||
icon : 'fac book-back-cover',
|
||||
|
||||
@@ -100,11 +100,25 @@ module.exports = {
|
||||
___
|
||||
|
||||
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0
|
||||
{height:100%}
|
||||
{position:absolute,bottom:0,left:0,height:100%}
|
||||
}}
|
||||
|
||||
{{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`;
|
||||
}
|
||||
};
|
||||
|
||||
50
themes/V3/5ePHB/snippets/partcoverpage.gen.js
Normal file
50
themes/V3/5ePHB/snippets/partcoverpage.gen.js
Normal file
@@ -0,0 +1,50 @@
|
||||
const _ = require('lodash');
|
||||
|
||||
var titles = [
|
||||
'Introduction to the World of DnD',
|
||||
'Creating Your Character',
|
||||
'The Rules of the Game',
|
||||
'Combat and Combat Strategies',
|
||||
'Magic and Spellcasting',
|
||||
'Adventuring and Exploration',
|
||||
'Dungeon Delving',
|
||||
'Campaign Building and World Building',
|
||||
'DM Techniques and Tips',
|
||||
'Appendix: Reference Material',
|
||||
'Monsters and Creatures',
|
||||
'Equipment and Treasure',
|
||||
'Non-Player Characters (NPCs)',
|
||||
'Experience and Leveling',
|
||||
'Races and Classes',
|
||||
'Skills and Abilities',
|
||||
'Alignment and Moral Choices',
|
||||
'Player-vs-Player Conflict',
|
||||
'Game Mastering 101',
|
||||
'Running a Successful Campaign',
|
||||
'Worldbuilding and Lore',
|
||||
'Designing Encounters and Adventures',
|
||||
'Managing Players and their Expectations',
|
||||
'Factions and Political Intrigue',
|
||||
'Adventure Hooks and Plot Ideas',
|
||||
'Building a Campaign Setting',
|
||||
'Handling Rules Disputes',
|
||||
'Running Large-Scale Battles',
|
||||
'Designing Unique Magic Systems',
|
||||
'Developing and Using NPCs',
|
||||
'Crafting Memorable Quests',
|
||||
'Improvising When Things Don\'t Go as Planned',
|
||||
'Managing Session Flow and Pacing',
|
||||
'Building a World That Feels Alive'
|
||||
];
|
||||
|
||||
module.exports = ()=>{
|
||||
return `{{partCover}}
|
||||
|
||||
# PART X
|
||||
## ${_.sample(titles)}
|
||||
|
||||
{{imageMaskEdge5,--offset:10cm,--rotation:180
|
||||
{height:100%}
|
||||
}}
|
||||
\\page`;
|
||||
};
|
||||
@@ -897,6 +897,45 @@ h5 + table{
|
||||
}
|
||||
}
|
||||
|
||||
//*****************************
|
||||
// * PART COVER
|
||||
// *****************************/
|
||||
.page:has(.partCover) {
|
||||
columns : 1;
|
||||
text-align : center;
|
||||
padding-top: 0;
|
||||
|
||||
.partCover {
|
||||
background-image: @partCoverHeaderPHB;
|
||||
background-repeat: no-repeat;
|
||||
position: absolute;
|
||||
background-size: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 6cm;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
font-size: 2.3cm;
|
||||
font-family: NodestoCapsCondensed;
|
||||
margin-top: .4cm;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: Overpass;
|
||||
font-size: 0.45cm;
|
||||
position: relative;
|
||||
margin-top: -0.7em;
|
||||
line-height: 1.1em;
|
||||
margin-left : auto;
|
||||
margin-right : auto;
|
||||
}
|
||||
}
|
||||
|
||||
//*****************************
|
||||
// * TABLE OF CONTENTS
|
||||
// *****************************/
|
||||
|
||||
Reference in New Issue
Block a user