Skip to content

Commit a17f346

Browse files
abdoutclaude
andcommitted
fix: align PageHeader with container utilities
Add container-wrapper and container wrappers to PageHeader to align header content with the middle section grid. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 37ebec8 commit a17f346

1 file changed

Lines changed: 39 additions & 37 deletions

File tree

src/components/atom/page-header.tsx

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -26,43 +26,45 @@ export function PageHeader({
2626
...props
2727
}: PageHeaderProps) {
2828
return (
29-
<section className={cn("border-grid border-b-[0.5px]", className)} {...props}>
30-
<div className="flex flex-col items-start gap-1 py-8 md:py-10 lg:py-12">
31-
{announcement && (
32-
<div className={cn(announcementClassName)}>
33-
{announcement}
34-
</div>
35-
)}
36-
{heading && (
37-
<h2
38-
className={cn(
39-
headingClassName
40-
)}
41-
>
42-
{heading}
43-
</h2>
44-
)}
45-
{description && (
46-
<p
47-
className={cn(
48-
"max-w-2xl text-balance text-base font-light text-foreground leading-7 sm:text-lg ",
49-
descriptionClassName
50-
)}
51-
>
52-
{description}
53-
</p>
54-
)}
55-
{actions && (
56-
<div
57-
className={cn(
58-
"flex w-full items-center justify-start gap-2 pt-2",
59-
actionsClassName
60-
)}
61-
>
62-
{actions}
63-
</div>
64-
)}
65-
{children}
29+
<section className={cn("border-grid", className)} {...props}>
30+
<div className="container-wrapper">
31+
<div className="container flex flex-col items-start gap-1 py-8 md:py-10 lg:py-12">
32+
{announcement && (
33+
<div className={cn(announcementClassName)}>
34+
{announcement}
35+
</div>
36+
)}
37+
{heading && (
38+
<h2
39+
className={cn(
40+
headingClassName
41+
)}
42+
>
43+
{heading}
44+
</h2>
45+
)}
46+
{description && (
47+
<p
48+
className={cn(
49+
"max-w-2xl text-balance text-base font-light text-foreground leading-7 sm:text-lg",
50+
descriptionClassName
51+
)}
52+
>
53+
{description}
54+
</p>
55+
)}
56+
{actions && (
57+
<div
58+
className={cn(
59+
"flex w-full items-center justify-start gap-2 pt-2",
60+
actionsClassName
61+
)}
62+
>
63+
{actions}
64+
</div>
65+
)}
66+
{children}
67+
</div>
6668
</div>
6769
</section>
6870
)

0 commit comments

Comments
 (0)