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.

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

/**
 * The poster pop covers: two blocks of colour, a heavy two-line title, a
 * tilted inset photo in a white border, a burst of rays and tropical
 * stickers. Drawn in poster-pop.
 *
 * 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_POSTER_POP: readonly BookDecoratedTemplate[] = [
  {
    id: 'poster-pop-sunburst',
    labelKey: 'studio.templates.name.posterPopSunburst',
    kind: 'single',
    archetype: 'poster-pop',
    tags: ['poster', 'bold', 'two-tone', 'sunburst', 'tropical', 'stickers', 'loud'],
    descr:
      'Sunflower over coral: a burst of rays behind a tilted photo in a white border, tropical leaves and a hibiscus, a heavy two-line title with a hard shadow on the coral block.',
    background: '#ffbf3c',
    backgroundToken: 'accent2',
    elements: [
      {
        id: 's1',
        keep: true,
        frame: { x: 0.2952, y: -0.1333, w: 0.8476, h: 0.8476 },
        rotation: 0,
        opacity: 0.5,
        locked: false,
        kind: 'shape',
        shape: 'sunburst-24',
        fill: '#fbf1de',
        gradient: 'none',
        stroke: null,
        token: 'paper',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's2',
        frame: { x: -0.0143, y: 0.581, w: 1.0286, h: 0.4333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#ef4e45',
        gradient: 'none',
        stroke: null,
        token: 'accent',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's3',
        tint: { colors: ['accent3', 'ink'] },
        frame: { x: -0.0762, y: 0.2762, w: 0.2952, h: 0.2952 },
        rotation: -24,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'monsteraLeaf',
        colors: ['#13807b', '#1d1a2f'],
        flipX: false,
      },
      {
        id: 'p4',
        role: 'photo:1',
        tint: { shadow: 'ink' },
        frame: { x: 0.4857, y: 0.1048, w: 0.3905, h: 0.4762 },
        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.0152, color: '#ffffff' },
        shadow: { dx: 0.0076, dy: 0.0076, color: '#1d1a2f', alpha: 0.25 },
      },
      {
        id: 's5',
        tint: { colors: ['accent', 'accent2', 'accent3', 'ink'] },
        frame: { x: 0.4095, y: 0.4381, w: 0.1619, h: 0.1619 },
        rotation: 12,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'hibiscus',
        colors: ['#ef4e45', '#ffbf3c', '#13807b', '#1d1a2f'],
        flipX: false,
      },
      {
        id: 's6',
        tint: { colors: ['accent3', 'ink'] },
        frame: { x: 0.8095, y: -0.0476, w: 0.2286, h: 0.2286 },
        rotation: 36,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'palmLeaf',
        colors: ['#13807b', '#1d1a2f'],
        flipX: false,
      },
      {
        id: 't7',
        role: 'date',
        tint: { highlight: 'ink' },
        frame: { x: 0.0857, y: 0.0762, w: 0.3429, h: 0.0381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'head',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0429,
        weight: 700,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0.38,
        color: '#fbf1de',
        token: 'paper',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        highlight: { color: '#1d1a2f', alpha: 1, padX: 0.0114, padY: 0.0052, radius: 0 },
        fit: 'shrink',
        fitMax: 0.0429,
      },
      {
        id: 't8',
        role: 'subtitle',
        on: 'accent2',
        frame: { x: 0.0762, y: 0.1333, w: 0.381, h: 0.1429 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'head',
        kind: 'text',
        text: '',
        font: 'anton',
        size: 0.0857,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.05,
        tracking: 0,
        color: '#1d1a2f',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'top',
        fit: 'shrink',
        fitMax: 0.0857,
      },
      {
        id: 't9',
        role: 'title',
        on: 'accent',
        tint: { shadow: 'ink' },
        frame: { x: 0.0667, y: 0.6095, w: 0.8667, h: 0.3333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'archivo',
        size: 0.3905,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 0.86,
        tracking: 0,
        color: '#fbf1de',
        token: 'paper',
        fontRole: 'display',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        shadow: { dx: 0.0067, dy: 0.0067, color: '#1d1a2f', alpha: 1 },
        fit: 'shrink',
        fitMax: 0.3905,
      },
      {
        id: 's10',
        tint: { colors: ['paper'] },
        frame: { x: 0.8476, y: 0.4857, w: 0.0952, h: 0.0952 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'sparkles',
        colors: ['#fbf1de'],
        flipX: false,
      },
    ],
  },
  {
    id: 'poster-pop-split',
    labelKey: 'studio.templates.name.posterPopSplit',
    kind: 'single',
    archetype: 'poster-pop',
    tags: ['poster', 'bold', 'two-tone', 'split', 'tropical', 'stickers', 'loud'],
    descr:
      'Teal and coral halves side by side, a wide tilted photo in a white border across both, a sun, a palm leaf, a hibiscus and a toucan round it, a heavy two-line title across the lower third with a hard shadow and the date on an ink band.',
    background: '#fbf1de',
    backgroundToken: 'paper',
    elements: [
      {
        id: 's1',
        frame: { x: -0.0143, y: -0.0143, w: 0.5143, h: 1.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#13807b',
        gradient: 'none',
        stroke: null,
        token: 'accent3',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's2',
        frame: { x: 0.5, y: -0.0143, w: 0.5143, h: 1.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#ef4e45',
        gradient: 'none',
        stroke: null,
        token: 'accent',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's3',
        tint: { colors: ['accent2', 'paper'] },
        frame: { x: 0.0476, y: 0.0286, w: 0.181, h: 0.181 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'sun',
        colors: ['#ffbf3c', '#fbf1de'],
        flipX: false,
      },
      {
        id: 's4',
        tint: { colors: ['accent3', 'ink'] },
        frame: { x: 0.7905, y: -0.0571, w: 0.2381, h: 0.2381 },
        rotation: 34,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'palmLeaf',
        colors: ['#13807b', '#1d1a2f'],
        flipX: false,
      },
      {
        id: 'p5',
        role: 'photo:1',
        tint: { shadow: 'ink' },
        frame: { x: 0.1905, y: 0.1048, w: 0.619, h: 0.4 },
        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.0152, color: '#ffffff' },
        shadow: { dx: 0.0076, dy: 0.0076, color: '#1d1a2f', alpha: 0.25 },
      },
      {
        id: 's6',
        tint: { colors: ['accent', 'accent2', 'accent3', 'ink'] },
        frame: { x: 0.0952, y: 0.419, w: 0.1429, h: 0.1429 },
        rotation: -14,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'hibiscus',
        colors: ['#ef4e45', '#ffbf3c', '#13807b', '#1d1a2f'],
        flipX: false,
      },
      {
        id: 's7',
        tint: { colors: ['ink', 'accent2', 'paper', 'accent3'] },
        frame: { x: 0.7333, y: 0.3714, w: 0.1905, h: 0.1619 },
        rotation: -6,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'toucan',
        colors: ['#1d1a2f', '#ffbf3c', '#fbf1de', '#13807b'],
        flipX: false,
      },
      {
        id: 't8',
        role: 'title',
        on: 'accent',
        tint: { shadow: 'ink' },
        frame: { x: 0.0667, y: 0.5619, w: 0.8667, h: 0.3333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'archivo',
        size: 0.381,
        weight: 400,
        italic: false,
        align: 'center',
        leading: 0.86,
        tracking: 0,
        color: '#fbf1de',
        token: 'paper',
        fontRole: 'display',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        shadow: { dx: 0.0067, dy: 0.0067, color: '#1d1a2f', alpha: 1 },
        fit: 'shrink',
        fitMax: 0.381,
      },
      {
        id: 't9',
        role: 'date',
        tint: { highlight: 'ink' },
        frame: { x: 0.2619, y: 0.9095, w: 0.4762, h: 0.0429 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0405,
        weight: 700,
        italic: false,
        align: 'center',
        leading: 1,
        tracking: 0.38,
        color: '#fbf1de',
        token: 'paper',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        highlight: { color: '#1d1a2f', alpha: 1, padX: 0.0114, padY: 0.0052, radius: 0 },
        fit: 'shrink',
        fitMax: 0.0405,
      },
    ],
  },
  {
    id: 'poster-pop-stack',
    labelKey: 'studio.templates.name.posterPopStack',
    kind: 'single',
    archetype: 'poster-pop',
    tags: ['poster', 'bold', 'two-tone', 'stacked-title', 'tropical', 'stickers', 'loud'],
    descr:
      'A coral top with the title stacked in two heavy lines, a sunflower foot with a burst of rays behind a tilted photo, flowers at its corners, the subtitle and date in ink beside it.',
    background: '#ef4e45',
    backgroundToken: 'accent',
    elements: [
      {
        id: 's1',
        frame: { x: -0.0143, y: 0.5048, w: 1.0286, h: 0.5095 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: '#ffbf3c',
        gradient: 'none',
        stroke: null,
        token: 'accent2',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 's2',
        keep: true,
        frame: { x: 0.3524, y: 0.4, w: 0.7143, h: 0.7143 },
        rotation: 0,
        opacity: 0.45,
        locked: false,
        kind: 'shape',
        shape: 'sunburst-12',
        fill: '#fbf1de',
        gradient: 'none',
        stroke: null,
        token: 'paper',
        strokeWidth: 0,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't3',
        role: 'title',
        on: 'accent',
        tint: { shadow: 'ink' },
        frame: { x: 0.0667, y: 0.0667, w: 0.8667, h: 0.4 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'archivo',
        size: 0.4,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 0.86,
        tracking: 0,
        color: '#fbf1de',
        token: 'paper',
        fontRole: 'display',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'bottom',
        shadow: { dx: 0.0067, dy: 0.0067, color: '#1d1a2f', alpha: 1 },
        fit: 'shrink',
        fitMax: 0.4,
      },
      {
        id: 's4',
        tint: { colors: ['accent3', 'ink'] },
        frame: { x: 0.8095, y: 0.4667, w: 0.2381, h: 0.2381 },
        rotation: 30,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'monsteraLeaf',
        colors: ['#13807b', '#1d1a2f'],
        flipX: false,
      },
      {
        id: 'p5',
        role: 'photo:1',
        tint: { shadow: 'ink' },
        frame: { x: 0.4571, y: 0.5429, w: 0.4286, h: 0.3429 },
        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.0152, color: '#ffffff' },
        shadow: { dx: 0.0076, dy: 0.0076, color: '#1d1a2f', alpha: 0.25 },
      },
      {
        id: 's6',
        tint: { colors: ['accent', 'accent2', 'accent3', 'ink'] },
        frame: { x: 0.4, y: 0.4857, w: 0.1429, h: 0.1429 },
        rotation: -10,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'hibiscus',
        colors: ['#ef4e45', '#ffbf3c', '#13807b', '#1d1a2f'],
        flipX: false,
      },
      {
        id: 's7',
        tint: { colors: ['paper', 'accent2', 'accent'] },
        frame: { x: 0.819, y: 0.819, w: 0.1238, h: 0.1238 },
        rotation: 18,
        opacity: 1,
        locked: false,
        kind: 'sticker',
        stickerId: 'frangipani',
        colors: ['#fbf1de', '#ffbf3c', '#ef4e45'],
        flipX: false,
      },
      {
        id: 't8',
        role: 'subtitle',
        on: 'accent2',
        frame: { x: 0.0762, y: 0.5714, w: 0.3429, h: 0.219 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'side',
        kind: 'text',
        text: '',
        font: 'anton',
        size: 0.0952,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.05,
        tracking: 0,
        color: '#1d1a2f',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'top',
        fit: 'shrink',
        fitMax: 0.0952,
      },
      {
        id: 't9',
        role: 'date',
        tint: { highlight: 'ink' },
        frame: { x: 0.0857, y: 0.8762, w: 0.3333, h: 0.0381 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'side',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0405,
        weight: 700,
        italic: false,
        align: 'left',
        leading: 1,
        tracking: 0.38,
        color: '#fbf1de',
        token: 'paper',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        highlight: { color: '#1d1a2f', alpha: 1, padX: 0.0114, padY: 0.0052, radius: 0 },
        fit: 'shrink',
        fitMax: 0.0405,
      },
    ],
  },
];