character-ref/src/viktor/viktor.11tydata.js

57 lines
1.6 KiB
JavaScript

import { getDateOfBirth, getFullName, getHeight, getWeight } from '../includes/util.js';
const firstName = 'Viktor',
lastName = 'Kraastav',
fullName = getFullName(firstName, lastName),
species = 'Ankylosaurus',
dateOfBirth = new Date('1987-12-08'),
gender = 'male',
pronouns = 'he/him',
orientation = 'gay',
role = 'bottom',
height = 192, // cm
weight = 164, // kg
colors = [
{ name: 'Front', value: '#e7c7b1' },
{ name: 'Arms, legs', value: '#493428' },
{ name: 'Back Main', value: '#422322' },
{ name: 'Back Spine', value: '#341c1c' },
{ name: 'Freckles, tissue', value: '#6bb9db' },
{ name: 'Spikes, tail club', value: '#f8ebdd' },
{ name: 'Eyes primary', value: '#a7eef1' },
{ name: 'Eyes secondary', value: '#6dabd1' }
],
description = 'Hardened-up, but far from fossilized!',
naughty = [
{ icon: 'fa6-solid:heart', type: 'Orientation', text: orientation },
{ icon: 'fa6-solid:arrows-up-down', type: 'Role', text: role }
],
anatomy = [
{ icon: 'fa6-solid:cake-candles', type: 'Date of Birth', text: getDateOfBirth(dateOfBirth) },
{ icon: 'fa6-solid:mars', type: 'Sex/Gender', text: `${gender} (${pronouns})` },
{ icon: 'fa6-solid:ruler', type: 'Height', text: getHeight(height) },
{ icon: 'fa6-solid:weight-hanging', type: 'Weight', text: getWeight(weight) }
];
const getTraits = (type) => {
switch (type) {
case 'naughty':
return naughty;
default:
return anatomy;
}
};
export default {
firstName,
fullName,
species,
gender,
pronouns,
colors,
orientation,
role,
description,
getTraits
};