Skip to content

Commit

Permalink
Merge pull request #1821 from dxc-technology/rarrojolopez-badge-doc
Browse files Browse the repository at this point in the history
Added Badge documentation
  • Loading branch information
jsuarezgonz committed Feb 26, 2024
2 parents b6bbb51 + 38f79cf commit ecb3627
Show file tree
Hide file tree
Showing 18 changed files with 675 additions and 77 deletions.
158 changes: 91 additions & 67 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions website/pages/components/badge/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Head from "next/head";
import type { ReactElement } from "react";
import BadgePageLayout from "../../../screens/components/badge/BadgePageLayout";
import BadgeCodePage from "../../../screens/components/badge/code/BadgeCodePage";

const Index = () => {
return (
<>
<Head>
<title>Usage — Halstack Design System</title>
</Head>
<BadgeCodePage></BadgeCodePage>
</>
);
};

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

export default Index;
21 changes: 21 additions & 0 deletions website/pages/components/badge/specifications.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Head from "next/head";
import type { ReactElement } from "react";
import BadgePageLayout from "../../../screens/components/badge/BadgePageLayout";
import BadgeSpecsPage from "../../../screens/components/badge/specs/BadgeSpecsPage";

const Specifications = () => {
return (
<>
<Head>
<title>Badge Specs — Halstack Design System</title>
</Head>
<BadgeSpecsPage></BadgeSpecsPage>
</>
);
};

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

export default Specifications;
21 changes: 21 additions & 0 deletions website/pages/components/badge/usage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Head from "next/head";
import type { ReactElement } from "react";
import BadgePageLayout from "screens/components/badge/BadgePageLayout";
import BadgeUsagePage from "screens/components/badge/usage/BadgeUsagePage";

const Usage = () => {
return (
<>
<Head>
<title>Badge Usage — Halstack Design System</title>
</Head>
<BadgeUsagePage></BadgeUsagePage>
</>
);
};

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

export default Usage;
5 changes: 5 additions & 0 deletions website/screens/common/componentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ exports.componentsList = [
path: "/components/application-layout",
status: "Ready",
},
{
label: "Badge",
path: "/components/badge",
status: "Experimental",
},
{ label: "Bleed", path: "/components/bleed", status: "Ready" },
{ label: "Box", path: "/components/box", status: "Deprecated" },
{
Expand Down

0 comments on commit ecb3627

Please sign in to comment.