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.

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

/**
 * More grid and badge pages: a cover of eight tiles round a red centre
 * badge, a words only spread with a large seal and the story, and a spread
 * of a hero photo with a scalloped badge beside six tall tiles. 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 MORE_GRID_BADGE: readonly BookDecoratedTemplate[] = [
  {
    id: 'grid-badge-tiles',
    labelKey: 'studio.templates.name.gridBadgeTiles',
    kind: 'single',
    archetype: 'grid-badge',
    tags: ['grid', 'eight-photos', 'badge', 'tiles', 'red', 'postmark', 'graphic'],
    descr:
      'Eight bleed photos three by three with 4 mm white gutters round a red centre tile holding a white hairline ring, a script line, the title in heavy capitals, a short rule and the year, an ink postmark on its corner.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        frame: { x: -0.0143, y: -0.0143, w: 0.3302, h: 0.3302 },
        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.3349, y: -0.0143, w: 0.3302, h: 0.3302 },
        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.6841, y: -0.0143, w: 0.3302, h: 0.3302 },
        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.0143, y: 0.3349, w: 0.3302, h: 0.3302 },
        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.6841, y: 0.3349, w: 0.3302, h: 0.3302 },
        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.0143, y: 0.6841, w: 0.3302, h: 0.3302 },
        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: 0.3349, y: 0.6841, w: 0.3302, h: 0.3302 },
        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: 0.6841, y: 0.6841, w: 0.3302, h: 0.3302 },
        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: 0.3349, y: 0.3349, w: 0.3302, h: 0.3302 },
        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: 's10',
        keep: true,
        frame: { x: 0.3619, y: 0.3619, w: 0.2762, h: 0.2762 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'shape',
        shape: 'ellipse',
        fill: null,
        gradient: 'none',
        stroke: '#ffffff',
        strokeToken: 'paper',
        strokeWidth: 0.0019,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't11',
        role: 'subtitle',
        keep: true,
        on: 'accent',
        frame: { x: 0.4048, y: 0.3952, w: 0.1905, h: 0.0476 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'text',
        text: '',
        font: 'allura',
        size: 0.0667,
        weight: 400,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0,
        color: '#ffffff',
        token: 'paper',
        fontRole: 'script',
        binding: null,
        overridden: false,
        vAlign: 'bottom',
        fit: 'shrink',
        fitMax: 0.0667,
      },
      {
        id: 't12',
        role: 'title',
        keep: true,
        on: 'accent',
        frame: { x: 0.3857, y: 0.4476, w: 0.2286, h: 0.0857 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0952,
        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.0952,
      },
      {
        id: 's13',
        keep: true,
        frame: { x: 0.4762, y: 0.5429, w: 0.0476, h: 0.0038 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'shape',
        shape: 'rect',
        fill: '#ffffff',
        gradient: 'none',
        stroke: null,
        token: 'paper',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't14',
        role: 'date',
        keep: true,
        on: 'accent',
        frame: { x: 0.4048, y: 0.5571, w: 0.1905, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0333,
        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.0333,
      },
      {
        id: 's15',
        tint: { colors: ['ink'] },
        frame: { x: 0.6, y: 0.6476, w: 0.1714, h: 0.0997 },
        rotation: -12,
        opacity: 0.85,
        locked: false,
        kind: 'sticker',
        stickerId: 'postmark',
        colors: ['#141414'],
        flipX: false,
      },
    ],
  },
  {
    id: 'grid-badge-letter',
    labelKey: 'studio.templates.name.gridBadgeLetter',
    kind: 'inner',
    archetype: 'grid-badge',
    tags: ['words-only', 'story', 'seal', 'badge', 'squared-paper', 'airmail', 'calm'],
    descr:
      'The left page cream squared paper with a large red seal holding the subtitle round its rim, the title in heavy capitals and the date; the right page a dashed airmail line to a small plane, the long story and a passport stamp.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 's1',
        tint: { fg: 'accent3', bg: 'accent2' },
        frame: { x: -0.0143, y: -0.0143, w: 1.0143, h: 1.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#6f6f6f',
        gradient: 'none',
        paint: { type: 'pattern', pattern: 'grid', fg: '#6f6f6f', bg: '#f2eee7', scale: 1.2, angle: 0 },
        stroke: null,
        token: 'accent3',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's2',
        keep: true,
        frame: { x: 0.1857, y: 0.1457, w: 0.6286, h: 0.6286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'shape',
        shape: 'seal',
        fill: '#e2412f',
        gradient: 'none',
        stroke: null,
        token: 'accent',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's3',
        keep: true,
        frame: { x: 0.2429, y: 0.2029, w: 0.5143, h: 0.5143 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'shape',
        shape: 'ellipse',
        fill: null,
        gradient: 'none',
        stroke: '#ffffff',
        strokeToken: 'paper',
        strokeWidth: 0.0019,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't4',
        role: 'subtitle',
        keep: true,
        on: 'accent',
        frame: { x: 0.2619, y: 0.2219, w: 0.4762, h: 0.4762 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0429,
        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.0429,
      },
      {
        id: 't5',
        role: 'title',
        keep: true,
        on: 'accent',
        frame: { x: 0.3095, y: 0.3905, w: 0.381, h: 0.1238 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.1524,
        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.1524,
      },
      {
        id: 's6',
        keep: true,
        frame: { x: 0.4619, y: 0.5238, w: 0.0762, h: 0.0038 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'shape',
        shape: 'rect',
        fill: '#ffffff',
        gradient: 'none',
        stroke: null,
        token: 'paper',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't7',
        role: 'date',
        keep: true,
        on: 'accent',
        frame: { x: 0.3333, y: 0.5381, w: 0.3333, h: 0.0381 },
        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: '#ffffff',
        token: 'paper',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
      {
        id: 'l8',
        tint: { stroke: 'ink' },
        frame: { x: 1.0762, y: 0.0833, w: 0.6762, h: 0.0143 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'head',
        kind: 'line',
        points: [
          { x: 0, y: 0.5 },
          { x: 1, y: 0.5 },
        ],
        curve: 'straight',
        stroke: '#141414',
        strokeWidth: 0.0029,
        dash: 'dashed',
        squiggle: 'none',
        startCap: 'none',
        endCap: 'none',
        wobble: 0,
        ornament: 'none',
      },
      {
        id: 's9',
        tint: { colors: ['accent3', 'accent', 'paper'] },
        frame: { x: 1.7714, y: 0.0476, w: 0.1524, h: 0.0912 },
        rotation: -8,
        opacity: 1,
        locked: false,
        group: 'head',
        kind: 'sticker',
        stickerId: 'airplane',
        colors: ['#6f6f6f', '#e2412f', '#ffffff'],
        flipX: false,
      },
      {
        id: 't10',
        role: 'body',
        frame: { x: 1.0762, y: 0.1619, w: 0.6667, h: 0.7333 },
        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: '#141414',
        token: 'ink',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'top',
      },
      {
        id: 's11',
        tint: { colors: ['accent'] },
        frame: { x: 1.7524, y: 0.7333, w: 0.1905, h: 0.1333 },
        rotation: 14,
        opacity: 0.9,
        locked: false,
        kind: 'sticker',
        stickerId: 'passportStamp',
        colors: ['#e2412f'],
        flipX: false,
      },
    ],
  },
  {
    id: 'grid-badge-hero-six',
    labelKey: 'studio.templates.name.gridBadgeHeroSix',
    kind: 'inner',
    archetype: 'grid-badge',
    tags: ['grid', 'seven-photos', 'hero', 'badge', 'scalloped', 'full-bleed', 'graphic'],
    descr:
      'A bleed hero photo on the left page with a white scalloped badge low on it, a dashed red ring, a red pin, the subtitle, the title and the date; six tall photos three by two on the right page with 3 mm white gutters.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        frame: { x: -0.0143, y: -0.0143, w: 1.0072, h: 1.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.6,
        focalY: 0.5,
        radius: 0,
        filter: 'none',
        mask: null,
        frameStyle: 'none',
      },
      {
        id: 'p2',
        role: 'photo:2',
        frame: { x: 1.0071, y: -0.0143, w: 0.3262, 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.3476, y: -0.0143, w: 0.3262, 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.6881, y: -0.0143, w: 0.3262, 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: 1.0071, y: 0.5071, w: 0.3262, 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: 1.3476, y: 0.5071, w: 0.3262, 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.6881, y: 0.5071, w: 0.3262, 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: 's8',
        keep: true,
        frame: { x: 0.0857, y: 0.5333, w: 0.381, h: 0.381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'shape',
        shape: 'scallop-circle',
        fill: '#ffffff',
        gradient: 'none',
        stroke: null,
        token: 'paper',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's9',
        keep: true,
        frame: { x: 0.1048, y: 0.5524, w: 0.3429, h: 0.3429 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'shape',
        shape: 'ellipse',
        fill: null,
        gradient: 'none',
        stroke: '#e2412f',
        strokeToken: 'accent',
        strokeWidth: 0.0029,
        strokeStyle: 'dashed',
        radius: 0,
      },
      {
        id: 's10',
        tint: { colors: ['accent', 'paper'] },
        frame: { x: 0.2381, y: 0.4952, w: 0.0762, h: 0.1088 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'sticker',
        stickerId: 'mapPin',
        colors: ['#e2412f', '#ffffff'],
        flipX: false,
      },
      {
        id: 't11',
        role: 'subtitle',
        keep: true,
        on: 'paper',
        frame: { x: 0.1381, y: 0.6333, 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: 't12',
        role: 'title',
        keep: true,
        on: 'paper',
        frame: { x: 0.1238, y: 0.6762, w: 0.3048, h: 0.1048 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.1238,
        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.1238,
      },
      {
        id: 's13',
        keep: true,
        frame: { x: 0.2381, y: 0.7905, 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: 't14',
        role: 'date',
        keep: true,
        on: 'paper',
        frame: { x: 0.1714, y: 0.8048, w: 0.2095, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'badge',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0333,
        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.0333,
      },
    ],
  },
];