Initial commit: monorepo Naturcalabacera reservas (apps/api + apps/web + packages/shared)
This commit is contained in:
44
packages/shared/src/constants/origins.ts
Normal file
44
packages/shared/src/constants/origins.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import type { ReservationOrigin } from '../types/reservation.js';
|
||||
|
||||
export interface OriginConfig {
|
||||
label: string;
|
||||
shortLabel: string;
|
||||
color: {
|
||||
dot: string;
|
||||
border: string;
|
||||
checkedBg: string;
|
||||
checkedText: string;
|
||||
calendarBg: string;
|
||||
calendarBgDark: string;
|
||||
calendarBorder: string;
|
||||
};
|
||||
}
|
||||
|
||||
export const ORIGIN_CONFIG: Record<ReservationOrigin, OriginConfig> = {
|
||||
Teneriffa2000: {
|
||||
label: 'Teneriffa',
|
||||
shortLabel: 'Teneriffa',
|
||||
color: {
|
||||
dot: 'bg-blue-500',
|
||||
border: 'peer-checked:border-blue-500',
|
||||
checkedBg: 'peer-checked:bg-blue-50',
|
||||
checkedText: 'peer-checked:text-blue-700',
|
||||
calendarBg: 'bg-blue-600/30',
|
||||
calendarBgDark: 'dark:bg-blue-500/30',
|
||||
calendarBorder: 'border-l-4 border-blue-500',
|
||||
},
|
||||
},
|
||||
Naturcalabacera: {
|
||||
label: 'Natur',
|
||||
shortLabel: 'Natur',
|
||||
color: {
|
||||
dot: 'bg-yellow-500',
|
||||
border: 'peer-checked:border-yellow-500',
|
||||
checkedBg: 'peer-checked:bg-yellow-50',
|
||||
checkedText: 'peer-checked:text-yellow-700',
|
||||
calendarBg: 'bg-yellow-500/30',
|
||||
calendarBgDark: 'dark:bg-yellow-400/30',
|
||||
calendarBorder: 'border-l-4 border-yellow-500',
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user