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.

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

/**
 * The stamp collage covers: a checker band, photos cut into arches and
 * perforated stamps, a round postmark with its words on the ring. Drawn
 * in india-stamp.
 *
 * 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_STAMP_COLLAGE: readonly BookDecoratedTemplate[] = [
  {
    id: 'stamp-collage-checker',
    labelKey: 'studio.templates.name.stampCollageChecker',
    kind: 'single',
    archetype: 'stamp-collage',
    tags: ['stamps', 'collage', 'checker', 'arches', 'postmark', 'three-photos', 'lively'],
    descr:
      'A magenta checker band across the head, three photos below it cut into a tall arch, a zigzag-edged print and an arch, each in a white border, the title in a fat display serif and a round postmark with its words on the ring.',
    background: '#fbf2e2',
    backgroundToken: 'paper',
    elements: [
      {
        id: 's1',
        tint: { fg: 'accent', bg: 'paper' },
        frame: { x: -0.0143, y: -0.0143, w: 1.0286, h: 0.4 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#bd2275',
        gradient: 'none',
        paint: { type: 'pattern', pattern: 'checker', fg: '#bd2275', bg: '#fbf2e2', scale: 1.1, angle: 0 },
        stroke: null,
        token: 'accent',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 'p2',
        role: 'photo:1',
        frame: { x: 0.0857, y: 0.1714, w: 0.2667, h: 0.5333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: 'arch-tall',
        frameStyle: 'none',
        border: { width: 0.0143, color: '#ffffff' },
      },
      {
        id: 'p3',
        role: 'photo:2',
        frame: { x: 0.381, y: 0.2476, w: 0.2857, h: 0.3619 },
        rotation: -4,
        opacity: 1,
        locked: false,
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: null,
        frameStyle: 'none',
        border: { width: 0.0119, color: '#ffffff' },
        edge: 'zigzag',
        edgeSize: 0.0076,
      },
      {
        id: 'p4',
        role: 'photo:3',
        frame: { x: 0.6952, y: 0.1905, w: 0.2286, h: 0.4095 },
        rotation: 4,
        opacity: 1,
        locked: false,
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: 'arch',
        frameStyle: 'none',
        border: { width: 0.0119, color: '#ffffff' },
      },
      {
        id: 't5',
        role: 'title',
        frame: { x: 0.0762, y: 0.7238, w: 0.5143, h: 0.181 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'abril',
        size: 0.2667,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0,
        color: '#2a1b2e',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'bottom',
        fit: 'shrink',
        fitMax: 0.2667,
      },
      {
        id: 't6',
        role: 'caption',
        frame: { x: 0.0857, y: 0.9143, w: 0.4762, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0381,
        weight: 600,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0.42,
        color: '#695c64',
        token: 'muted',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
      {
        id: 'l7',
        tint: { stroke: 'ink' },
        frame: { x: 0.5281, y: 0.7697, w: 0.2081, h: 0.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'postmark',
        kind: 'line',
        points: [
          { x: 0, y: 0.5 },
          { x: 1, y: 0.5 },
        ],
        curve: 'straight',
        stroke: '#2a1b2e',
        strokeWidth: 0.0019,
        dash: 'solid',
        squiggle: 'wave',
        startCap: 'none',
        endCap: 'none',
        wobble: 0,
        ornament: 'none',
      },
      {
        id: 'l8',
        tint: { stroke: 'ink' },
        frame: { x: 0.5281, y: 0.8091, w: 0.2081, h: 0.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'postmark',
        kind: 'line',
        points: [
          { x: 0, y: 0.5 },
          { x: 1, y: 0.5 },
        ],
        curve: 'straight',
        stroke: '#2a1b2e',
        strokeWidth: 0.0019,
        dash: 'solid',
        squiggle: 'wave',
        startCap: 'none',
        endCap: 'none',
        wobble: 0,
        ornament: 'none',
      },
      {
        id: 's9',
        keep: true,
        frame: { x: 0.7143, y: 0.6952, w: 0.219, h: 0.219 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'postmark',
        kind: 'shape',
        shape: 'ellipse',
        fill: null,
        gradient: 'none',
        stroke: '#2a1b2e',
        strokeToken: 'ink',
        strokeWidth: 0.0029,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's10',
        keep: true,
        frame: { x: 0.7515, y: 0.7325, w: 0.1446, h: 0.1446 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'postmark',
        kind: 'shape',
        shape: 'ellipse',
        fill: null,
        gradient: 'none',
        stroke: '#2a1b2e',
        strokeToken: 'ink',
        strokeWidth: 0.0014,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't11',
        role: 'subtitle',
        keep: true,
        frame: { x: 0.7214, y: 0.7024, w: 0.2048, h: 0.2048 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'postmark',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.031,
        weight: 600,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.28,
        color: '#2a1b2e',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        curve: { type: 'circle', bend: 40, start: 0 },
        fit: 'shrink',
        fitMax: 0.031,
      },
      {
        id: 't12',
        role: 'date',
        keep: true,
        frame: { x: 0.7625, y: 0.7785, w: 0.1227, h: 0.0526 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'postmark',
        kind: 'text',
        text: '',
        font: 'abril',
        size: 0.0714,
        weight: 400,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0,
        color: '#2a1b2e',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0714,
      },
    ],
  },
  {
    id: 'stamp-collage-row',
    labelKey: 'studio.templates.name.stampCollageRow',
    kind: 'single',
    archetype: 'stamp-collage',
    tags: ['stamps', 'collage', 'checker', 'perforated', 'postmark', 'three-photos', 'lively'],
    descr:
      'The title in a fat display serif and the date at the head, three photos as perforated stamps in a loose row, a teal checker band under them and a postmark over the last; the subtitle on an ink band at the foot.',
    background: '#fbf2e2',
    backgroundToken: 'paper',
    elements: [
      {
        id: 't1',
        role: 'title',
        frame: { x: 0.0762, y: 0.0762, w: 0.8476, h: 0.1905 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'abril',
        size: 0.2857,
        weight: 400,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0,
        color: '#2a1b2e',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.2857,
      },
      {
        id: 't2',
        role: 'date',
        frame: { x: 0.1905, y: 0.2762, w: 0.619, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0381,
        weight: 600,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.42,
        color: '#695c64',
        token: 'muted',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
      {
        id: 's3',
        tint: { fg: 'accent3', bg: 'paper' },
        frame: { x: -0.0143, y: 0.6667, w: 1.0286, h: 0.3476 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#12807f',
        gradient: 'none',
        paint: { type: 'pattern', pattern: 'checker', fg: '#12807f', bg: '#fbf2e2', scale: 1.1, angle: 0 },
        stroke: null,
        token: 'accent3',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 'p4',
        role: 'photo:1',
        tint: { shadow: 'ink' },
        frame: { x: 0.0667, y: 0.381, w: 0.2762, h: 0.3524 },
        rotation: -5,
        opacity: 1,
        locked: false,
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: null,
        frameStyle: 'none',
        border: { width: 0.0143, color: '#ffffff' },
        shadow: { dx: 0.0057, dy: 0.0057, color: '#2a1b2e', alpha: 0.18 },
        edge: 'perforated',
        edgeSize: 0.0067,
      },
      {
        id: 'p5',
        role: 'photo:2',
        tint: { shadow: 'ink' },
        frame: { x: 0.3619, y: 0.3524, w: 0.2762, h: 0.3524 },
        rotation: 2,
        opacity: 1,
        locked: false,
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: null,
        frameStyle: 'none',
        border: { width: 0.0143, color: '#ffffff' },
        shadow: { dx: 0.0057, dy: 0.0057, color: '#2a1b2e', alpha: 0.18 },
        edge: 'perforated',
        edgeSize: 0.0067,
      },
      {
        id: 'p6',
        role: 'photo:3',
        tint: { shadow: 'ink' },
        frame: { x: 0.6571, y: 0.3905, w: 0.2762, h: 0.3524 },
        rotation: 6,
        opacity: 1,
        locked: false,
        group: 'stamp',
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: null,
        frameStyle: 'none',
        border: { width: 0.0143, color: '#ffffff' },
        shadow: { dx: 0.0057, dy: 0.0057, color: '#2a1b2e', alpha: 0.18 },
        edge: 'perforated',
        edgeSize: 0.0067,
      },
      {
        id: 's7',
        tint: { colors: ['ink'] },
        frame: { x: 0.7143, y: 0.6571, w: 0.219, h: 0.1286 },
        rotation: -10,
        opacity: 0.9,
        locked: false,
        group: 'stamp',
        kind: 'sticker',
        stickerId: 'postmark',
        colors: ['#2a1b2e'],
        flipX: false,
      },
      {
        id: 't8',
        role: 'subtitle',
        tint: { highlight: 'ink' },
        frame: { x: 0.1905, y: 0.8571, w: 0.619, h: 0.0476 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0405,
        weight: 600,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.42,
        color: '#fbf2e2',
        token: 'paper',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        highlight: { color: '#2a1b2e', alpha: 1, padX: 0.0119, padY: 0.0048, radius: 0 },
        fit: 'shrink',
        fitMax: 0.0405,
      },
    ],
  },
  {
    id: 'stamp-collage-arches',
    labelKey: 'studio.templates.name.stampCollageArches',
    kind: 'single',
    archetype: 'stamp-collage',
    tags: ['stamps', 'collage', 'checker', 'arches', 'passport-stamp', 'two-photos', 'lively'],
    descr:
      'The title in a fat display serif and a script line at the head, two photos cut into tall arches with white borders standing on a saffron checker band, a passport stamp over the corner and the date at the foot.',
    background: '#fbf2e2',
    backgroundToken: 'paper',
    elements: [
      {
        id: 't1',
        role: 'title',
        frame: { x: 0.0762, y: 0.0667, w: 0.8476, h: 0.1714 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'abril',
        size: 0.2952,
        weight: 400,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0,
        color: '#2a1b2e',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.2952,
      },
      {
        id: 't2',
        role: 'subtitle',
        frame: { x: 0.1429, y: 0.2381, w: 0.7143, h: 0.0762 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'parisienne',
        size: 0.1238,
        weight: 400,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0,
        color: '#bd2275',
        token: 'accent',
        fontRole: 'script',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.1238,
      },
      {
        id: 's3',
        tint: { fg: 'accent2', bg: 'paper' },
        frame: { x: -0.0143, y: 0.5333, w: 1.0286, h: 0.1905 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#e9801a',
        gradient: 'none',
        paint: { type: 'pattern', pattern: 'checker', fg: '#e9801a', bg: '#fbf2e2', scale: 0.9, angle: 0 },
        stroke: null,
        token: 'accent2',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 'p4',
        role: 'photo:1',
        frame: { x: 0.1619, y: 0.3429, w: 0.2952, h: 0.5619 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: 'arch-tall',
        frameStyle: 'none',
        border: { width: 0.0143, color: '#ffffff' },
      },
      {
        id: 'p5',
        role: 'photo:2',
        frame: { x: 0.5429, y: 0.3429, w: 0.2952, h: 0.5619 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: 'arch-tall',
        frameStyle: 'none',
        border: { width: 0.0143, color: '#ffffff' },
      },
      {
        id: 's6',
        tint: { colors: ['accent'] },
        frame: { x: 0.7048, y: 0.7524, w: 0.219, h: 0.1524 },
        rotation: -12,
        opacity: 0.9,
        locked: false,
        kind: 'sticker',
        stickerId: 'passportStamp',
        colors: ['#bd2275'],
        flipX: false,
      },
      {
        id: 't7',
        role: 'date',
        frame: { x: 0.2619, y: 0.919, w: 0.4762, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0381,
        weight: 600,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.42,
        color: '#2a1b2e',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
    ],
  },
];