feat: ✨ add jarek data and content
This commit is contained in:
parent
02e5208be7
commit
054885f7f6
5 changed files with 86 additions and 0 deletions
BIN
src/img/jarek/avatar.png
Normal file
BIN
src/img/jarek/avatar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 702 KiB |
9
src/jarek/anatomy.md
Normal file
9
src/jarek/anatomy.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
eleventyNavigation:
|
||||
key: Anatomy
|
||||
order: 2
|
||||
---
|
||||
|
||||
Jarek's color palette:
|
||||
|
||||
<colors :colors="getColors()" webc:nokeep></colors>
|
7
src/jarek/index.md
Normal file
7
src/jarek/index.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
eleventyNavigation:
|
||||
key: About
|
||||
order: 1
|
||||
---
|
||||
|
||||
Jarek is a proud Krondir. He lives for the hunt.
|
67
src/jarek/jarek.11tydata.js
Normal file
67
src/jarek/jarek.11tydata.js
Normal file
|
@ -0,0 +1,67 @@
|
|||
const firstName = 'Jarek',
|
||||
lastName = 'Vakhtang',
|
||||
species = 'Krondir',
|
||||
gender = 'male',
|
||||
height = 217,
|
||||
weight = 159,
|
||||
tailLength = 112,
|
||||
colors = {
|
||||
primary: '#C5914E',
|
||||
hair: '#827427',
|
||||
eyes: '#B2B59D',
|
||||
horn: '#DABA8F',
|
||||
penis: '#B39B38'
|
||||
},
|
||||
penis = {
|
||||
shape: 'canid',
|
||||
type: 'grower',
|
||||
special: 'knotted, sheath',
|
||||
size: 18,
|
||||
girth: 4
|
||||
},
|
||||
description = "Don't encroach on his turf, or you'll be sorry!";
|
||||
|
||||
const toImperial = (cm) => {
|
||||
const realFeet = (cm * 0.3937) / 12;
|
||||
const feet = Math.floor(realFeet);
|
||||
const inches = Math.round((realFeet - feet) * 12);
|
||||
|
||||
return `${feet}'${inches}"`;
|
||||
};
|
||||
|
||||
const toLbs = (kg) => {
|
||||
const nearExact = kg / 0.45359237;
|
||||
const lbs = Math.floor(nearExact);
|
||||
|
||||
return lbs;
|
||||
};
|
||||
|
||||
const getFullName = () => `${firstName} ${lastName}`;
|
||||
const getHeight = () => `${height} cm (${toImperial(height)})`;
|
||||
const getWeight = () => `${weight} kg (${toLbs(weight)} lbs)`;
|
||||
const getTailLength = () => `${tailLength / 100} m (${toImperial(tailLength)})`;
|
||||
|
||||
const getTraits = () => [
|
||||
// { icon: 'cake-candles', type: 'Date of Birth', text: getDateOfBirth() },
|
||||
{ icon: 'mars', type: 'Sex/Gender', text: gender },
|
||||
{ icon: 'ruler', type: 'Height', text: getHeight() },
|
||||
{ icon: 'weight-hanging', type: 'Weight', text: getWeight() },
|
||||
{ icon: 'ruler', type: 'Tail Length', text: getTailLength() }
|
||||
];
|
||||
|
||||
const getColors = () => [
|
||||
{ name: 'Main Fur', value: colors.primary },
|
||||
{ name: 'Hair', value: colors.hair },
|
||||
{ name: 'Eyes', value: colors.eyes },
|
||||
{ name: 'Horn', value: colors.horn }
|
||||
];
|
||||
|
||||
export default {
|
||||
firstName,
|
||||
species,
|
||||
gender,
|
||||
description,
|
||||
getFullName,
|
||||
getTraits,
|
||||
getColors
|
||||
};
|
3
src/jarek/jarek.11tydata.json
Normal file
3
src/jarek/jarek.11tydata.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"layout": "character.webc"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue