mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-21 09:22:50 +00:00
initial draft
This commit is contained in:
@@ -5,6 +5,7 @@ const ClassTableGen = require('./snippets/classtable.gen.js');
|
|||||||
const MonsterBlockGen = require('./snippets/monsterblock.gen.js');
|
const MonsterBlockGen = require('./snippets/monsterblock.gen.js');
|
||||||
const ClassFeatureGen = require('./snippets/classfeature.gen.js');
|
const ClassFeatureGen = require('./snippets/classfeature.gen.js');
|
||||||
const CoverPageGen = require('./snippets/coverpage.gen.js');
|
const CoverPageGen = require('./snippets/coverpage.gen.js');
|
||||||
|
const InsideCoverPageGen = require('./snippets/insidecoverpage.gen.js')
|
||||||
const TableOfContentsGen = require('./snippets/tableOfContents.gen.js');
|
const TableOfContentsGen = require('./snippets/tableOfContents.gen.js');
|
||||||
const dedent = require('dedent-tabs').default;
|
const dedent = require('dedent-tabs').default;
|
||||||
|
|
||||||
@@ -174,6 +175,12 @@ module.exports = [
|
|||||||
gen : CoverPageGen,
|
gen : CoverPageGen,
|
||||||
experimental : true
|
experimental : true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name : 'Inside Cover Page',
|
||||||
|
icon : 'fac book-front-cover',
|
||||||
|
gen : InsideCoverPageGen,
|
||||||
|
experimental : true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name : 'Magic Item',
|
name : 'Magic Item',
|
||||||
icon : 'fas fa-hat-wizard',
|
icon : 'fas fa-hat-wizard',
|
||||||
|
|||||||
41
themes/V3/5ePHB/snippets/insidecoverpage.gen.js
Normal file
41
themes/V3/5ePHB/snippets/insidecoverpage.gen.js
Normal file
@@ -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
|
||||||
|
___
|
||||||
|
|
||||||
|
 {}
|
||||||
|
|
||||||
|
{{logo}}
|
||||||
|
|
||||||
|
\page`;
|
||||||
|
};
|
||||||
@@ -783,6 +783,64 @@ h5 + table{
|
|||||||
font-family : Overpass;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//*****************************
|
//*****************************
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
@naturalCritLogo : url('/assets/naturalCritLogo.svg');
|
@naturalCritLogo : url('/assets/naturalCritLogo.svg');
|
||||||
@coverPageBanner : url('/assets/coverPageBanner.svg');
|
@coverPageBanner : url('/assets/coverPageBanner.svg');
|
||||||
@horizontalRule : url('/assets/horizontalRule.svg');
|
@horizontalRule : url('/assets/horizontalRule.svg');
|
||||||
|
@insideCoverMask : url('/assets/insideCoverMask.png');
|
||||||
|
|
||||||
// Watercolor Images
|
// Watercolor Images
|
||||||
@watercolor1 : url('/assets/watercolor/watercolor1.png');
|
@watercolor1 : url('/assets/watercolor/watercolor1.png');
|
||||||
|
|||||||
BIN
themes/assets/insideCoverMask.png
Normal file
BIN
themes/assets/insideCoverMask.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 262 KiB |
Reference in New Issue
Block a user