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.

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

/**
 * The spine band covers: a bleed photo beside a band of book cloth on the
 * binding side, the title on the band. Drawn in fabric-classic.
 *
 * 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_SPINE_BAND: readonly BookDecoratedTemplate[] = [
  {
    id: 'spine-band-stitched',
    labelKey: 'studio.templates.name.spineBandStitched',
    kind: 'single',
    archetype: 'spine-band',
    tags: ['cloth', 'band', 'spine', 'photo', 'calm', 'classic'],
    descr:
      'A bleed photo beside a cloth band at the spine with a stitched seam; the title runs up the band in spaced capitals, the year sits on a small label at its foot, a script line over the photo.',
    background: '#efe8db',
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        frame: { x: 0.1619, y: -0.0143, w: 0.8524, 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.0143, w: 0.1762, h: 1.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#5f7d99',
        gradient: 'none',
        stroke: null,
        token: 'accent',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 'l3',
        tint: { stroke: 'paper' },
        frame: { x: 0.1376, y: 0.0286, w: 0.0057, h: 0.9429 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'line',
        points: [
          { x: 0.5, y: 0 },
          { x: 0.5, y: 1 },
        ],
        curve: 'straight',
        stroke: '#efe8db',
        strokeWidth: 0.0021,
        dash: 'dashed',
        squiggle: 'none',
        startCap: 'none',
        endCap: 'none',
        wobble: 0,
        ornament: 'none',
      },
      {
        id: 't4',
        role: 'title',
        on: 'accent',
        frame: { x: -0.2762, y: 0.4333, w: 0.7143, h: 0.0952 },
        rotation: -90,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.1238,
        weight: 500,
        italic: false,
        align: 'center',
        leading: 1.1,
        tracking: 0.42,
        color: '#efe8db',
        token: 'paper',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.1238,
      },
      {
        id: 's5',
        frame: { x: 0.031, y: 0.8667, w: 0.1, h: 0.0571 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'label',
        kind: 'shape',
        shape: 'rect',
        fill: '#efe8db',
        gradient: 'none',
        stroke: null,
        token: 'paper',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0.0038,
      },
      {
        id: 't6',
        role: 'date',
        frame: { x: 0.031, y: 0.8667, w: 0.1, h: 0.0571 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'label',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0357,
        weight: 600,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.25,
        color: '#2e2a26',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0357,
      },
      {
        id: 's7',
        frame: { x: 0.1619, y: 0.6, w: 0.8524, h: 0.4143 },
        rotation: 0,
        opacity: 0.62,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#2e2a26',
        gradient: 'down',
        stroke: null,
        token: 'ink',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't8',
        role: 'subtitle',
        frame: { x: 0.2381, y: 0.7619, w: 0.6952, h: 0.1619 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'sacramento',
        size: 0.1905,
        weight: 400,
        italic: false,
        align: 'right',
        leading: 1.05,
        tracking: 0,
        color: '#efe8db',
        token: 'paper',
        fontRole: 'script',
        binding: null,
        overridden: false,
        vAlign: 'bottom',
        fit: 'shrink',
        fitMax: 0.1905,
      },
    ],
  },
  {
    id: 'spine-band-gingham',
    labelKey: 'studio.templates.name.spineBandGingham',
    kind: 'single',
    archetype: 'spine-band',
    tags: ['cloth', 'gingham', 'band', 'label', 'photo', 'classic'],
    descr:
      'A bleed photo beside a gingham cloth band; a cream label pasted across band and photo holds the title in a serif, a script line under it and the year in spaced capitals.',
    background: '#efe8db',
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        frame: { x: 0.181, y: -0.0143, w: 0.8333, 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',
        tint: { fg: 'accent2', bg: 'paper' },
        frame: { x: -0.0143, y: -0.0143, w: 0.1952, h: 1.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#b0603c',
        gradient: 'none',
        paint: { type: 'pattern', pattern: 'gingham', fg: '#b0603c', bg: '#efe8db', scale: 0.6, angle: 0 },
        stroke: null,
        token: 'accent2',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's3',
        frame: { x: 0.1019, y: 0.5495, w: 0.5333, h: 0.3048 },
        rotation: 0,
        opacity: 0.18,
        locked: false,
        group: 'label',
        kind: 'shape',
        shape: 'rect',
        fill: '#2e2a26',
        gradient: 'none',
        stroke: null,
        token: 'ink',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0.0048,
      },
      {
        id: 's4',
        frame: { x: 0.0952, y: 0.5429, w: 0.5333, h: 0.3048 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'label',
        kind: 'shape',
        shape: 'rect',
        fill: '#efe8db',
        gradient: 'none',
        stroke: null,
        token: 'paper',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0.0048,
      },
      {
        id: 's5',
        frame: { x: 0.1095, y: 0.5571, w: 0.5048, h: 0.2762 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'label',
        kind: 'shape',
        shape: 'rect',
        fill: null,
        gradient: 'none',
        stroke: '#b0603c',
        strokeToken: 'accent2',
        strokeWidth: 0.0014,
        strokeStyle: 'solid',
        radius: 0.0029,
      },
      {
        id: 't6',
        role: 'title',
        frame: { x: 0.1333, y: 0.5762, w: 0.4571, h: 0.1048 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'label',
        kind: 'text',
        text: '',
        font: 'cormorant',
        size: 0.1619,
        weight: 500,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0,
        color: '#2e2a26',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.1619,
      },
      {
        id: 't7',
        role: 'subtitle',
        on: 'paper',
        frame: { x: 0.1333, y: 0.681, w: 0.4571, h: 0.0762 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'label',
        kind: 'text',
        text: '',
        font: 'sacramento',
        size: 0.1238,
        weight: 400,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0,
        color: '#b0603c',
        token: 'accent2',
        fontRole: 'script',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.1238,
      },
      {
        id: 't8',
        role: 'date',
        frame: { x: 0.1333, y: 0.7714, w: 0.4571, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'label',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0357,
        weight: 600,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.4,
        color: '#68635c',
        token: 'muted',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0357,
      },
    ],
  },
  {
    id: 'spine-band-script',
    labelKey: 'studio.templates.name.spineBandScript',
    kind: 'single',
    archetype: 'spine-band',
    tags: ['band', 'spine', 'script', 'photo', 'dark', 'lively'],
    descr:
      'A bleed photo beside a deep ink band with a terracotta trim; a large script title starts on the band and runs over the photo, the date in spaced capitals under it, the subtitle up the band.',
    background: '#efe8db',
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        frame: { x: 0.1714, y: -0.0143, w: 0.8429, 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.0143, w: 0.1857, h: 1.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#2e2a26',
        gradient: 'none',
        stroke: null,
        token: 'ink',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's3',
        frame: { x: 0.1548, y: -0.0143, w: 0.0167, h: 1.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#b0603c',
        gradient: 'none',
        stroke: null,
        token: 'accent2',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's4',
        frame: { x: 0.1714, y: 0.4381, w: 0.8429, h: 0.5762 },
        rotation: 0,
        opacity: 0.66,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#2e2a26',
        gradient: 'down',
        stroke: null,
        token: 'ink',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't5',
        role: 'subtitle',
        frame: { x: -0.2976, y: 0.419, w: 0.7619, h: 0.0571 },
        rotation: -90,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0429,
        weight: 500,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.38,
        color: '#efe8db',
        token: 'paper',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0429,
      },
      {
        id: 't6',
        role: 'title',
        tint: { shadow: 'ink' },
        frame: { x: 0.0952, y: 0.5619, w: 0.8476, h: 0.2381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'sacramento',
        size: 0.4571,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0,
        color: '#efe8db',
        token: 'paper',
        fontRole: 'script',
        binding: null,
        overridden: false,
        vAlign: 'bottom',
        shadow: { dx: 0.0029, dy: 0.0029, color: '#2e2a26', alpha: 0.35 },
        fit: 'shrink',
        fitMax: 0.4571,
      },
      {
        id: 't7',
        role: 'date',
        frame: { x: 0.2, y: 0.819, w: 0.7143, h: 0.0381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0405,
        weight: 600,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0.45,
        color: '#efe8db',
        token: 'paper',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0405,
      },
    ],
  },
];