mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-19 19:21:15 -05:00
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
import AuthorJohannes from "@/images/blog/johannes-co-founder-formbricks-small.jpg";
|
|
import AuthorOla from "@/images/blog/ola-content-writer.jpg";
|
|
import AuthorShubham from "@/images/blog/shubham-engineer.png";
|
|
import Image from "next/image";
|
|
|
|
interface AuthorBoxProps {
|
|
name: string;
|
|
title: string;
|
|
date: string;
|
|
duration: string;
|
|
author: string;
|
|
}
|
|
|
|
const authorImages = {
|
|
Johannes: AuthorJohannes,
|
|
Ola: AuthorOla,
|
|
Shubham: AuthorShubham,
|
|
};
|
|
|
|
export default function AuthorBox({ name, title, date, duration, author }: AuthorBoxProps) {
|
|
return (
|
|
<div className="mb-8 flex items-center space-x-4 rounded-lg border border-slate-200 bg-slate-100 px-6 py-3 dark:border-slate-700 dark:bg-slate-800">
|
|
<Image
|
|
className="m-0 rounded-full"
|
|
src={authorImages[author]}
|
|
alt={name}
|
|
width={45}
|
|
height={45}
|
|
quality={100}
|
|
placeholder="blur"
|
|
style={{ objectFit: "contain" }}
|
|
/>
|
|
<div className="flex w-full items-end justify-between">
|
|
<div>
|
|
<p className="leading-0 !m-0 font-medium text-slate-600 dark:text-slate-300">{name}</p>
|
|
<p className="!m-0 text-sm text-slate-400">{title}</p>
|
|
</div>
|
|
<div className="text-right">
|
|
<p className="!m-0 font-medium text-slate-600 dark:text-slate-300">{duration} Minutes</p>
|
|
<p className="!m-0 text-sm text-slate-400">{date}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|