your personal website on atproto - mirror
blento.app
1import type { CardDefinition, ContentComponentProps } from '$lib/cards/types';
2import type { Component } from 'svelte';
3import DinoGameCard from './DinoGameCard.svelte';
4import SidebarItemDinoGameCard from './SidebarItemDinoGameCard.svelte';
5
6export const DinoGameCardDefinition = {
7 type: 'dino-game',
8 contentComponent: DinoGameCard as unknown as Component<ContentComponentProps>,
9 sidebarComponent: SidebarItemDinoGameCard,
10 allowSetColor: true,
11 createNew: (card) => {
12 card.w = 4;
13 card.h = 4;
14 card.mobileW = 8;
15 card.mobileH = 6;
16 card.cardData = {};
17 }
18} as CardDefinition & { type: 'dino-game' };