your personal website on atproto - mirror blento.app
at fix-cached-posts 27 lines 964 B view raw
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 allowSetColor: true, 12 createNew: (card) => { 13 card.w = 2; 14 card.h = 4; 15 card.mobileW = 8; 16 card.mobileH = 12; 17 card.cardData = {}; 18 }, 19 maxH: 10, 20 canHaveLabel: true, 21 22 keywords: ['blocks', 'puzzle', 'game', 'fun'], 23 groups: ['Games'], 24 25 name: 'Tetris', 26 icon: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="size-4"><path stroke-linecap="round" stroke-linejoin="round" d="M14 4h-4v4H6v4h4v4h4v-4h4V8h-4V4Z" /></svg>` 27} as CardDefinition & { type: 'tetris' };