The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
import type { BookDecoratedTemplate } from '../template-format';
/**
* The grid and badge covers: four photos two by two with a cross of paper
* between them, and a round badge at the centre with the title and the
* year. Drawn in grid-badge.
*
* Drawn on a 210 mm page and kept as fractions of it (template-format.ts),
* in the colours and faces of the theme named above; their links let any
* other theme recolour them.
*/
export const COVERS_GRID_BADGE: readonly BookDecoratedTemplate[] = [
{
id: 'grid-badge-circle',
labelKey: 'studio.templates.name.gridBadgeCircle',
kind: 'single',
archetype: 'grid-badge',
tags: ['grid', 'four-photos', 'badge', 'circle', 'clean', 'graphic'],
descr:
'Four bleed photos two by two with a 5 mm white cross between them, a white circle at the centre with a hairline ring, a small spaced line, the title in heavy capitals and the year over a red rule.',
background: null,
backgroundToken: 'paper',
elements: [
{
id: 'p1',
role: 'photo:1',
frame: { x: -0.0143, y: -0.0143, w: 0.5024, h: 0.5024 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p2',
role: 'photo:2',
frame: { x: 0.5119, y: -0.0143, w: 0.5024, h: 0.5024 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p3',
role: 'photo:3',
frame: { x: -0.0143, y: 0.5119, w: 0.5024, h: 0.5024 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p4',
role: 'photo:4',
frame: { x: 0.5119, y: 0.5119, w: 0.5024, h: 0.5024 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 's5',
keep: true,
frame: { x: 0.2905, y: 0.2905, w: 0.419, h: 0.419 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'shape',
shape: 'ellipse',
fill: '#ffffff',
gradient: 'none',
stroke: null,
token: 'paper',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0,
},
{
id: 's6',
keep: true,
frame: { x: 0.3095, y: 0.3095, w: 0.381, h: 0.381 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'shape',
shape: 'ellipse',
fill: null,
gradient: 'none',
stroke: '#141414',
strokeToken: 'ink',
strokeWidth: 0.0019,
strokeStyle: 'solid',
radius: 0,
},
{
id: 't7',
role: 'subtitle',
keep: true,
on: 'paper',
frame: { x: 0.3619, y: 0.3762, w: 0.2762, h: 0.0333 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.031,
weight: 600,
italic: false,
align: 'center',
leading: 1,
tracking: 0.32,
color: '#5b5b5b',
token: 'muted',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.031,
},
{
id: 't8',
role: 'title',
keep: true,
on: 'paper',
frame: { x: 0.3429, y: 0.419, w: 0.3143, h: 0.1286 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.1429,
weight: 800,
italic: false,
align: 'center',
leading: 0.95,
tracking: 0,
color: '#141414',
token: 'ink',
fontRole: 'display',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.1429,
},
{
id: 's9',
keep: true,
frame: { x: 0.4619, y: 0.5571, w: 0.0762, h: 0.0038 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'shape',
shape: 'rect',
fill: '#e2412f',
gradient: 'none',
stroke: null,
token: 'accent',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0,
},
{
id: 't10',
role: 'date',
keep: true,
on: 'paper',
frame: { x: 0.381, y: 0.5714, w: 0.2381, h: 0.0381 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.0405,
weight: 600,
italic: false,
align: 'center',
leading: 1,
tracking: 0.4,
color: '#141414',
token: 'ink',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0405,
},
],
},
{
id: 'grid-badge-stamp',
labelKey: 'studio.templates.name.gridBadgeStamp',
kind: 'single',
archetype: 'grid-badge',
tags: ['grid', 'four-photos', 'badge', 'scalloped', 'curved-text', 'graphic'],
descr:
'Four photos two by two inside a white margin with a 4 mm gutter, a black scalloped badge at the centre with a red ring, the subtitle running round it, the title and the year in white.',
background: null,
backgroundToken: 'paper',
elements: [
{
id: 'p1',
role: 'photo:1',
frame: { x: 0.0571, y: 0.0571, w: 0.4333, h: 0.4333 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p2',
role: 'photo:2',
frame: { x: 0.5095, y: 0.0571, w: 0.4333, h: 0.4333 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p3',
role: 'photo:3',
frame: { x: 0.0571, y: 0.5095, w: 0.4333, h: 0.4333 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p4',
role: 'photo:4',
frame: { x: 0.5095, y: 0.5095, w: 0.4333, h: 0.4333 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 's5',
keep: true,
frame: { x: 0.2952, y: 0.2952, w: 0.4095, h: 0.4095 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'shape',
shape: 'scallop-circle',
fill: '#141414',
gradient: 'none',
stroke: null,
token: 'ink',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0,
},
{
id: 's6',
keep: true,
frame: { x: 0.3238, y: 0.3238, w: 0.3524, h: 0.3524 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'shape',
shape: 'ellipse',
fill: null,
gradient: 'none',
stroke: '#e2412f',
strokeToken: 'accent',
strokeWidth: 0.0029,
strokeStyle: 'solid',
radius: 0,
},
{
id: 't7',
role: 'subtitle',
keep: true,
on: 'ink',
frame: { x: 0.3381, y: 0.3381, w: 0.3238, h: 0.3238 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.031,
weight: 600,
italic: false,
align: 'center',
leading: 1,
tracking: 0.3,
color: '#ffffff',
token: 'paper',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
curve: { type: 'circle', bend: 40, start: 0 },
fit: 'shrink',
fitMax: 0.031,
},
{
id: 't8',
role: 'title',
keep: true,
on: 'ink',
frame: { x: 0.3762, y: 0.4381, w: 0.2476, h: 0.0952 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.1143,
weight: 800,
italic: false,
align: 'center',
leading: 0.95,
tracking: 0,
color: '#ffffff',
token: 'paper',
fontRole: 'display',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.1143,
},
{
id: 't9',
role: 'date',
keep: true,
on: 'ink',
frame: { x: 0.4048, y: 0.5429, w: 0.1905, h: 0.0333 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.0357,
weight: 600,
italic: false,
align: 'center',
leading: 1,
tracking: 0.4,
color: '#ffffff',
token: 'paper',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0357,
},
],
},
{
id: 'grid-badge-seal',
labelKey: 'studio.templates.name.gridBadgeSeal',
kind: 'single',
archetype: 'grid-badge',
tags: ['grid', 'four-photos', 'badge', 'seal', 'red', 'graphic', 'lively'],
descr:
'Four bleed photos two by two on a red ground that shows as a 6 mm cross between them, a white seal at the centre with a script line, the title in heavy capitals and the year.',
background: '#e2412f',
backgroundToken: 'accent',
elements: [
{
id: 'p1',
role: 'photo:1',
frame: { x: -0.0143, y: -0.0143, w: 0.5, h: 0.5 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p2',
role: 'photo:2',
frame: { x: 0.5143, y: -0.0143, w: 0.5, h: 0.5 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p3',
role: 'photo:3',
frame: { x: -0.0143, y: 0.5143, w: 0.5, h: 0.5 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p4',
role: 'photo:4',
frame: { x: 0.5143, y: 0.5143, w: 0.5, h: 0.5 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 's5',
keep: true,
frame: { x: 0.2762, y: 0.2762, w: 0.4476, h: 0.4476 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'shape',
shape: 'seal',
fill: '#ffffff',
gradient: 'none',
stroke: null,
token: 'paper',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0,
},
{
id: 't6',
role: 'subtitle',
keep: true,
on: 'paper',
frame: { x: 0.3429, y: 0.3429, w: 0.3143, h: 0.1048 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'text',
text: '',
font: 'allura',
size: 0.1238,
weight: 400,
italic: false,
align: 'center',
leading: 1,
tracking: 0,
color: '#e2412f',
token: 'accent',
fontRole: 'script',
binding: null,
overridden: false,
vAlign: 'bottom',
fit: 'shrink',
fitMax: 0.1238,
},
{
id: 't7',
role: 'title',
keep: true,
on: 'paper',
frame: { x: 0.3429, y: 0.4571, w: 0.3143, h: 0.1143 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.1333,
weight: 800,
italic: false,
align: 'center',
leading: 0.95,
tracking: 0,
color: '#141414',
token: 'ink',
fontRole: 'display',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.1333,
},
{
id: 't8',
role: 'date',
keep: true,
on: 'paper',
frame: { x: 0.3905, y: 0.581, w: 0.219, h: 0.0333 },
rotation: 0,
opacity: 1,
locked: false,
group: 'badge',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.0381,
weight: 600,
italic: false,
align: 'center',
leading: 1,
tracking: 0.4,
color: '#141414',
token: 'ink',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0381,
},
],
},
];