Added card types
This commit is contained in:
31
src/lib/cards/esncard_2026.ts
Normal file
31
src/lib/cards/esncard_2026.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { Card } from './types';
|
||||
|
||||
// User-configurable settings for PDF generation
|
||||
export const ESNCard2026: Card = {
|
||||
name: 'ESNcard 2026',
|
||||
image: '/cards/2026.webp',
|
||||
textCard: {
|
||||
width: 50, // mm
|
||||
height: 35 // mm
|
||||
},
|
||||
photoCard: {
|
||||
width: 32, // mm
|
||||
height: 45 // mm
|
||||
},
|
||||
photo: {
|
||||
width: 28, // mm
|
||||
height: 38 // mm
|
||||
},
|
||||
textFields: {
|
||||
name: { x: 3, y: 5, size: 9 },
|
||||
nationality: { x: 3, y: 14, size: 9 },
|
||||
birthday: { x: 33, y: 14, size: 9 },
|
||||
studiesAt: { x: 3, y: 23, size: 9 },
|
||||
esnSection: { x: 3, y: 32, size: 9 },
|
||||
validityStart: { x: 33, y: 32, size: 9 }
|
||||
},
|
||||
photoFields: {
|
||||
photo: { x: 2, y: 2, width: 28, height: 38 },
|
||||
name: { x: 2, y: 42, size: 7 }
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user