feat(pdf): redesign the trip PDF

The trip PDF gets a new layout in the app's current look, with nothing it
printed before left out and more of each place on the page.

- Cover: the trip photo full bleed, title and dates over it, the trip's
  figures on frosted tiles.
- Overview: the route map, every day at a glance (colour, date, plan, the
  night's stay, stops, cost) and all bookings and stays with their codes.
- Days: the header in the day's map colour, a photo strip of the day's
  stops, where the night is spent, then the plan as a timeline with the
  times on the left.
- Places: photo or category tile, category, duration, price, rating, tags,
  address, coordinates, description, notes, opening hours of that day,
  phone, website, e-mail and the members going. The rating, e-mail, hours
  and reservation note come from the trip's place, since the assignment
  only carries a projection of it.
- Bookings: route first, then airline, number, seat or platform as badges,
  each leg with its own code, status and the booking's code.
- A second row of switches in the preview: overview, photos, coordinates,
  and contact and hours, next to page per day, large text and transport
  notes. Each one is a class on the document and remembered.

The document is split into modules for its helpers, icons, stylesheet,
cover and overview, and the day, so the export itself only gathers the data.
This commit is contained in:
Maurice
2026-11-22 21:34:29 +01:00
parent 1b20214a7f
commit a5de1bc52d
41 changed files with 2117 additions and 768 deletions
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'نظرة عامة على المسار',
'pdf.distanceLabel': 'المسافة',
'pdf.mapCredit': 'حدود الدول: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'نظرة عامة',
'pdf.showPhotos': 'الصور',
'pdf.showDetails': 'التواصل وساعات العمل',
'pdf.atAGlance': 'لمحة سريعة',
'pdf.bookings': 'الحجوزات والإقامات',
'pdf.day': 'اليوم',
'pdf.stay': 'الإقامة',
'pdf.plan': 'الخطة',
};
export default pdf;
+8
View File
@@ -15,6 +15,14 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Marşrutun icmalı',
'pdf.distanceLabel': 'Məsafə',
'pdf.mapCredit': 'Ölkə sərhədləri: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'İcmal',
'pdf.showPhotos': 'Fotolar',
'pdf.showDetails': 'Əlaqə və iş saatları',
'pdf.atAGlance': 'Bir baxışda',
'pdf.bookings': 'Rezervasiyalar və yerləşmə',
'pdf.day': 'Gün',
'pdf.stay': 'Yerləşmə',
'pdf.plan': 'Plan', // same-as-en
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Visão geral da rota',
'pdf.distanceLabel': 'Distância',
'pdf.mapCredit': 'Contornos dos países: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Visão geral',
'pdf.showPhotos': 'Fotos',
'pdf.showDetails': 'Contato e horários',
'pdf.atAGlance': 'Em resumo',
'pdf.bookings': 'Reservas e hospedagens',
'pdf.day': 'Dia',
'pdf.stay': 'Hospedagem',
'pdf.plan': 'Plano',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Resum de la ruta',
'pdf.distanceLabel': 'Distància',
'pdf.mapCredit': 'Contorns dels països: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Resum',
'pdf.showPhotos': 'Fotos',
'pdf.showDetails': 'Contacte i horaris',
'pdf.atAGlance': 'D\'un cop d\'ull',
'pdf.bookings': 'Reserves i allotjaments',
'pdf.day': 'Dia',
'pdf.stay': 'Allotjament',
'pdf.plan': 'Pla',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Přehled trasy',
'pdf.distanceLabel': 'Vzdálenost',
'pdf.mapCredit': 'Obrysy zemí: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Přehled',
'pdf.showPhotos': 'Fotky',
'pdf.showDetails': 'Kontakt a otevírací doba',
'pdf.atAGlance': 'Na první pohled',
'pdf.bookings': 'Rezervace a ubytování',
'pdf.day': 'Den',
'pdf.stay': 'Ubytování',
'pdf.plan': 'Plán',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Routenübersicht',
'pdf.distanceLabel': 'Strecke',
'pdf.mapCredit': 'Ländergrenzen: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Übersicht',
'pdf.showPhotos': 'Fotos',
'pdf.showDetails': 'Kontakt & Öffnungszeiten',
'pdf.atAGlance': 'Auf einen Blick',
'pdf.bookings': 'Buchungen & Unterkünfte',
'pdf.day': 'Tag',
'pdf.stay': 'Unterkunft',
'pdf.plan': 'Plan', // same-as-en
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Route overview',
'pdf.distanceLabel': 'Distance',
'pdf.mapCredit': 'Country outlines: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Overview',
'pdf.showPhotos': 'Photos',
'pdf.showDetails': 'Contact & hours',
'pdf.atAGlance': 'At a glance',
'pdf.bookings': 'Bookings & stays',
'pdf.day': 'Day',
'pdf.stay': 'Stay',
'pdf.plan': 'Plan',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Resumen de la ruta',
'pdf.distanceLabel': 'Distancia',
'pdf.mapCredit': 'Contornos de países: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Resumen',
'pdf.showPhotos': 'Fotos',
'pdf.showDetails': 'Contacto y horarios',
'pdf.atAGlance': 'De un vistazo',
'pdf.bookings': 'Reservas y alojamientos',
'pdf.day': 'Día',
'pdf.stay': 'Alojamiento',
'pdf.plan': 'Plan', // same-as-en
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Marsruudi ülevaade',
'pdf.distanceLabel': 'Vahemaa',
'pdf.mapCredit': 'Riigipiirid: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Ülevaade',
'pdf.showPhotos': 'Fotod',
'pdf.showDetails': 'Kontakt ja lahtiolekuajad',
'pdf.atAGlance': 'Ühe pilguga',
'pdf.bookings': 'Broneeringud ja majutus',
'pdf.day': 'Päev',
'pdf.stay': 'Majutus',
'pdf.plan': 'Plaan',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': "Aperçu de l'itinéraire",
'pdf.distanceLabel': 'Distance', // same-as-en
'pdf.mapCredit': 'Contours des pays : geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Aperçu',
'pdf.showPhotos': 'Photos', // same-as-en
'pdf.showDetails': 'Contact et horaires',
'pdf.atAGlance': 'En un coup d\'œil',
'pdf.bookings': 'Réservations et hébergements',
'pdf.day': 'Jour',
'pdf.stay': 'Hébergement',
'pdf.plan': 'Programme',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Επισκόπηση διαδρομής',
'pdf.distanceLabel': 'Απόσταση',
'pdf.mapCredit': 'Περιγράμματα χωρών: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Επισκόπηση',
'pdf.showPhotos': 'Φωτογραφίες',
'pdf.showDetails': 'Επικοινωνία και ωράριο',
'pdf.atAGlance': 'Με μια ματιά',
'pdf.bookings': 'Κρατήσεις και διαμονή',
'pdf.day': 'Ημέρα',
'pdf.stay': 'Διαμονή',
'pdf.plan': 'Πρόγραμμα',
};
export default pdf;
+8
View File
@@ -15,6 +15,14 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'סקירת המסלול',
'pdf.distanceLabel': 'מרחק',
'pdf.mapCredit': 'גבולות מדינות: geoBoundaries ‏(CC BY 4.0)',
'pdf.showOverview': 'סקירה',
'pdf.showPhotos': 'תמונות',
'pdf.showDetails': 'פרטי קשר ושעות פתיחה',
'pdf.atAGlance': 'במבט חטוף',
'pdf.bookings': 'הזמנות ולינה',
'pdf.day': 'יום',
'pdf.stay': 'לינה',
'pdf.plan': 'תוכנית',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Útvonal áttekintése',
'pdf.distanceLabel': 'Távolság',
'pdf.mapCredit': 'Országhatárok: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Áttekintés',
'pdf.showPhotos': 'Fotók',
'pdf.showDetails': 'Elérhetőség és nyitvatartás',
'pdf.atAGlance': 'Egy pillantásra',
'pdf.bookings': 'Foglalások és szállások',
'pdf.day': 'Nap',
'pdf.stay': 'Szállás',
'pdf.plan': 'Program',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Ringkasan rute',
'pdf.distanceLabel': 'Jarak',
'pdf.mapCredit': 'Garis batas negara: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Ringkasan',
'pdf.showPhotos': 'Foto',
'pdf.showDetails': 'Kontak & jam buka',
'pdf.atAGlance': 'Sekilas',
'pdf.bookings': 'Pemesanan & penginapan',
'pdf.day': 'Hari',
'pdf.stay': 'Penginapan',
'pdf.plan': 'Rencana',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Panoramica del percorso',
'pdf.distanceLabel': 'Distanza',
'pdf.mapCredit': 'Confini dei paesi: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Panoramica',
'pdf.showPhotos': 'Foto',
'pdf.showDetails': 'Contatti e orari',
'pdf.atAGlance': 'In sintesi',
'pdf.bookings': 'Prenotazioni e alloggi',
'pdf.day': 'Giorno',
'pdf.stay': 'Alloggio',
'pdf.plan': 'Programma',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'ルート概要',
'pdf.distanceLabel': '距離',
'pdf.mapCredit': '国境線: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': '概要',
'pdf.showPhotos': '写真',
'pdf.showDetails': '連絡先と営業時間',
'pdf.atAGlance': '一覧',
'pdf.bookings': '予約と宿泊',
'pdf.day': '日目',
'pdf.stay': '宿泊',
'pdf.plan': '予定',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': '경로 개요',
'pdf.distanceLabel': '거리',
'pdf.mapCredit': '국가 윤곽: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': '개요',
'pdf.showPhotos': '사진',
'pdf.showDetails': '연락처 및 영업시간',
'pdf.atAGlance': '한눈에 보기',
'pdf.bookings': '예약 및 숙소',
'pdf.day': '일차',
'pdf.stay': '숙소',
'pdf.plan': '일정',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Routeoverzicht',
'pdf.distanceLabel': 'Afstand',
'pdf.mapCredit': 'Landcontouren: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Overzicht',
'pdf.showPhotos': 'Foto\'s',
'pdf.showDetails': 'Contact en openingstijden',
'pdf.atAGlance': 'In één oogopslag',
'pdf.bookings': 'Boekingen en verblijven',
'pdf.day': 'Dag',
'pdf.stay': 'Verblijf',
'pdf.plan': 'Planning',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Przegląd trasy',
'pdf.distanceLabel': 'Dystans',
'pdf.mapCredit': 'Kontury krajów: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Przegląd',
'pdf.showPhotos': 'Zdjęcia',
'pdf.showDetails': 'Kontakt i godziny otwarcia',
'pdf.atAGlance': 'W skrócie',
'pdf.bookings': 'Rezerwacje i noclegi',
'pdf.day': 'Dzień',
'pdf.stay': 'Nocleg',
'pdf.plan': 'Plan', // same-as-en
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Обзор маршрута',
'pdf.distanceLabel': 'Расстояние',
'pdf.mapCredit': 'Контуры стран: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Обзор',
'pdf.showPhotos': 'Фото',
'pdf.showDetails': 'Контакты и часы работы',
'pdf.atAGlance': 'Коротко',
'pdf.bookings': 'Бронирования и жильё',
'pdf.day': 'День',
'pdf.stay': 'Жильё',
'pdf.plan': 'План',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Prehľad trasy',
'pdf.distanceLabel': 'Vzdialenosť',
'pdf.mapCredit': 'Obrysy krajín: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Prehľad',
'pdf.showPhotos': 'Fotky',
'pdf.showDetails': 'Kontakt a otváracie hodiny',
'pdf.atAGlance': 'Na prvý pohľad',
'pdf.bookings': 'Rezervácie a ubytovanie',
'pdf.day': 'Deň',
'pdf.stay': 'Ubytovanie',
'pdf.plan': 'Plán',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Ruttöversikt',
'pdf.distanceLabel': 'Sträcka',
'pdf.mapCredit': 'Landskonturer: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Översikt',
'pdf.showPhotos': 'Foton',
'pdf.showDetails': 'Kontakt och öppettider',
'pdf.atAGlance': 'I korthet',
'pdf.bookings': 'Bokningar och boenden',
'pdf.day': 'Dag',
'pdf.stay': 'Boende',
'pdf.plan': 'Plan', // same-as-en
};
export default pdf;
+8
View File
@@ -14,5 +14,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'ภาพรวมเส้นทาง',
'pdf.distanceLabel': 'ระยะทาง',
'pdf.mapCredit': 'ขอบเขตประเทศ: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'ภาพรวม',
'pdf.showPhotos': 'รูปภาพ',
'pdf.showDetails': 'ติดต่อและเวลาทำการ',
'pdf.atAGlance': 'สรุปโดยย่อ',
'pdf.bookings': 'การจองและที่พัก',
'pdf.day': 'วัน',
'pdf.stay': 'ที่พัก',
'pdf.plan': 'แผน',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Rota genel görünümü',
'pdf.distanceLabel': 'Mesafe',
'pdf.mapCredit': 'Ülke sınırları: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Genel bakış',
'pdf.showPhotos': 'Fotoğraflar',
'pdf.showDetails': 'İletişim ve çalışma saatleri',
'pdf.atAGlance': 'Bir bakışta',
'pdf.bookings': 'Rezervasyonlar ve konaklamalar',
'pdf.day': 'Gün',
'pdf.stay': 'Konaklama',
'pdf.plan': 'Program',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Огляд маршруту',
'pdf.distanceLabel': 'Відстань',
'pdf.mapCredit': 'Контури країн: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Огляд',
'pdf.showPhotos': 'Фото',
'pdf.showDetails': 'Контакти та години роботи',
'pdf.atAGlance': 'Коротко',
'pdf.bookings': 'Бронювання та житло',
'pdf.day': 'День',
'pdf.stay': 'Житло',
'pdf.plan': 'План',
};
export default pdf;
+8
View File
@@ -15,5 +15,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': 'Tổng quan lộ trình',
'pdf.distanceLabel': 'Quãng đường',
'pdf.mapCredit': 'Đường viền quốc gia: geoBoundaries (CC BY 4.0)',
'pdf.showOverview': 'Tổng quan',
'pdf.showPhotos': 'Ảnh',
'pdf.showDetails': 'Liên hệ và giờ mở cửa',
'pdf.atAGlance': 'Tóm tắt nhanh',
'pdf.bookings': 'Đặt chỗ và lưu trú',
'pdf.day': 'Ngày',
'pdf.stay': 'Lưu trú',
'pdf.plan': 'Kế hoạch',
};
export default pdf;
+8
View File
@@ -14,5 +14,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': '路線總覽',
'pdf.distanceLabel': '距離',
'pdf.mapCredit': '國家輪廓:geoBoundaries (CC BY 4.0)',
'pdf.showOverview': '概覽',
'pdf.showPhotos': '照片',
'pdf.showDetails': '聯絡方式與營業時間',
'pdf.atAGlance': '一覽',
'pdf.bookings': '預訂與住宿',
'pdf.day': '天',
'pdf.stay': '住宿',
'pdf.plan': '行程',
};
export default pdf;
+8
View File
@@ -14,5 +14,13 @@ const pdf: TranslationStrings = {
'pdf.mapTitle': '路线总览',
'pdf.distanceLabel': '距离',
'pdf.mapCredit': '国家轮廓:geoBoundaries (CC BY 4.0)',
'pdf.showOverview': '概览',
'pdf.showPhotos': '照片',
'pdf.showDetails': '联系方式和营业时间',
'pdf.atAGlance': '一览',
'pdf.bookings': '预订与住宿',
'pdf.day': '天',
'pdf.stay': '住宿',
'pdf.plan': '行程',
};
export default pdf;