your personal website on atproto - mirror blento.app
26
fork

Configure Feed

Select the types of activity you want to include in your feed.

small improvements

Florian 221a989c 1120673f

+10 -4
+2 -2
src/lib/sections/HeroSection/Decoration.svelte
··· 54 54 </div> 55 55 {:else if item} 56 56 <div 57 - class="deco absolute z-0 block w-36 overflow-hidden rounded-3xl shadow-2xl @[42rem]/grid:w-40" 57 + class="deco absolute z-0 block w-36 overflow-hidden rounded-3xl @[42rem]/grid:w-40" 58 58 style="top: {(slot.top ?? 50) + '%'}; {sideStyle}" 59 59 > 60 - <div class="pointer-events-none aspect-square w-full overflow-hidden rounded-3xl"> 60 + <div class="aspect-square w-full overflow-hidden rounded-3xl"> 61 61 <BaseCard {item}> 62 62 <Card {item} /> 63 63 </BaseCard>
+1 -1
src/lib/sections/HeroSection/HeroSection.svelte
··· 74 74 }} 75 75 class={cn(buttonClass, 'pointer-events-auto')} 76 76 > 77 - {d.buttonText} 77 + edit website 78 78 </button> 79 79 {:else} 80 80 <a
+7 -1
src/lib/website/load.ts
··· 622 622 const cards = data.cards.filter((v) => v.page === data.page); 623 623 624 624 if (cards.length > 0) { 625 + const gridSectionIds = new Set( 626 + data.sections.filter((s) => s.sectionType === 'grid').map((s) => s.id) 627 + ); 628 + 629 + const gridCards = cards.filter((c) => !c.sectionId || gridSectionIds.has(c.sectionId)); 630 + 625 631 const bySection = new Map<string | undefined, Item[]>(); 626 - for (const card of cards) { 632 + for (const card of gridCards) { 627 633 const key = card.sectionId; 628 634 const bucket = bySection.get(key); 629 635 if (bucket) bucket.push(card);