-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4531116
commit ea59e3f
Showing
5 changed files
with
180 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import type { ReactChild } from "react"; | ||
|
||
type Props = { | ||
children: ReactChild | Array<ReactChild>; | ||
}; | ||
|
||
export default function PageHeading({ children }: Props) { | ||
return ( | ||
<div className="relative overflow-hidden bg-slate-50"> | ||
<div | ||
className="hidden sm:absolute sm:inset-y-0 sm:block sm:h-full sm:w-full" | ||
aria-hidden="true" | ||
> | ||
<div className="relative mx-auto h-full max-w-7xl"> | ||
<svg | ||
className="absolute right-full translate-y-1/4 translate-x-1/4 transform lg:translate-x-1/2" | ||
width={404} | ||
height={784} | ||
fill="none" | ||
viewBox="0 0 404 784" | ||
> | ||
<defs> | ||
<pattern | ||
id="f210dbf6-a58d-4871-961e-36d5016a0f49" | ||
x={0} | ||
y={0} | ||
width={20} | ||
height={20} | ||
patternUnits="userSpaceOnUse" | ||
> | ||
<rect | ||
x={0} | ||
y={0} | ||
width={4} | ||
height={4} | ||
className="text-slate-200" | ||
fill="currentColor" | ||
/> | ||
</pattern> | ||
</defs> | ||
<rect | ||
width={404} | ||
height={784} | ||
fill="url(#f210dbf6-a58d-4871-961e-36d5016a0f49)" | ||
/> | ||
</svg> | ||
<svg | ||
className="absolute left-full -translate-y-3/4 -translate-x-1/4 transform md:-translate-y-1/2 lg:-translate-x-1/2" | ||
width={404} | ||
height={784} | ||
fill="none" | ||
viewBox="0 0 404 784" | ||
> | ||
<defs> | ||
<pattern | ||
id="5d0dd344-b041-4d26-bec4-8d33ea57ec9b" | ||
x={0} | ||
y={0} | ||
width={20} | ||
height={20} | ||
patternUnits="userSpaceOnUse" | ||
> | ||
<rect | ||
x={0} | ||
y={0} | ||
width={4} | ||
height={4} | ||
className="text-slate-200" | ||
fill="currentColor" | ||
/> | ||
</pattern> | ||
</defs> | ||
<rect | ||
width={404} | ||
height={784} | ||
fill="url(#5d0dd344-b041-4d26-bec4-8d33ea57ec9b)" | ||
/> | ||
</svg> | ||
</div> | ||
</div> | ||
|
||
<div className="relative pt-6 pb-16 sm:pb-24"> | ||
<div className="mx-auto mt-16 max-w-7xl px-4 sm:mt-24"> | ||
<div className="text-center">{children}</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters