Compare commits
2 Commits
68e4d0b77b
...
74910e3346
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74910e3346 | ||
|
|
20b21de69e |
@@ -13,8 +13,8 @@ export const ESNCardAnniversary: Card = {
|
|||||||
height: 41 // mm
|
height: 41 // mm
|
||||||
},
|
},
|
||||||
photo: {
|
photo: {
|
||||||
width: 26, // mm
|
width: 27, // mm
|
||||||
height: 36 // mm
|
height: 37 // mm
|
||||||
},
|
},
|
||||||
textFields: {
|
textFields: {
|
||||||
name: { x: 2, y: 4, size: 8 },
|
name: { x: 2, y: 4, size: 8 },
|
||||||
|
|||||||
@@ -10,18 +10,6 @@
|
|||||||
import StepGallery from './wizard/StepGallery.svelte';
|
import StepGallery from './wizard/StepGallery.svelte';
|
||||||
import StepGenerate from './wizard/StepGenerate.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 = {
|
const stepTitles = {
|
||||||
splash: 'Welcome',
|
splash: 'Welcome',
|
||||||
auth: 'Authenticate',
|
auth: 'Authenticate',
|
||||||
@@ -35,7 +23,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
let currentTitle = $derived(stepTitles[$currentStepName]);
|
let currentTitle = $derived(stepTitles[$currentStepName]);
|
||||||
let currentComponent = $derived(stepComponents[$currentStepName]);
|
|
||||||
let currentStepIndex = $derived(stepNames.indexOf($currentStepName));
|
let currentStepIndex = $derived(stepNames.indexOf($currentStepName));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -65,7 +52,25 @@
|
|||||||
|
|
||||||
<!-- Step content -->
|
<!-- Step content -->
|
||||||
<div class="bg-white rounded-lg shadow-sm">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ export function getAbsolutePhotoDimensionsPt(
|
|||||||
|
|
||||||
// Border configuration
|
// Border configuration
|
||||||
export const BORDER_CONFIG = {
|
export const BORDER_CONFIG = {
|
||||||
color: { r: 0.8, g: 0.8, b: 0.8 },
|
color: { r: 0, g: 0, b: 0 },
|
||||||
width: 1 // in points
|
width: 0.5 // in points
|
||||||
};
|
};
|
||||||
|
|
||||||
// Text configuration
|
// Text configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user