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.

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

/**
 * The minimal serif covers: a white page, a large photo with a hairline, a
 * very large thin serif title, the subtitle line, a sun between two
 * hairlines and the year. Drawn in minimal-serif.
 *
 * 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_MINIMAL_SERIF: readonly BookDecoratedTemplate[] = [
  {
    id: 'minimal-serif-classic',
    labelKey: 'studio.templates.name.minimalSerifClassic',
    kind: 'single',
    archetype: 'minimal-serif',
    tags: ['minimal', 'serif', 'white', 'hairline', 'calm', 'elegant'],
    descr:
      'A white page, a wide photo with a hairline border, a very large thin serif title under it, the subtitle in spaced capitals, a sun between two hairlines and the year.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        tint: { border: 'ink' },
        frame: { x: 0.1143, y: 0.1048, w: 0.7714, h: 0.4952 },
        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.0014, color: '#222222' },
      },
      {
        id: 't2',
        role: 'title',
        frame: { x: 0.0762, y: 0.6286, w: 0.8476, h: 0.1524 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'cormorant',
        size: 0.3619,
        weight: 300,
        italic: false,
        align: 'center',
        leading: 0.95,
        tracking: 0,
        color: '#222222',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.3619,
      },
      {
        id: 't3',
        role: 'subtitle',
        frame: { x: 0.1429, y: 0.7905, w: 0.7143, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0405,
        weight: 300,
        italic: false,
        align: 'center',
        leading: 1.4,
        tracking: 0.32,
        color: '#646464',
        token: 'muted',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0405,
      },
      {
        id: 'l4',
        tint: { stroke: 'accent' },
        frame: { x: 0.3429, y: 0.8429, w: 0.3143, h: 0.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'line',
        points: [
          { x: 0, y: 0.5 },
          { x: 1, y: 0.5 },
        ],
        curve: 'straight',
        stroke: '#857d72',
        strokeWidth: 0.0012,
        dash: 'solid',
        squiggle: 'none',
        startCap: 'none',
        endCap: 'none',
        wobble: 0,
        ornament: 'sun',
      },
      {
        id: 't5',
        role: 'date',
        frame: { x: 0.3333, y: 0.8905, w: 0.3333, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0381,
        weight: 300,
        italic: false,
        align: 'center',
        leading: 1.4,
        tracking: 0.4,
        color: '#222222',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
    ],
  },
  {
    id: 'minimal-serif-portrait',
    labelKey: 'studio.templates.name.minimalSerifPortrait',
    kind: 'single',
    archetype: 'minimal-serif',
    tags: ['minimal', 'serif', 'white', 'portrait', 'hairline', 'calm', 'elegant'],
    descr:
      'A tall photo on the right with a hairline border; on the left a very large thin serif title over several lines, the subtitle in spaced capitals, a sun rule and the year.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 'p1',
        role: 'photo:1',
        tint: { border: 'ink' },
        frame: { x: 0.4762, y: 0.1143, w: 0.4095, h: 0.7714 },
        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.0014, color: '#222222' },
      },
      {
        id: 't2',
        role: 'title',
        frame: { x: 0.1048, y: 0.1143, w: 0.3333, h: 0.5524 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'cormorant',
        size: 0.2667,
        weight: 300,
        italic: false,
        align: 'left',
        leading: 0.92,
        tracking: 0,
        color: '#222222',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'bottom',
        fit: 'shrink',
        fitMax: 0.2667,
      },
      {
        id: 't3',
        role: 'subtitle',
        frame: { x: 0.1143, y: 0.6952, w: 0.3143, h: 0.0762 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0381,
        weight: 300,
        italic: false,
        align: 'left',
        leading: 1.4,
        tracking: 0.32,
        color: '#646464',
        token: 'muted',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'top',
        fit: 'shrink',
        fitMax: 0.0381,
      },
      {
        id: 'l4',
        tint: { stroke: 'accent' },
        frame: { x: 0.1143, y: 0.8, w: 0.2476, h: 0.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'line',
        points: [
          { x: 0, y: 0.5 },
          { x: 1, y: 0.5 },
        ],
        curve: 'straight',
        stroke: '#857d72',
        strokeWidth: 0.0012,
        dash: 'solid',
        squiggle: 'none',
        startCap: 'none',
        endCap: 'none',
        wobble: 0,
        ornament: 'sun',
      },
      {
        id: 't5',
        role: 'date',
        frame: { x: 0.1143, y: 0.8524, w: 0.2857, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0381,
        weight: 300,
        italic: false,
        align: 'left',
        leading: 1.4,
        tracking: 0.4,
        color: '#222222',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
    ],
  },
  {
    id: 'minimal-serif-window',
    labelKey: 'studio.templates.name.minimalSerifWindow',
    kind: 'single',
    archetype: 'minimal-serif',
    tags: ['minimal', 'serif', 'white', 'square-photo', 'hairline', 'calm', 'elegant'],
    descr:
      'A sun rule at the head, a square photo with a hairline border in the middle of a white page, a very large thin serif title under it, the subtitle and the year in spaced capitals.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 'l1',
        tint: { stroke: 'accent' },
        frame: { x: 0.381, y: 0.0667, w: 0.2381, h: 0.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'line',
        points: [
          { x: 0, y: 0.5 },
          { x: 1, y: 0.5 },
        ],
        curve: 'straight',
        stroke: '#857d72',
        strokeWidth: 0.0012,
        dash: 'solid',
        squiggle: 'none',
        startCap: 'none',
        endCap: 'none',
        wobble: 0,
        ornament: 'sun',
      },
      {
        id: 'p2',
        role: 'photo:1',
        tint: { border: 'ink' },
        keep: true,
        frame: { x: 0.2714, y: 0.1238, w: 0.4571, h: 0.4571 },
        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.0014, color: '#222222' },
      },
      {
        id: 't3',
        role: 'title',
        frame: { x: 0.0667, y: 0.619, w: 0.8667, h: 0.181 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'cormorant',
        size: 0.4,
        weight: 300,
        italic: false,
        align: 'center',
        leading: 0.95,
        tracking: 0,
        color: '#222222',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.4,
      },
      {
        id: 't4',
        role: 'subtitle',
        frame: { x: 0.1429, y: 0.819, w: 0.7143, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0405,
        weight: 300,
        italic: false,
        align: 'center',
        leading: 1.4,
        tracking: 0.32,
        color: '#646464',
        token: 'muted',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0405,
      },
      {
        id: 't5',
        role: 'date',
        frame: { x: 0.3333, y: 0.8762, w: 0.3333, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0381,
        weight: 300,
        italic: false,
        align: 'center',
        leading: 1.4,
        tracking: 0.4,
        color: '#222222',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
    ],
  },
];