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

Configure Feed

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

at profile-stuff-2 44 lines 1.7 kB view raw
1<script lang="ts"> 2 import { Post } from '../post'; 3 import { blueskyPostToPostData } from '.'; 4 import type { Snippet } from 'svelte'; 5 import type { PostView } from '@atcute/bluesky/types/app/feed/defs'; 6 7 let { 8 feedViewPost, 9 children, 10 showLogo = false, 11 ...restProps 12 }: { feedViewPost?: PostView; children?: Snippet; showLogo?: boolean } = $props(); 13 14 const postData = $derived(feedViewPost ? blueskyPostToPostData(feedViewPost) : undefined); 15</script> 16 17{#snippet logo()} 18 <a 19 class="text-accent-700 dark:text-accent-400 hover:text-accent-600 dark:hover:text-accent-500 accent:text-accent-900 accent:hover:text-accent-800" 20 href={postData?.href} 21 > 22 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="size-4" viewBox="0 0 600 530"> 23 <path 24 d="m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z" 25 fill="currentColor" 26 /> 27 </svg> 28 <span class="sr-only">Bluesky</span> 29 </a> 30{/snippet} 31 32{#if postData} 33 <Post 34 data={postData} 35 replyHref={postData?.href} 36 repostHref={postData?.href} 37 likeHref={postData?.href} 38 showBookmark={false} 39 logo={showLogo ? logo : undefined} 40 {...restProps} 41 > 42 {@render children?.()} 43 </Post> 44{/if}