Files
developer-roadmap/src/components/SQLCourseVariant/SectionHeader.tsx
T
Arik ChakmaandKamran Ahmed 19b480402c feat: course landing page redesign (#8864)
* 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>
2025-07-01 12:05:23 +01:00

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>
);
}