-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmore-header.tsx
More file actions
32 lines (30 loc) · 698 Bytes
/
more-header.tsx
File metadata and controls
32 lines (30 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { Button } from "@/components/ui/button";
import Link from "next/link";
export default function MoreHeader({
title,
href,
text = "View More",
showHr = true,
}: {
title: string;
href: string;
text?: string;
showHr?: boolean;
}) {
return (
<>
{showHr && <hr className="mb-8 sm:mb-24 border-accent-2 mt-8 sm:mt-28" />}
<div className="flex flex-col md:flex-row md:justify-between mb-8 sm:mb-24">
<h2 className="mb-8 text-6xl font-bold leading-tight tracking-tighter md:text-7xl">
{title}
</h2>
<Button
asChild
className="mb-8 text-3xl font-bold md:text-4xl p-2 md:p-8"
>
<Link href={href}>{text}</Link>
</Button>
</div>
</>
);
}