your personal website on atproto - mirror
blento.app
1//Music by DJARTMUSIC - The Return Of The 8-bit Era
2//https://pixabay.com/de/music/videospiele-the-return-of-the-8-bit-era-301292/
3
4import type { CardDefinition, ContentComponentProps } from '../../types';
5import TetrisCard from './TetrisCard.svelte';
6import type { Component } from 'svelte';
7
8export const TetrisCardDefinition = {
9 type: 'tetris',
10 contentComponent: TetrisCard as unknown as Component<ContentComponentProps>,
11 sidebarButtonText: 'Tetris',
12 allowSetColor: true,
13 defaultColor: 'accent',
14 createNew: (card) => {
15 card.w = 4;
16 card.h = 6;
17 card.mobileW = 8;
18 card.mobileH = 12;
19 card.cardData = {};
20 },
21 maxH: 10
22} as CardDefinition & { type: 'tetris' };