your personal website on atproto - mirror
blento.app
1import type { CardDefinition } from '../types';
2import { listRecords } from '$lib/atproto';
3import PopfeedReviewsCard from './PopfeedReviewsCard.svelte';
4
5export const PopfeedReviewsCardDefinition = {
6 type: 'recentPopfeedReviews',
7 contentComponent: PopfeedReviewsCard,
8 createNew: (card) => {
9 card.w = 8;
10 card.mobileW = 8;
11 card.h = 3;
12 card.mobileH = 6;
13 },
14 loadData: async (items, { did }) => {
15 const data = await listRecords({ did, collection: 'social.popfeed.feed.review' });
16
17 return data;
18 },
19 minH: 3,
20 canHaveLabel: true,
21
22 keywords: ['movies', 'tv', 'film', 'reviews', 'ratings', 'popfeed'],
23 groups: ['Media'],
24 name: 'Movie and TV Reviews',
25 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="M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z" /></svg>`
26} as CardDefinition & { type: 'recentPopfeedReviews' };