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';
/**
* Double spreads of photo grids, their gutters 3, 5 and 6 mm wide. Each is
* drawn in the theme of its archetype.
*
* 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 INNER_GRIDS: readonly BookDecoratedTemplate[] = [
{
id: 'grid-tight',
labelKey: 'studio.templates.name.gridTight',
kind: 'inner',
archetype: 'grid-badge',
tags: ['grid', 'eight-photos', 'full-bleed', 'contact-sheet', 'gutter-3mm', 'graphic'],
descr:
'Eight photos, four on each page two by two, cut to the bleed with 3 mm white gutters and a clear gutter at the fold; the title on a small white tab at the foot of the right page.',
background: null,
backgroundToken: 'paper',
elements: [
{
id: 'p1',
role: 'photo:1',
frame: { x: -0.0143, y: -0.0143, w: 0.5036, h: 0.5071 },
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.5036, y: -0.0143, w: 0.4893, h: 0.5071 },
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: 1.0071, y: -0.0143, w: 0.4893, h: 0.5071 },
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: 1.5107, y: -0.0143, w: 0.5036, h: 0.5071 },
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: 'p5',
role: 'photo:5',
frame: { x: -0.0143, y: 0.5071, w: 0.5036, h: 0.5071 },
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: 'p6',
role: 'photo:6',
frame: { x: 0.5036, y: 0.5071, w: 0.4893, h: 0.5071 },
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: 'p7',
role: 'photo:7',
frame: { x: 1.0071, y: 0.5071, w: 0.4893, h: 0.5071 },
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: 'p8',
role: 'photo:8',
frame: { x: 1.5107, y: 0.5071, w: 0.5036, h: 0.5071 },
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: 's9',
frame: { x: 1.5905, y: 0.8857, w: 0.3333, h: 0.0667 },
rotation: 0,
opacity: 1,
locked: false,
group: 'tab',
kind: 'shape',
shape: 'rect',
fill: '#ffffff',
gradient: 'none',
stroke: null,
token: 'paper',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0,
},
{
id: 't10',
role: 'title',
frame: { x: 1.6095, y: 0.8952, w: 0.2952, h: 0.0476 },
rotation: 0,
opacity: 1,
locked: false,
group: 'tab',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.0429,
weight: 600,
italic: false,
align: 'left',
leading: 1,
tracking: 0.4,
color: '#141414',
token: 'ink',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0429,
},
],
},
{
id: 'grid-feature',
labelKey: 'studio.templates.name.gridFeature',
kind: 'inner',
archetype: 'minimal-serif',
tags: ['grid', 'five-photos', 'feature', 'margins', 'gutter-5mm', 'calm'],
descr:
'One large photo on the left page over the title in a thin serif and the date; four photos two by two on the right page, all inside even margins with 5 mm gutters.',
background: null,
backgroundToken: 'paper',
elements: [
{
id: 'p1',
role: 'photo:1',
frame: { x: 0.0762, y: 0.0762, w: 0.8476, h: 0.7143 },
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: 't2',
role: 'title',
frame: { x: 0.0762, y: 0.819, w: 0.5714, h: 0.1143 },
rotation: 0,
opacity: 1,
locked: false,
group: 'title',
kind: 'text',
text: '',
font: 'cormorant',
size: 0.1619,
weight: 300,
italic: false,
align: 'left',
leading: 1,
tracking: 0,
color: '#222222',
token: 'ink',
fontRole: 'display',
binding: null,
overridden: false,
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.1619,
},
{
id: 't3',
role: 'date',
frame: { x: 0.6667, y: 0.8571, w: 0.2571, h: 0.0381 },
rotation: 0,
opacity: 1,
locked: false,
group: 'title',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.0381,
weight: 400,
italic: false,
align: 'right',
leading: 1,
tracking: 0.4,
color: '#646464',
token: 'muted',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0381,
},
{
id: 'p4',
role: 'photo:2',
frame: { x: 1.0762, y: 0.0762, w: 0.4119, h: 0.4119 },
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: 'p5',
role: 'photo:3',
frame: { x: 1.5119, y: 0.0762, w: 0.4119, h: 0.4119 },
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: 'p6',
role: 'photo:4',
frame: { x: 1.0762, y: 0.5119, w: 0.4119, h: 0.4119 },
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: 'p7',
role: 'photo:5',
frame: { x: 1.5119, y: 0.5119, w: 0.4119, h: 0.4119 },
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: 'grid-columns',
labelKey: 'studio.templates.name.gridColumns',
kind: 'inner',
archetype: 'spine-band',
tags: ['grid', 'five-photos', 'columns', 'story', 'gutter-6mm', 'calm'],
descr:
'A tall photo beside two stacked ones on the left page, 6 mm apart; a wide photo on the right page over the title in a serif, the date in spaced capitals and the story, inside even margins.',
background: '#efe8db',
backgroundToken: 'paper',
elements: [
{
id: 'p1',
role: 'photo:1',
frame: { x: 0.0762, y: 0.0762, w: 0.4571, h: 0.8476 },
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.5619, y: 0.0762, w: 0.3619, h: 0.4095 },
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.5619, y: 0.5143, w: 0.3619, h: 0.4095 },
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: 1.0762, y: 0.0762, w: 0.8476, h: 0.4857 },
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',
frame: { x: 1.0762, y: 0.6, w: 0.1429, h: 0.0024 },
rotation: 0,
opacity: 1,
locked: false,
group: 'title',
kind: 'shape',
shape: 'rect',
fill: '#b0603c',
gradient: 'none',
stroke: null,
token: 'accent2',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0,
},
{
id: 't6',
role: 'title',
frame: { x: 1.0762, y: 0.6286, w: 0.8476, h: 0.1143 },
rotation: 0,
opacity: 1,
locked: false,
group: 'title',
kind: 'text',
text: '',
font: 'cormorant',
size: 0.1524,
weight: 500,
italic: false,
align: 'left',
leading: 1,
tracking: 0,
color: '#2e2a26',
token: 'ink',
fontRole: 'display',
binding: null,
overridden: false,
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.1524,
},
{
id: 't7',
role: 'date',
frame: { x: 1.0762, y: 0.7524, w: 0.8476, h: 0.0333 },
rotation: 0,
opacity: 1,
locked: false,
group: 'title',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.0381,
weight: 400,
italic: false,
align: 'left',
leading: 1,
tracking: 0.4,
color: '#68635c',
token: 'muted',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0381,
},
{
id: 't8',
role: 'body',
frame: { x: 1.0762, y: 0.8095, w: 0.8476, h: 0.1238 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'text',
text: '',
font: 'garamond',
size: 0.0452,
weight: 400,
italic: false,
align: 'left',
leading: 1.5,
tracking: 0,
color: '#2e2a26',
token: 'ink',
fontRole: 'body',
binding: null,
overridden: false,
vAlign: 'top',
},
],
},
{
id: 'grid-mosaic',
labelKey: 'studio.templates.name.gridMosaic',
kind: 'inner',
archetype: 'poster-pop',
tags: ['grid', 'mosaic', 'six-photos', 'colour-tile', 'full-bleed', 'gutter-5mm', 'lively'],
descr:
'A mosaic of six photos cut to the bleed with 5 mm gutters and a coral tile among them that holds the title in heavy capitals and the date; a wide photo across the head of the right page.',
background: '#fbf1de',
backgroundToken: 'paper',
elements: [
{
id: 'p1',
role: 'photo:1',
frame: { x: -0.0143, y: -0.0143, w: 0.6095, h: 0.6095 },
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: 's2',
frame: { x: 0.619, y: -0.0143, w: 0.369, h: 0.6095 },
rotation: 0,
opacity: 1,
locked: false,
group: 'tile',
kind: 'shape',
shape: 'rect',
fill: '#ef4e45',
gradient: 'none',
stroke: null,
token: 'accent',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0,
},
{
id: 't3',
role: 'title',
on: 'accent',
frame: { x: 0.6476, y: 0.0667, w: 0.3119, h: 0.4 },
rotation: 0,
opacity: 1,
locked: false,
group: 'tile',
kind: 'text',
text: '',
font: 'archivo',
size: 0.1905,
weight: 400,
italic: false,
align: 'left',
leading: 0.9,
tracking: 0,
color: '#fbf1de',
token: 'paper',
fontRole: 'display',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'top',
fit: 'shrink',
fitMax: 0.1905,
},
{
id: 't4',
role: 'date',
on: 'accent',
frame: { x: 0.6476, y: 0.4762, w: 0.3119, h: 0.0667 },
rotation: 0,
opacity: 1,
locked: false,
group: 'tile',
kind: 'text',
text: '',
font: 'anton',
size: 0.1238,
weight: 400,
italic: false,
align: 'left',
leading: 1,
tracking: 0,
color: '#fbf1de',
token: 'paper',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.1238,
},
{
id: 'p5',
role: 'photo:2',
frame: { x: -0.0143, y: 0.619, w: 0.6095, h: 0.3952 },
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: 'p6',
role: 'photo:3',
frame: { x: 0.619, y: 0.619, w: 0.369, h: 0.3952 },
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: 'p7',
role: 'photo:4',
frame: { x: 1.0119, y: -0.0143, w: 1.0024, h: 0.6095 },
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: 'p8',
role: 'photo:5',
frame: { x: 1.0119, y: 0.619, w: 0.4881, h: 0.3952 },
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: 'p9',
role: 'photo:6',
frame: { x: 1.5238, y: 0.619, w: 0.4905, h: 0.3952 },
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',
},
],
},
];