diff --git a/client/icons/customIcons.less b/client/icons/customIcons.less index f3ee02dac..3c58a363f 100644 --- a/client/icons/customIcons.less +++ b/client/icons/customIcons.less @@ -34,3 +34,6 @@ .fa-file-c { content: url('../icons/fa-file-c.svg'); } +.fa-file-b { + content: url('../icons/fa-file-b.svg'); +} diff --git a/client/icons/fa-file-b.svg b/client/icons/fa-file-b.svg new file mode 100644 index 000000000..4d051313d --- /dev/null +++ b/client/icons/fa-file-b.svg @@ -0,0 +1 @@ +fa-file-b \ No newline at end of file diff --git a/themes/V3/5ePHB/snippets.js b/themes/V3/5ePHB/snippets.js index 51b91e6b0..1f911c4ca 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 BackCoverPageGen = require('./snippets/backcoverpage.gen.js'); const TableOfContentsGen = require('./snippets/tableOfContents.gen.js'); const dedent = require('dedent-tabs').default; @@ -173,6 +174,11 @@ module.exports = [ icon : 'fac fa-file-c', gen : CoverPageGen, }, + { + name : 'Back Cover Page', + icon : 'fac fa-file-b', + gen : BackCoverPageGen, + }, { name : 'Magic Item', icon : 'fas fa-hat-wizard', diff --git a/themes/V3/5ePHB/snippets/backcoverpage.gen.js b/themes/V3/5ePHB/snippets/backcoverpage.gen.js new file mode 100644 index 000000000..4416988c9 --- /dev/null +++ b/themes/V3/5ePHB/snippets/backcoverpage.gen.js @@ -0,0 +1,27 @@ +const _ = require('lodash'); +const dedent = require('dedent-tabs').default; + + +module.exports = ()=>{ + return dedent`{{backCover}} + +![background image](https://i.imgur.com/Mqx8Vf7.png){right:-350px;} + +# Back cover + +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris. +: +Nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. +: +Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +: +Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. +__________ + +For use with the fifth edition manuals, existing and to exist. + + +{{logo +Homebrewery.Naturlacrit.com +}}`; +}; \ No newline at end of file diff --git a/themes/V3/5ePHB/style.less b/themes/V3/5ePHB/style.less index 61c9900fe..1e5656d68 100644 --- a/themes/V3/5ePHB/style.less +++ b/themes/V3/5ePHB/style.less @@ -783,7 +783,82 @@ h5 + table{ font-family : Overpass; } } - +//***************************** +// * BACK COVER +// *****************************/ +.page:has(.backCover) { + color: #fff; + padding: 2cm 13cm 0 1.2cm; + .backCover { + position: absolute; + inset: 0; + width: 11cm; + background-image: @backCover; + background-repeat: no-repeat; + background-size: contain; + z-index: -1; + } + h1 { + margin-bottom: .5cm; + font-size: 1.4cm; + font-family: NodestoCapsCondensed; + text-align: center; + color: #ED1C24; + } + h1+p::first-line, + h1+p::first-letter { + all: unset; + } + img { + position: absolute; + top: 0px; + height: 100%; + z-index: -2; + } + hr { + margin-left: .53cm; + margin-top: .53cm; + height: .53cm; + width: 6cm; + visibility: visible; + background-image: @horizontalRule; + background-size: 100% 100%; + border: none; + } + p { + font-family: Overpass; + } + hr+p { + padding: 0 1.2cm 0 .53cm; + font-family: Overpass; + text-align: center; + margin-top: .6cm; + } + .logo { + position: absolute; + left: 4cm; + bottom: 2cm; + height: 1.5cm; + width: 1.5cm; + background-image: @naturalCritLogo; + background-position: center; + filter: saturate(0%) brightness(1000%); + >p { + position: absolute; + top: 2cm; + left: 50%; + color: #fff; + font-family: NodestoCapsCondensed; + font-size: .4cm; + translate: -50% 0; + transform: scale(1.6, 1.0); + width: max-content; + } + } + &:after { + all: unset; + } +} //***************************** // * TABLE OF CONTENTS diff --git a/themes/assets/assets.less b/themes/assets/assets.less index 1f61bf89e..c5591500d 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'); +@backCover : url('/assets/backCover.png'); // Watercolor Images @watercolor1 : url('/assets/watercolor/watercolor1.png'); diff --git a/themes/assets/backCover.png b/themes/assets/backCover.png new file mode 100644 index 000000000..fa62a4ac1 Binary files /dev/null and b/themes/assets/backCover.png differ