refactor: add custom banner and refactor pagelayout to include it (#3803)
* Added custom banner * Refactored pageLayout to include custom banner
This commit is contained in:
parent
35c194e575
commit
56802bada6
2 changed files with 19 additions and 12 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { CustomBanner } from "@/customization/components/custom-banner";
|
||||
import { Separator } from "../ui/separator";
|
||||
|
||||
export default function PageLayout({
|
||||
|
|
@ -14,19 +15,22 @@ export default function PageLayout({
|
|||
betaIcon?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex h-full w-full flex-col justify-between overflow-auto bg-background px-16">
|
||||
<div className="flex w-full items-center justify-between gap-4 space-y-0.5 py-8 pb-2">
|
||||
<div className="flex w-full flex-col">
|
||||
<h2
|
||||
className="text-2xl font-bold tracking-tight"
|
||||
data-testid="mainpage_title"
|
||||
>
|
||||
{title}
|
||||
{betaIcon && <span className="store-beta-icon">BETA</span>}
|
||||
</h2>
|
||||
<p className="text-muted-foreground">{description}</p>
|
||||
<div className="flex h-full w-full flex-col justify-between overflow-auto bg-background px-16 pt-6">
|
||||
<div className="flex flex-col gap-4">
|
||||
<CustomBanner />
|
||||
<div className="flex w-full items-center justify-between gap-4 space-y-0.5 py-2">
|
||||
<div className="flex w-full flex-col">
|
||||
<h2
|
||||
className="text-2xl font-bold tracking-tight"
|
||||
data-testid="mainpage_title"
|
||||
>
|
||||
{title}
|
||||
{betaIcon && <span className="store-beta-icon">BETA</span>}
|
||||
</h2>
|
||||
<p className="text-muted-foreground">{description}</p>
|
||||
</div>
|
||||
<div className="flex-shrink-0">{button && button}</div>
|
||||
</div>
|
||||
<div className="flex-shrink-0">{button && button}</div>
|
||||
</div>
|
||||
<Separator className="my-6 flex" />
|
||||
{children}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
export function CustomBanner() {
|
||||
return <></>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue