Compare commits

...

2 Commits

Author SHA1 Message Date
Roman Krček
74910e3346 Resize photos and make thicker borders on text
All checks were successful
Build Docker image / build (push) Successful in 3m53s
Build Docker image / deploy (push) Successful in 3s
Build Docker image / verify (push) Successful in 29s
2025-10-28 18:19:38 +01:00
Roman Krček
20b21de69e Fix deprecated methods 2025-09-17 21:47:37 +02:00
3 changed files with 23 additions and 18 deletions

View File

@@ -13,8 +13,8 @@ export const ESNCardAnniversary: Card = {
height: 41 // mm
},
photo: {
width: 26, // mm
height: 36 // mm
width: 27, // mm
height: 37 // mm
},
textFields: {
name: { x: 2, y: 4, size: 8 },

View File

@@ -10,18 +10,6 @@
import StepGallery from './wizard/StepGallery.svelte';
import StepGenerate from './wizard/StepGenerate.svelte';
const stepComponents = {
splash: Splash,
auth: StepAuth,
search: StepSheetSearch,
mapping: StepColumnMap,
validation: StepRowFilter,
'card-details': StepCardDetails,
'card-select': StepCardSelect,
gallery: StepGallery,
generate: StepGenerate
};
const stepTitles = {
splash: 'Welcome',
auth: 'Authenticate',
@@ -35,7 +23,6 @@
};
let currentTitle = $derived(stepTitles[$currentStepName]);
let currentComponent = $derived(stepComponents[$currentStepName]);
let currentStepIndex = $derived(stepNames.indexOf($currentStepName));
</script>
@@ -65,7 +52,25 @@
<!-- Step content -->
<div class="bg-white rounded-lg shadow-sm">
<svelte:component this={currentComponent} />
{#if $currentStepName === 'splash'}
<Splash />
{:else if $currentStepName === 'auth'}
<StepAuth />
{:else if $currentStepName === 'search'}
<StepSheetSearch />
{:else if $currentStepName === 'mapping'}
<StepColumnMap />
{:else if $currentStepName === 'validation'}
<StepRowFilter />
{:else if $currentStepName === 'card-details'}
<StepCardDetails />
{:else if $currentStepName === 'card-select'}
<StepCardSelect />
{:else if $currentStepName === 'gallery'}
<StepGallery />
{:else if $currentStepName === 'generate'}
<StepGenerate />
{/if}
</div>
</div>
</div>

View File

@@ -76,8 +76,8 @@ export function getAbsolutePhotoDimensionsPt(
// Border configuration
export const BORDER_CONFIG = {
color: { r: 0.8, g: 0.8, b: 0.8 },
width: 1 // in points
color: { r: 0, g: 0, b: 0 },
width: 0.5 // in points
};
// Text configuration