--- import { Badge, Button } from '@unkn0wndo3s/nova-design-system'; import TechIcon from './TechIcon.astro'; import type { Project } from '../data/projects'; import { getLocaleFromUrl, useTranslations, localizePath } from '../i18n'; export interface Props { project: Project; index?: number; headingLevel?: 'h2' | 'h3'; } const { project, index, headingLevel: Heading = 'h3' } = Astro.props; const locale = getLocaleFromUrl(Astro.url); const t = useTranslations(locale); const statusType = { live: 'success', maintained: 'info', wip: 'warning' } as const; const statusLabel = { live: t('work.status.live'), maintained: t('work.status.maintained'), wip: t('work.status.wip'), } as const; const href = localizePath(`/work/${project.slug}`, locale); ---
{typeof index === 'number' && ( )} {statusLabel[project.status]}
{project.name}

{project.tagline[locale]}

{project.summary[locale]}