0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 03:12:40 +00:00
Add basic Homebrewery credits snippet
This commit is contained in:
Trevor Buckner
2023-12-07 22:33:41 -05:00
committed by GitHub
2 changed files with 50 additions and 0 deletions

View File

@@ -111,6 +111,21 @@ module.exports = [
icon : 'fas fa-code',
gen : '<!-- This is a comment that will not be rendered into your brew. Hotkey (Ctrl/Cmd + /). -->'
},
{
name : 'Homebrewery Credit',
icon : 'fas fa-dice-d20',
gen : function(){
return dedent`
{{homebreweryCredits
Made With
{{homebreweryIcon}}
The Homebrewery
[Homebrewery.Naturalcrit.com](https://homebrewery.naturalcrit.com)
}}\n\n`;
},
}
]
},
{

View File

@@ -461,3 +461,38 @@ body {
}
}
}
//*****************************
//* CREDITS
//*****************************/
.page .homebreweryCredits {
p {
font-family: "NodestoCapsWide";
font-size: .4cm;
line-height: 1em;
text-align: center;
text-indent: 0;
letter-spacing: .08em;
}
a {
color: inherit;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
.homebreweryIcon {
margin: 0 auto;
display: block;
height: 1.5cm;
mask: url(/assets/naturalCritLogoWhite.svg) center / contain no-repeat;
-webkit-mask: url(/assets/naturalCritLogoWhite.svg) center / contain no-repeat;
background-color: black;
}
.homebreweryIcon.red {
background-color: red;
}
.homebreweryIcon.gold {
background-image: linear-gradient(to top left, brown 22.5%, gold 40%, white 60%, gold 67.5%, brown 82.5%);
}
}