Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions apps/website/pages/components/inset/code.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Head from "next/head";
import type { ReactElement } from "react";
import InsetCodePage from "screens/components/inset/code/InsetCodePage";
import InsetPageLayout from "screens/components/inset/InsetPageLayout";

const Code = () => (
<>
<Head>
<title>Inset code — Halstack Design System</title>
</Head>
<InsetCodePage />
</>
);

Code.getLayout = (page: ReactElement) => <InsetPageLayout>{page}</InsetPageLayout>;

export default Code;
24 changes: 10 additions & 14 deletions apps/website/pages/components/inset/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import Head from "next/head";
import type { ReactElement } from "react";
import InsetPageLayout from "screens/components/inset/InsetPageLayout";
import InsetCodePage from "screens/components/inset/code/InsetCodePage";
import InsetOverviewPage from "screens/components/inset/overview/InsetOverviewPage";

const Index = () => {
return (
<>
<Head>
<title>Inset — Halstack Design System</title>
</Head>
<InsetCodePage></InsetCodePage>
</>
);
};
const Index = () => (
<>
<Head>
<title>Inset — Halstack Design System</title>
</Head>
<InsetOverviewPage />
</>
);

Index.getLayout = function getLayout(page: ReactElement) {
return <InsetPageLayout>{page}</InsetPageLayout>;
};
Index.getLayout = (page: ReactElement) => <InsetPageLayout>{page}</InsetPageLayout>;

export default Index;
21 changes: 0 additions & 21 deletions apps/website/pages/components/inset/specifications.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions apps/website/pages/components/inset/usage.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion apps/website/screens/common/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function CodeBlock({ children }: { children: ReactNode; language?
<PreformattedText onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>
<Code>{children}</Code>
{copyActionIsVisible && (
<DxcContainer position="absolute" inset={{ top: "0", right: "0" }} padding="xsmall">
<DxcContainer position="absolute" inset={{ top: "0", right: "0" }} padding="var(--spacing-padding-xs)">
<HalstackProvider advancedTheme={buttonTokens}>
<DxcButton
icon={copied ? "check" : "content_copy"}
Expand Down
Loading