mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-16 06:35:02 +08:00
* Add alt course page * wip * wi * wip * wip * wip * wip * wip * feat: review carousel * wip: update meet instructor ui * wip * wip * wip * wip * wip * Improve upper banner from course page * Improve upper banner from course page * Fix height issue of image * Improve testimonial design * Improve review carousel * Update * Improve meet your instructor * Improve overall page design * Reuse lessons list * Improve variant page * Responsive banner * Purchase banner * Add new page --------- Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
29 lines
740 B
TypeScript
29 lines
740 B
TypeScript
import { cn } from '../../lib/classname';
|
|
|
|
type SectionHeaderProps = {
|
|
title: string;
|
|
description: string | React.ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
export function SectionHeader(props: SectionHeaderProps) {
|
|
const { title, description, className } = props;
|
|
|
|
return (
|
|
<div className={cn('mx-auto mt-24 w-full text-center', className)}>
|
|
<div className="relative w-full">
|
|
<h4 className="text-2xl font-medium text-zinc-200 md:text-3xl">
|
|
{title}
|
|
</h4>
|
|
</div>
|
|
{typeof description === 'string' ? (
|
|
<p className="mt-2 text-center text-lg text-balance text-zinc-400 md:mt-5 md:text-xl">
|
|
{description}
|
|
</p>
|
|
) : (
|
|
description
|
|
)}
|
|
</div>
|
|
);
|
|
}
|