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

/**
 * More minimal serif pages: an oval cameo cover inside a hairline frame, a
 * words only essay spread and a triptych of three numbered portrait plates.
 * 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 MORE_MINIMAL_SERIF: readonly BookDecoratedTemplate[] = [
  {
    id: 'minimal-serif-cameo',
    labelKey: 'studio.templates.name.minimalSerifCameo',
    kind: 'single',
    archetype: 'minimal-serif',
    tags: ['minimal', 'serif', 'white', 'oval', 'cameo', 'hairline', 'elegant'],
    descr:
      'A white page inside a hairline frame: the year in spaced capitals at the head, an oval photo in a fine accent ring, a large thin italic serif title, a diamond rule and the subtitle.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 's1',
        frame: { x: 0.0476, y: 0.0476, w: 0.9048, h: 0.9048 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'shape',
        shape: 'rect',
        fill: null,
        gradient: 'none',
        stroke: '#222222',
        strokeToken: 'ink',
        strokeWidth: 0.0012,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 't2',
        role: 'date',
        frame: { x: 0.3333, y: 0.0857, w: 0.3333, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'montserrat',
        size: 0.0381,
        weight: 300,
        italic: false,
        align: 'center',
        leading: 1.4,
        tracking: 0.45,
        color: '#222222',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
      {
        id: 's3',
        keep: true,
        frame: { x: 0.2952, y: 0.1429, w: 0.4095, h: 0.4952 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'picture',
        kind: 'shape',
        shape: 'ellipse',
        fill: null,
        gradient: 'none',
        stroke: '#857d72',
        strokeToken: 'accent',
        strokeWidth: 0.0012,
        strokeStyle: 'solid',
        radius: 0,
      },
      {
        id: 'p4',
        role: 'photo:1',
        keep: true,
        tint: { border: 'ink' },
        frame: { x: 0.3143, y: 0.1667, w: 0.3714, h: 0.4476 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'picture',
        kind: 'photo',
        photoId: null,
        fit: 'cover',
        focalX: 0.5,
        focalY: 0.45,
        radius: 0,
        filter: 'none',
        mask: 'ellipse',
        frameStyle: 'none',
        border: { width: 0.0014, color: '#222222' },
      },
      {
        id: 't5',
        role: 'title',
        frame: { x: 0.0952, y: 0.6619, w: 0.8095, h: 0.1476 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'cormorant',
        size: 0.3333,
        weight: 300,
        italic: true,
        align: 'center',
        leading: 0.95,
        tracking: 0,
        color: '#222222',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.3333,
      },
      {
        id: 'l6',
        tint: { stroke: 'accent' },
        frame: { x: 0.4048, y: 0.819, w: 0.1905, 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: 'diamond',
      },
      {
        id: 't7',
        role: 'subtitle',
        frame: { x: 0.1429, y: 0.8571, w: 0.7143, 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.32,
        color: '#646464',
        token: 'muted',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
    ],
  },
  {
    id: 'minimal-serif-essay',
    labelKey: 'studio.templates.name.minimalSerifEssay',
    kind: 'inner',
    archetype: 'minimal-serif',
    tags: ['minimal', 'serif', 'words-only', 'essay', 'story', 'ornament', 'calm'],
    descr:
      'Words only: on the left page a fleuron, the date in spaced capitals, a large thin serif title, a diamond rule and the subtitle, centred; on the right a hairline, the long story in one column and a star rule.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 's1',
        tint: { colors: ['accent'] },
        frame: { x: 0.4286, y: 0.1714, w: 0.1429, h: 0.1429 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'sticker',
        stickerId: 'fleuron',
        colors: ['#857d72'],
        flipX: false,
      },
      {
        id: 't2',
        role: 'date',
        frame: { x: 0.1429, y: 0.3524, w: 0.7143, 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.42,
        color: '#222222',
        token: 'ink',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'middle',
        fit: 'shrink',
        fitMax: 0.0381,
      },
      {
        id: 't3',
        role: 'title',
        frame: { x: 0.0762, y: 0.4048, w: 0.8476, h: 0.2667 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'cormorant',
        size: 0.2857,
        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.2857,
      },
      {
        id: 'l4',
        tint: { stroke: 'accent' },
        frame: { x: 0.381, y: 0.6952, w: 0.2381, 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: 'diamond',
      },
      {
        id: 't5',
        role: 'subtitle',
        frame: { x: 0.1429, y: 0.7429, w: 0.7143, h: 0.0667 },
        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.32,
        color: '#646464',
        token: 'muted',
        fontRole: 'heading',
        binding: null,
        overridden: false,
        transform: 'upper',
        vAlign: 'top',
        fit: 'shrink',
        fitMax: 0.0381,
      },
      {
        id: 'l6',
        tint: { stroke: 'ink' },
        frame: { x: 1.1429, y: 0.0857, w: 0.7143, h: 0.0286 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'column',
        kind: 'line',
        points: [
          { x: 0, y: 0.5 },
          { x: 1, y: 0.5 },
        ],
        curve: 'straight',
        stroke: '#222222',
        strokeWidth: 0.0012,
        dash: 'solid',
        squiggle: 'none',
        startCap: 'none',
        endCap: 'none',
        wobble: 0,
        ornament: 'none',
      },
      {
        id: 't7',
        role: 'body',
        frame: { x: 1.1429, y: 0.1524, w: 0.7143, h: 0.7143 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'column',
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0476,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.6,
        tracking: 0,
        color: '#222222',
        token: 'ink',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'top',
      },
      {
        id: 's8',
        tint: { colors: ['accent'] },
        frame: { x: 1.381, y: 0.9, w: 0.2381, h: 0.0408 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'column',
        kind: 'sticker',
        stickerId: 'starRule',
        colors: ['#857d72'],
        flipX: false,
      },
    ],
  },
  {
    id: 'minimal-serif-triptych',
    labelKey: 'studio.templates.name.minimalSerifTriptych',
    kind: 'inner',
    archetype: 'minimal-serif',
    tags: ['minimal', 'serif', 'triptych', 'three-photos', 'portrait', 'hairline', 'calm'],
    descr:
      'A thin serif title, a sun rule, the subtitle, the date and the story in a narrow left column; three tall photos with hairline borders on one line across the spread, each numbered by one, two or three accent dots.',
    background: null,
    backgroundToken: 'paper',
    elements: [
      {
        id: 't1',
        role: 'title',
        frame: { x: 0.0762, y: 0.1619, w: 0.4381, h: 0.2857 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'title',
        kind: 'text',
        text: '',
        font: 'cormorant',
        size: 0.1905,
        weight: 300,
        italic: false,
        align: 'left',
        leading: 0.95,
        tracking: 0,
        color: '#222222',
        token: 'ink',
        fontRole: 'display',
        binding: null,
        overridden: false,
        vAlign: 'bottom',
        fit: 'shrink',
        fitMax: 0.1905,
      },
      {
        id: 'l2',
        tint: { stroke: 'accent' },
        frame: { x: 0.0762, y: 0.4667, w: 0.1905, 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: 't3',
        role: 'subtitle',
        frame: { x: 0.0762, y: 0.5143, w: 0.4381, h: 0.0619 },
        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: 't4',
        role: 'date',
        frame: { x: 0.0762, y: 0.5857, w: 0.4381, 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: 't5',
        role: 'body',
        frame: { x: 0.0762, y: 0.6571, w: 0.4381, h: 0.2667 },
        rotation: 0,
        opacity: 1,
        locked: false,
        kind: 'text',
        text: '',
        font: 'inter',
        size: 0.0429,
        weight: 400,
        italic: false,
        align: 'left',
        leading: 1.55,
        tracking: 0,
        color: '#222222',
        token: 'ink',
        fontRole: 'body',
        binding: null,
        overridden: false,
        vAlign: 'top',
      },
      {
        id: 'p6',
        role: 'photo:1',
        tint: { border: 'ink' },
        frame: { x: 0.5762, y: 0.1619, w: 0.3476, h: 0.5714 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'plates',
        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: 't7',
        frame: { x: 0.5762, y: 0.7619, w: 0.3476, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'plates',
        kind: 'text',
        text: '•',
        font: 'montserrat',
        size: 0.0381,
        weight: 300,
        italic: false,
        align: 'left',
        leading: 1.4,
        tracking: 0.6,
        color: '#857d72',
        token: 'accent',
        binding: null,
        overridden: false,
        vAlign: 'middle',
      },
      {
        id: 'p8',
        role: 'photo:2',
        tint: { border: 'ink' },
        frame: { x: 1.0762, y: 0.1619, w: 0.3476, h: 0.5714 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'plates',
        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: 't9',
        frame: { x: 1.0762, y: 0.7619, w: 0.3476, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'plates',
        kind: 'text',
        text: '••',
        font: 'montserrat',
        size: 0.0381,
        weight: 300,
        italic: false,
        align: 'left',
        leading: 1.4,
        tracking: 0.6,
        color: '#857d72',
        token: 'accent',
        binding: null,
        overridden: false,
        vAlign: 'middle',
      },
      {
        id: 'p10',
        role: 'photo:3',
        tint: { border: 'ink' },
        frame: { x: 1.5762, y: 0.1619, w: 0.3476, h: 0.5714 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'plates',
        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: 't11',
        frame: { x: 1.5762, y: 0.7619, w: 0.3476, h: 0.0333 },
        rotation: 0,
        opacity: 1,
        locked: false,
        group: 'plates',
        kind: 'text',
        text: '•••',
        font: 'montserrat',
        size: 0.0381,
        weight: 300,
        italic: false,
        align: 'left',
        leading: 1.4,
        tracking: 0.6,
        color: '#857d72',
        token: 'accent',
        binding: null,
        overridden: false,
        vAlign: 'middle',
      },
    ],
  },
];