This repository has been archived on 2026-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
confessions-of-grace/app/authors/[author]/AuthorProfile.tsx
T
austin 10cd973e35 Refactor to static markdown (remove Supabase backend) + self-host build
Posts now read from data/posts/*.md via gray-matter + remark; authors derived
from posts. Removes admin dashboard, comments, subscriptions, and all Supabase
usage. Adds Dockerfile (Next.js standalone) + Gitea Actions CI. output: standalone.
2026-07-22 13:11:56 -05:00

28 lines
929 B
TypeScript

import React from 'react';
import { PostMetadata } from '@/types';
interface AuthorProfileProps {
author: string;
posts: PostMetadata[];
}
// Static author profile. No bio/social data is available in the markdown
// source, so we render the author's name and a placeholder avatar only.
export default function AuthorProfile({ author }: AuthorProfileProps) {
return (
<div className="mb-12 flex flex-col md:flex-row items-start md:items-center gap-6">
{/* Placeholder avatar */}
<div className="w-24 h-24 rounded-full bg-gray-200 flex items-center justify-center text-2xl font-bold text-gray-500">
{author.charAt(0).toUpperCase()}
</div>
<div>
{/* Author Name */}
<h1 className="text-3xl md:text-4xl font-bold mb-2">
{author}
</h1>
</div>
</div>
);
}