diff --git a/themes/V3/5ePHB/snippets.js b/themes/V3/5ePHB/snippets.js index 5ccd2db9e..668178275 100644 --- a/themes/V3/5ePHB/snippets.js +++ b/themes/V3/5ePHB/snippets.js @@ -5,6 +5,7 @@ const ClassTableGen = require('./snippets/classtable.gen.js'); const MonsterBlockGen = require('./snippets/monsterblock.gen.js'); const ClassFeatureGen = require('./snippets/classfeature.gen.js'); const CoverPageGen = require('./snippets/coverpage.gen.js'); +const InsideCoverPageGen = require('./snippets/insidecoverpage.gen.js') const TableOfContentsGen = require('./snippets/tableOfContents.gen.js'); const dedent = require('dedent-tabs').default; @@ -174,6 +175,12 @@ module.exports = [ gen : CoverPageGen, experimental : true }, + { + name : 'Inside Cover Page', + icon : 'fac book-front-cover', + gen : InsideCoverPageGen, + experimental : true + }, { name : 'Magic Item', icon : 'fas fa-hat-wizard', diff --git a/themes/V3/5ePHB/snippets/insidecoverpage.gen.js b/themes/V3/5ePHB/snippets/insidecoverpage.gen.js new file mode 100644 index 000000000..eded22425 --- /dev/null +++ b/themes/V3/5ePHB/snippets/insidecoverpage.gen.js @@ -0,0 +1,41 @@ +const _ = require('lodash'); +const dedent = require('dedent-tabs').default; + +const titles = [ + 'The Burning Gallows', 'The Ring of Nenlast', + 'Below the Blind Tavern', 'Below the Hungering River', + 'Before Bahamut\'s Land', 'The Cruel Grave from Within', + 'The Strength of Trade Road', 'Through The Raven Queen\'s Worlds', + 'Within the Settlement', 'The Crown from Within', + 'The Merchant Within the Battlefield', 'Ioun\'s Fading Traveler', + 'The Legion Ingredient', 'The Explorer Lure', + 'Before the Charming Badlands', 'Vecna\'s Hidden Sage', + 'The Living Dead Above the Fearful Cage', 'Bahamut\'s Demonspawn', + 'Across Gruumsh\'s Elemental Chaos', 'The Blade of Orcus', + 'Beyond Revenge', 'Brain of Insanity', + 'Breed Battle!, A New Beginning', 'Evil Lake, A New Beginning', + 'Invasion of the Gigantic Cat, Part II', 'Kraken War 2020', + 'The Body Whisperers', 'The Doctor from Heaven', + 'The Diabolical Tales of the Ape-Women', 'The Doctor Immortal', + 'Core of Heaven: Guardian of Amazement', 'The Graveyard', + 'Guardian: Skies of the Dark Wizard', 'Lute of Eternity', + 'Mercury\'s Planet: Brave Evolution', 'Azure Core', + 'Sky of Zelda: The Thunder of Force', 'Core Battle', + 'Ruby of Atlantis: The Quake of Peace', 'Deadly Amazement III', + 'Dry Chaos IX', 'Gate Thunder', + 'Vyse\'s Skies', 'White Greatness III', + 'Yellow Divinity', 'Zidane\'s Ghost' +]; + +module.exports = ()=>{ +return dedent`{{insideCover}} + +# Player's Hand book +___ + +![image](https://i.imgur.com/dpg5qPT.png) {} + +{{logo}} + +\page`; +}; \ No newline at end of file diff --git a/themes/V3/5ePHB/style.less b/themes/V3/5ePHB/style.less index 61c9900fe..bdaabc738 100644 --- a/themes/V3/5ePHB/style.less +++ b/themes/V3/5ePHB/style.less @@ -783,6 +783,64 @@ h5 + table{ font-family : Overpass; } } +//***************************** +// * INSIDE COVER PAGE +// *****************************/ +.page:has(.insideCover) { + h1 { + font-family: NodestoCapsCondensed; + font-weight: normal; + font-size: 2.1cm; + text-align: center; + text-transform: uppercase; + line-height: 2cm; + position: absolute; + top: 3.2cm; + left: 50%; + translate: -50% 0; + width: max-content; + } + + hr { + visibility: visible; + height: 0.3cm; + width: 12cm; + position: absolute; + left: 50%; + top: 6cm; + translate: -50% 0; + background-image: @horizontalRule; + background-size: 100%; + border: none; + } + + img { + position: absolute; + left: 60%; + top: 20%; + translate: -50% 0; + min-width: 100%; + mask-image: @insideCoverMask; + mask-repeat: no-repeat; + -webkit-mask-image: @insideCoverMask; + -webkit-mask-repeat: no-repeat; + } + + .logo { + position: absolute; + bottom: 1cm; + left: 50%; + translate: -50% 0; + width: 2cm; + height: 2cm; + background-image: @naturalCritLogo; + } + + &::after { + all: unset; + } +} + //***************************** diff --git a/themes/assets/assets.less b/themes/assets/assets.less index 1f61bf89e..0d604ef62 100644 --- a/themes/assets/assets.less +++ b/themes/assets/assets.less @@ -13,6 +13,7 @@ @naturalCritLogo : url('/assets/naturalCritLogo.svg'); @coverPageBanner : url('/assets/coverPageBanner.svg'); @horizontalRule : url('/assets/horizontalRule.svg'); +@insideCoverMask : url('/assets/insideCoverMask.png'); // Watercolor Images @watercolor1 : url('/assets/watercolor/watercolor1.png'); diff --git a/themes/assets/insideCoverMask.png b/themes/assets/insideCoverMask.png new file mode 100644 index 000000000..d28a93f70 Binary files /dev/null and b/themes/assets/insideCoverMask.png differ