-
Notifications
You must be signed in to change notification settings - Fork 14
/
FlexPageLayout.tsx
38 lines (35 loc) · 1.37 KB
/
FlexPageLayout.tsx
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
33
34
35
36
37
38
import { DxcParagraph, DxcFlex, DxcLink } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
const FlexPageHeading = ({ children }: { children: React.ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/flex" },
{ label: "Usage", path: "/components/flex/usage" },
{ label: "Specifications", path: "/components/flex/specifications" },
];
return (
<DxcFlex direction="column" gap="3rem">
<PageHeading>
<DxcFlex direction="column" gap="2rem">
<ComponentHeading name="Flex" status="Ready" />
<DxcParagraph>
Flex allows users to build{" "}
<DxcLink
newWindow
href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox"
>
Flexible Box Module
</DxcLink>{" "}
based layouts. It serves as a technical component that abstracts
users from working directly with CSS Flexbox and helps them write
more semantic layouts.
</DxcParagraph>
<TabsPageHeading tabs={tabs}></TabsPageHeading>
</DxcFlex>
</PageHeading>
{children}
</DxcFlex>
);
};
export default FlexPageHeading;