From c1c7ca70783cbb38cf35fe0c9fb05dd626f46c08 Mon Sep 17 00:00:00 2001 From: Nikhil M Warrier Date: Tue, 3 Mar 2026 09:00:53 +0530 Subject: Rename Author to Member, add Codeberg icons --- src/components/AuthorCard.astro | 62 ----------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 src/components/AuthorCard.astro (limited to 'src/components/AuthorCard.astro') diff --git a/src/components/AuthorCard.astro b/src/components/AuthorCard.astro deleted file mode 100644 index 9f178fa..0000000 --- a/src/components/AuthorCard.astro +++ /dev/null @@ -1,62 +0,0 @@ ---- -import Link from '@/components/Link.astro' -import AvatarComponent from '@/components/ui/avatar' -import { cn } from '@/lib/utils' -import type { SocialLink } from '@/types' -import type { CollectionEntry } from 'astro:content' -import SocialIcons from './SocialIcons.astro' - -interface Props { - author: CollectionEntry<'authors'> -} - -const { author } = Astro.props -const { name, avatar, bio, pronouns } = author.data -const currentPath = Astro.url.pathname -const isAuthorPage = currentPath === `/authors/${author.id}` - -const socialLinks: SocialLink[] = [ - author.data.website && { href: author.data.website, label: 'Website' }, - author.data.github && { href: author.data.github, label: 'GitHub' }, - author.data.twitter && { href: author.data.twitter, label: 'Twitter' }, - author.data.linkedin && { href: author.data.linkedin, label: 'LinkedIn' }, - author.data.mail && { href: `mailto:${author.data.mail}`, label: 'Email' }, -].filter(Boolean) as SocialLink[] ---- - -
-
- - [data-slot="avatar-fallback"]]:rounded-md', - !isAuthorPage && - 'hover:ring-primary transition-shadow duration-300 hover:cursor-pointer hover:ring-2', - )} - /> - -
-
-
-

{name}

- { - pronouns && ( - ({pronouns}) - ) - } -
-

{bio}

-
- -
-
-
-- cgit v1.2.3