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';
4
5export const DinoGameCardDefinition = {
6 type: 'dino-game',
7 contentComponent: DinoGameCard as unknown as Component<ContentComponentProps>,
8 sidebarButtonText: 'Dino Game',
9 allowSetColor: true,
10 createNew: (card) => {
11 card.w = 4;
12 card.h = 4;
13 card.mobileW = 8;
14 card.mobileH = 6;
15 card.cardData = {};
16 }
17} as CardDefinition & { type: 'dino-game' };