Skip to content

armgit / TREK

Public Imported from GitHub
0

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.

12.9 KB
Raw Blame
import type { BookDecoratedTemplate } from '../template-format';

/**
 * Double spreads for a story: a hero photo with the words beside it. 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_STORY: readonly BookDecoratedTemplate[] = [
  {
    id: 'hero-script-word',
    labelKey: 'studio.templates.name.heroScriptWord',
    kind: 'inner',
    archetype: 'postcard',
    tags: ['hero', 'script', 'overlay', 'story', 'two-photos', 'lively'],
    descr:
      'A bleed hero photo on the left page with the title laid over it in a giant script; on the right the date, the subtitle and the story in a column beside a tall second photo with its caption.',
    background: '#e3f1e8',
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        frame: { x: -0.0143, y: -0.0143, w: 1.0143, h: 1.0286 },
        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.0143, y: 0.5333, w: 1.0143, h: 0.481 },
        rotation: 0,
        opacity: 0.55,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#1f2d4d',
        gradient: 'down',
        stroke: null,
        token: 'ink',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't3',
        role: 'title',
        tint: { shadow: 'ink' },
        frame: { x: 0.0667, y: 0.4952, w: 0.8762, h: 0.381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'dancing',
        size: 0.4571,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0,
        color: '#e3f1e8',
        token: 'paper',
        fontRole: 'script',
        binding: null,
        overridden: false,
        vAlign: 'bottom',
        shadow: { dx: 0.0033, dy: 0.0033, color: '#1f2d4d', alpha: 0.35 },
        fit: 'shrink',
        fitMax: 0.4571,
      },
      {
        id: 't4',
        role: 'date',
        frame: { x: 1.0857, y: 0.1143, w: 0.8381, h: 0.0381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'head',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0405,
        weight: 600,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0.42,
        color: '#1f2d4d',
        token: 'ink',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0405,
      },
      {
        id: 't5',
        role: 'subtitle',
        frame: { x: 1.0857, y: 0.1619, w: 0.8381, h: 0.0762 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'head',
        kind: 'text',
        text: '',
        font: 'dmserif',
        size: 0.1048,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.05,
        tracking: 0,
        color: '#1f2d4d',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'top',
        fit: 'shrink',
        fitMax: 0.1048,
      },
      {
        id: 't6',
        role: 'body',
        frame: { x: 1.0857, y: 0.2857, w: 0.4952, h: 0.6381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0476,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.55,
        tracking: 0,
        color: '#1f2d4d',
        token: 'ink',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'top',
      },
      {
        id: 'p7',
        role: 'photo:2',
        frame: { x: 1.6286, y: 0.2857, w: 0.2952, h: 0.581 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'picture',
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: null,
        frameStyle: 'none',
      },
      {
        id: 't8',
        role: 'caption',
        frame: { x: 1.6286, y: 0.8857, w: 0.2952, h: 0.0476 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'picture',
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0357,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.35,
        tracking: 0.04,
        color: '#5a687c',
        token: 'muted',
        fontRole: 'body',
        binding: null,
        overridden: false,
        fit: 'shrink',
        fitMax: 0.0357,
      },
    ],
  },
  {
    id: 'hero-trio-wordart',
    labelKey: 'studio.templates.name.heroTrioWordart',
    kind: 'inner',
    archetype: 'poster-pop',
    tags: ['hero', 'word-art', 'photo-filled', 'three-grid', 'story', 'four-photos', 'loud'],
    descr:
      'A bleed hero photo on the left page; on the right the title in heavy capitals filled with the hero photo, three photos in a row with 2 mm gutters, the date and the story under them.',
    background: '#fbf1de',
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        frame: { x: -0.0143, y: -0.0143, w: 1.0143, h: 1.0286 },
        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',
        fillPhoto: 'photo:1',
        frame: { x: 1.0762, y: 0.0762, w: 0.8476, h: 0.2571 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'archivo',
        size: 0.3714,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 0.9,
        tracking: 0,
        color: '#ef4e45',
        token: 'accent',
        fontRole: 'display',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.3714,
      },
      {
        id: 'p3',
        role: 'photo:2',
        frame: { x: 1.0762, y: 0.3714, w: 0.2762, h: 0.3524 },
        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:3',
        frame: { x: 1.3619, y: 0.3714, w: 0.2762, h: 0.3524 },
        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:4',
        frame: { x: 1.6476, y: 0.3714, w: 0.2762, h: 0.3524 },
        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: 't6',
        role: 'date',
        frame: { x: 1.0762, y: 0.7619, w: 0.8476, h: 0.0381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0405,
        weight: 600,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0.42,
        color: '#1d1a2f',
        token: 'ink',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0405,
      },
      {
        id: 't7',
        role: 'body',
        frame: { x: 1.0762, y: 0.819, w: 0.8476, h: 0.1238 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0452,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.5,
        tracking: 0,
        color: '#1d1a2f',
        token: 'ink',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'top',
      },
    ],
  },
  {
    id: 'story-quote',
    labelKey: 'studio.templates.name.storyQuote',
    kind: 'inner',
    archetype: 'minimal-serif',
    tags: ['story', 'quote', 'serif', 'calm', 'one-photo', 'text'],
    descr:
      'A photo with a hairline border on the left page with its caption; on the right a large opening quotation mark, the title set as a quote in a thin italic serif, the date, a short rule and the story.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        tint: { border: 'ink' },
        frame: { x: 0.0857, y: 0.0857, w: 0.8286, h: 0.819 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'picture',
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: null,
        frameStyle: 'none',
        border: { width: 0.0014, color: '#222222' },
      },
      {
        id: 't2',
        role: 'caption',
        frame: { x: 0.0857, y: 0.9238, w: 0.8286, h: 0.0381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'picture',
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0357,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.35,
        tracking: 0.04,
        color: '#646464',
        token: 'muted',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0357,
      },
      {
        id: 't3',
        frame: { x: 1.0762, y: 0.0571, w: 0.1905, h: 0.2381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'quote',
        kind: 'text',
        text: '“',
        font: 'cormorant',
        size: 0.6667,
        weight: 300,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0,
        color: '#857d72',
        token: 'accent',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'top',
      },
      {
        id: 't4',
        role: 'title',
        frame: { x: 1.0857, y: 0.3048, w: 0.8381, h: 0.1905 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'quote',
        kind: 'text',
        text: '',
        font: 'cormorant',
        size: 0.1429,
        weight: 300,
        italic: true,
        align: 'left',
        leading: 1.1,
        tracking: 0,
        color: '#222222',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'top',
        fit: 'shrink',
        fitMax: 0.1429,
      },
      {
        id: 't5',
        role: 'date',
        frame: { x: 1.0857, y: 0.5143, w: 0.8381, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'quote',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0405,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0.42,
        color: '#646464',
        token: 'muted',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0405,
      },
      {
        id: 's6',
        frame: { x: 1.0857, y: 0.5714, w: 0.1143, h: 0.0019 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'quote',
        kind: 'shape',
        shape: 'rect',
        fill: '#222222',
        gradient: 'none',
        stroke: null,
        token: 'ink',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't7',
        role: 'body',
        frame: { x: 1.0857, y: 0.6095, w: 0.8381, h: 0.3238 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0476,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.55,
        tracking: 0,
        color: '#222222',
        token: 'ink',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'top',
      },
    ],
  },
];