Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Badge documentation #1821

Merged
merged 11 commits into from
Feb 26, 2024
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