mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-27 11:32:38 +00:00
initial draft
This commit is contained in:
@@ -34,3 +34,6 @@
|
||||
.fa-file-c {
|
||||
content: url('../icons/fa-file-c.svg');
|
||||
}
|
||||
.fa-file-b {
|
||||
content: url('../icons/fa-file-b.svg');
|
||||
}
|
||||
|
||||
1
client/icons/fa-file-b.svg
Normal file
1
client/icons/fa-file-b.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 610.38 816.48"><defs><style>.cls-1{fill:#000;}.cls-2,.cls-3{fill:#fff;}.cls-3{stroke:#fff;stroke-miterlimit:10;stroke-width:13px;}</style></defs><title>fa-file-b</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g id="page"><path id="page-2" data-name="page" class="cls-1" d="M610.31,468.27c0,77.26.15,154.51,0,231.76S570.55,816.48,493.48,816.47q-191.35,0-382.72,0C42.7,816.46.24,774.73.16,706.67q-.34-296.61,0-593.21C.2,45.08,43.39,2.52,112.31,2.41c90-.14,180,.23,270-.18,12.84,0,21.51.58,32.85,4C432.27,11.27,567.88,156.88,605.91,195c-.74,18-6,5.73,1.36,35.15,0,6.83,3.08,11.24,3.06,18.07C610.2,320.79,610.31,395.72,610.31,468.27Z"/><path id="white_corner" data-name="white corner" class="cls-2" d="M364.11,0V200c.05,9.31,1.66,25.57,13.15,36.76,12,11.69,28.84,12.1,37.52,12.19,119.85,1.25,195.6.36,195.6.36h0L610.11,195l-197,1,3-192Z"/></g><path class="cls-3" d="M190.62,711.45q-12.15,0-18.49-6.35t-6.35-18.49V347.13q0-12.13,6.35-18.49t18.49-6.35H321.45q40.28,0,68.17,11.87t42.78,34.5q14.91,22.63,14.9,55.2,0,36.42-21.25,60.72t-57.68,32v-7.73q41.4,5,64.86,29.81t23.46,65.69q0,51.89-33.68,79.49t-94.94,27.6Zm19.32-215.28H314.82q43.07,0,65.41-17.67t22.36-50.78q0-34.22-22.36-51.61t-65.41-17.39H209.94Zm0,178.85H323.66q44.14,0,66.23-17.67T412,603.81q0-36.43-22.08-53.82T323.66,532.6H209.94Z"/></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -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',
|
||||
|
||||
27
themes/V3/5ePHB/snippets/backcoverpage.gen.js
Normal file
27
themes/V3/5ePHB/snippets/backcoverpage.gen.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
|
||||
|
||||
module.exports = ()=>{
|
||||
return dedent`{{backCover}}
|
||||
|
||||
{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
|
||||
}}`;
|
||||
};
|
||||
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
BIN
themes/assets/backCover.png
Normal file
BIN
themes/assets/backCover.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 280 KiB |
Reference in New Issue
Block a user