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.4 KB
Raw Blame
import type { BookDecoratedTemplate } from '../template-format';

/**
 * The cut-out covers: a saturated page, paper cut-outs in two tones behind
 * and in front of a portrait photo in a thick white border, a condensed
 * title and a spaced date line. Drawn in cutout.
 *
 * 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_CUTOUT: readonly BookDecoratedTemplate[] = [
  {
    id: 'cutout-matisse',
    labelKey: 'studio.templates.name.cutoutMatisse',
    kind: 'single',
    archetype: 'cutout',
    tags: ['cut-out', 'matisse', 'shapes', 'portrait', 'colour', 'lively'],
    descr:
      'A saturated page with paper cut-outs, a coral leaf and a sand blob behind and a frond and a star in front of a portrait photo in a thick white border; the date spaced at the head, a condensed title across the foot.',
    background: '#2445b8',
    backgroundToken: 'paper',
    elements: [
      {
        id: 's1',
        frame: { x: -0.1238, y: 0.3429, w: 0.5333, h: 0.481 },
        rotation: -16,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'leaf-monstera',
        fill: '#ff7a59',
        gradient: 'none',
        stroke: null,
        token: 'accent',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's2',
        frame: { x: 0.581, y: 0.0762, w: 0.4095, h: 0.4762 },
        rotation: 8,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'organic-2',
        fill: '#f1d9b5',
        gradient: 'none',
        stroke: null,
        token: 'accent2',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 'p3',
        role: 'photo:1',
        frame: { x: 0.2952, y: 0.1524, w: 0.4095, h: 0.5429 },
        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',
        border: { width: 0.0262, color: '#ffffff' },
      },
      {
        id: 's4',
        frame: { x: 0.6095, y: 0.5143, w: 0.3048, h: 0.2857 },
        rotation: 22,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'leaf-palm',
        fill: '#f1d9b5',
        gradient: 'none',
        stroke: null,
        token: 'accent2',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's5',
        frame: { x: 0.219, y: 0.5905, w: 0.1333, h: 0.1286 },
        rotation: -10,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'star-organic',
        fill: '#ff7a59',
        gradient: 'none',
        stroke: null,
        token: 'accent',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't6',
        role: 'date',
        frame: { x: 0.0762, y: 0.0667, w: 0.8476, h: 0.0381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'oswald',
        size: 0.0429,
        weight: 500,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.5,
        color: '#fdf8ef',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0429,
      },
      {
        id: 't7',
        role: 'caption',
        frame: { x: 0.0762, y: 0.1714, w: 0.1905, h: 0.0857 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0333,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.35,
        tracking: 0.04,
        color: '#fdf8ef',
        token: 'ink',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'top',
        fit: 'shrink',
        fitMax: 0.0333,
      },
      {
        id: 't8',
        role: 'title',
        frame: { x: 0.0476, y: 0.7143, w: 0.9048, h: 0.2286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'shoulders',
        size: 0.6667,
        weight: 800,
        italic: false,
        align: 'center',
        leading: 0.85,
        tracking: 0,
        color: '#fdf8ef',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.6667,
      },
    ],
  },
  {
    id: 'cutout-arch',
    labelKey: 'studio.templates.name.cutoutArch',
    kind: 'single',
    archetype: 'cutout',
    tags: ['cut-out', 'arch', 'sun', 'shapes', 'colour', 'lively'],
    descr:
      'A condensed title at the head over a spaced date, a photo cut into an arch with a thick white border, a paper sun behind it, weed and a long leaf cut out beside it.',
    background: '#2445b8',
    backgroundToken: 'paper',
    elements: [
      {
        id: 's1',
        keep: true,
        frame: { x: 0.5143, y: 0.3143, w: 0.5333, h: 0.5238 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'sun-cutout',
        fill: '#f1d9b5',
        gradient: 'none',
        stroke: null,
        token: 'accent2',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's2',
        frame: { x: 0.0381, y: 0.3333, w: 0.1905, h: 0.5 },
        rotation: -6,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'seaweed',
        fill: '#ff7a59',
        gradient: 'none',
        stroke: null,
        token: 'accent',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 'p3',
        role: 'photo:1',
        frame: { x: 0.2857, y: 0.3048, w: 0.4286, h: 0.6286 },
        rotation: 0,
        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.0238, color: '#ffffff' },
      },
      {
        id: 's4',
        frame: { x: 0.7048, y: 0.6476, w: 0.1143, h: 0.5143 },
        rotation: 18,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'leaf-long',
        fill: '#9fd3ff',
        gradient: 'none',
        stroke: null,
        token: 'accent3',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't5',
        role: 'title',
        frame: { x: 0.0476, y: 0.0476, w: 0.9048, h: 0.2 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'shoulders',
        size: 0.5714,
        weight: 800,
        italic: false,
        align: 'center',
        leading: 0.85,
        tracking: 0,
        color: '#fdf8ef',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.5714,
      },
      {
        id: 't6',
        role: 'date',
        frame: { x: 0.0762, y: 0.2476, w: 0.8476, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'oswald',
        size: 0.0429,
        weight: 500,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.5,
        color: '#fdf8ef',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0429,
      },
      {
        id: 't7',
        role: 'caption',
        frame: { x: 0.0762, y: 0.8762, w: 0.1905, h: 0.0762 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0333,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.35,
        tracking: 0.04,
        color: '#fdf8ef',
        token: 'ink',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'bottom',
        fit: 'shrink',
        fitMax: 0.0333,
      },
    ],
  },
  {
    id: 'cutout-collage',
    labelKey: 'studio.templates.name.cutoutCollage',
    kind: 'single',
    archetype: 'cutout',
    tags: ['cut-out', 'collage', 'shapes', 'portrait', 'colour', 'lively'],
    descr:
      'A tilted portrait photo in a thick white border on a sky-coloured blob, an oak leaf and a coral cut-out over its edges, the date at the head and a condensed title at the foot on the left.',
    background: '#2445b8',
    backgroundToken: 'paper',
    elements: [
      {
        id: 's1',
        frame: { x: 0.4571, y: 0.0476, w: 0.6667, h: 0.5857 },
        rotation: -6,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'organic-1',
        fill: '#9fd3ff',
        gradient: 'none',
        stroke: null,
        token: 'accent3',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 'p2',
        role: 'photo:1',
        frame: { x: 0.4762, y: 0.1429, w: 0.4286, h: 0.5619 },
        rotation: 3,
        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.0262, color: '#ffffff' },
      },
      {
        id: 's3',
        frame: { x: 0.3524, y: 0.3429, w: 0.1619, h: 0.3524 },
        rotation: -20,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'leaf-oak',
        fill: '#f1d9b5',
        gradient: 'none',
        stroke: null,
        token: 'accent2',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's4',
        frame: { x: 0.7905, y: 0.5905, w: 0.3048, h: 0.2095 },
        rotation: -12,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'coral-2',
        fill: '#ff7a59',
        gradient: 'none',
        stroke: null,
        token: 'accent',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't5',
        role: 'date',
        frame: { x: 0.0762, y: 0.0857, w: 0.3429, h: 0.0381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'oswald',
        size: 0.0429,
        weight: 500,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0.5,
        color: '#fdf8ef',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0429,
      },
      {
        id: 't6',
        role: 'title',
        frame: { x: 0.0571, y: 0.7143, w: 0.5905, h: 0.2286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'shoulders',
        size: 0.4571,
        weight: 800,
        italic: false,
        align: 'left',
        leading: 0.85,
        tracking: 0,
        color: '#fdf8ef',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'bottom',
        fit: 'shrink',
        fitMax: 0.4571,
      },
      {
        id: 't7',
        role: 'caption',
        frame: { x: 0.6667, y: 0.8476, w: 0.2667, h: 0.0857 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0333,
        weight: 400,
        italic: false,
        align: 'right',
        leading: 1.35,
        tracking: 0.04,
        color: '#fdf8ef',
        token: 'ink',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'bottom',
        fit: 'shrink',
        fitMax: 0.0333,
      },
    ],
  },
];