diff --git a/index.html b/index.html index 9e5fc8f..e13ffc9 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,10 @@ - + - - - - Vite App + + + + Fachschaftsschilder
diff --git a/package.json b/package.json index 3bdf70a..73d8fb1 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,11 @@ "type": "module", "scripts": { "dev": "vite", - "build": "run-p type-check \"build-only {@}\" --", + "build": "run-p type-check check \"build-only {@}\" --", "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build", + "check": "prettier --check src/", "format": "prettier --write src/" }, "dependencies": { diff --git a/src/App.vue b/src/App.vue index c5c42fc..77c8701 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,34 +1,88 @@ diff --git a/src/assets/main.css b/src/assets/main.css index 7bc7bd6..6f24b30 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,21 +1,23 @@ -@import "tailwindcss"; +@import 'tailwindcss'; +.card { + width: 9cm; + height: 6.5cm; +} @media print { - .noPrint{ - display:none; + .noPrint { + display: none; + } + + .page { + width: 100%; + grid-column: span 3 / span 3; + height: 100dvh !important; + body { + width: 21cm; + height: 29.7cm; + /* change the margins as you want them to be. */ } - .page { - width:100%; - grid-column: span 3 / span 3; - height: 100dvh !important; - body{ - width: 21cm; - height: 29.7cm; - margin: 30mm 45mm 30mm 45mm; - /* change the margins as you want them to be. */ - } - } - .card { - width: 9cm; - } -} \ No newline at end of file + gap: 0; + } +} diff --git a/src/colors.ts b/src/colors.ts new file mode 100644 index 0000000..2ef0148 --- /dev/null +++ b/src/colors.ts @@ -0,0 +1,32 @@ +export type Preset = Pick +export const presets = { + default: { + bgColor: '#000000', + color: '#ffffff', + textColor: '#ffffff', + nameColor: '#000000', + title: 'Fachschaft 4', + }, + awareness: { + bgColor: '#3e1c59', + color: '#6f309f', + textColor: '#ffffff', + nameColor: '#ffffff', + title: 'Awareness', + }, + // TODO: add new types +} satisfies Record + +export function validPreset(key: string): key is keyof typeof presets { + return key in presets +} + +export type CardT = { + title: string + color: string + bgColor: string + textColor: string + nameColor: string + textSize: number + name: string +} diff --git a/src/components/card.vue b/src/components/card.vue index 198df38..73b9412 100644 --- a/src/components/card.vue +++ b/src/components/card.vue @@ -1,15 +1,38 @@ diff --git a/src/components/logo.vue b/src/components/logo.vue new file mode 100644 index 0000000..b6f92f1 --- /dev/null +++ b/src/components/logo.vue @@ -0,0 +1,541 @@ + + + + + +