Skip to content

Commit

Permalink
docs(components/*): add <title>, <meta description/> to component…
Browse files Browse the repository at this point in the history
… pages
  • Loading branch information
tulup-conner committed May 26, 2023
1 parent aaad58a commit 2884e8e
Show file tree
Hide file tree
Showing 50 changed files with 2,421 additions and 2,113 deletions.
8 changes: 8 additions & 0 deletions app/docs/components/accordion/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import AccordionDocs from './accordion.mdx';

const AccordionPageContent: FC = () => <AccordionDocs />;

export default AccordionPageContent;
27 changes: 15 additions & 12 deletions app/docs/components/accordion/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
'use client';

import type { FC } from 'react';
import type { Metadata, NextPage } from 'next';
import { DocsContentLayout } from '~/app/components/docs-content-layout';
import AccordionDocs from './accordion.mdx';
import AccordionPageContent from '.';

export const metadata: Metadata = {
description:
'Use the accordion component to show hidden information based on the collapse and expand state of the child elements using data attribute options',
title: 'React Accordion - Flowbite',
};

const AccordionPage: FC = () => (
<DocsContentLayout
title="React Accordion - Flowbite"
description="Use the accordion component to show hidden information based on the collapse and expand state of the child elements using data attribute options"
>
<AccordionDocs />
</DocsContentLayout>
);
const AccordionPage: NextPage = () => {
return (
<DocsContentLayout description={`${metadata.description}`} title={`${metadata.title}`}>
<AccordionPageContent />
</DocsContentLayout>
);
};

export default AccordionPage;
8 changes: 8 additions & 0 deletions app/docs/components/alert/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import AlertDocs from './alert.mdx';

const AlertPageContent: FC = () => <AlertDocs />;

export default AlertPageContent;
27 changes: 14 additions & 13 deletions app/docs/components/alert/page.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
'use client';

import type { FC } from 'react';

import type { Metadata, NextPage } from 'next';
import { DocsContentLayout } from '~/app/components/docs-content-layout';
import AlertDocs from './alert.mdx';
import AlertPageContent from '.';

export const metadata: Metadata = {
description: 'Show contextual information to your users using alert elements based on Tailwind CSS',
title: 'React Alert - Flowbite',
};

const AlertPage: FC = () => (
<DocsContentLayout
title="React Alert - Flowbite"
description="Show contextual information to your users using alert elements based on Tailwind CSS"
>
<AlertDocs></AlertDocs>
</DocsContentLayout>
);
const AlertPage: NextPage = () => {
return (
<DocsContentLayout description={`${metadata.description}`} title={`${metadata.title}`}>
<AlertPageContent />
</DocsContentLayout>
);
};

export default AlertPage;
8 changes: 8 additions & 0 deletions app/docs/components/avatar/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import AvatarDocs from './avatar.mdx';

const AvatarPageContent: FC = () => <AvatarDocs />;

export default AvatarPageContent;
28 changes: 15 additions & 13 deletions app/docs/components/avatar/page.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
'use client';

import type { FC } from 'react';

import type { Metadata, NextPage } from 'next';
import { DocsContentLayout } from '~/app/components/docs-content-layout';
import AvatarDocs from './avatar.mdx';
import AvatarPageContent from '.';

export const metadata: Metadata = {
description:
'Use the avatar component to show a visual representation of a user profile using an image element or SVG object based on multiple styles and sizes',
title: 'React Avatar - Flowbite',
};

const AvatarPage: FC = () => (
<DocsContentLayout
title="React Avatar - Flowbite"
description="Use the avatar component to show a visual representation of a user profile using an image element or SVG object based on multiple styles and sizes"
>
<AvatarDocs />
</DocsContentLayout>
);
const AvatarPage: NextPage = () => {
return (
<DocsContentLayout description={`${metadata.description}`} title={`${metadata.title}`}>
<AvatarPageContent />
</DocsContentLayout>
);
};

export default AvatarPage;
8 changes: 8 additions & 0 deletions app/docs/components/badge/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import BadgeDocs from './badge.mdx';

const BadgePageContent: FC = () => <BadgeDocs />;

export default BadgePageContent;
29 changes: 16 additions & 13 deletions app/docs/components/badge/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
'use client';

import type { FC } from 'react';
import type { Metadata, NextPage } from 'next';
import { DocsContentLayout } from '~/app/components/docs-content-layout';
import BadgeDocs from './badge.mdx';
import BadgePageContent from '.';

export const metadata: Metadata = {
description:
'Use the avatar component to show a visual representation of a user profile using an image element or SVG object based on multiple styles and sizes',
title: 'React Badge - Flowbite',
};

const BadgePage: FC = () => (
<DocsContentLayout
title="React Badge - Flowbite"
description="Use Tailwind CSS badges as elements to show counts or labels separately or inside other components"
>
<BadgeDocs />
</DocsContentLayout>
);
const AvatarPage: NextPage = () => {
return (
<DocsContentLayout description={`${metadata.description}`} title={`${metadata.title}`}>
<BadgePageContent />
</DocsContentLayout>
);
};

export default BadgePage;
export default AvatarPage;
8 changes: 8 additions & 0 deletions app/docs/components/breadcrumb/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import BreadcrumbDocs from './breadcrumb.mdx';

const BreadcrumbPageContent: FC = () => <BreadcrumbDocs />;

export default BreadcrumbPageContent;
26 changes: 14 additions & 12 deletions app/docs/components/breadcrumb/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
'use client';

import type { FC } from 'react';
import type { Metadata, NextPage } from 'next';
import { DocsContentLayout } from '~/app/components/docs-content-layout';
import BreadcrumbDocs from './breadcrumb.mdx';
import BreadcrumbPageContent from '.';

export const metadata: Metadata = {
description: 'Show the location of the current page in a hierarchical structure using the breadcrumb components',
title: 'React Breadcrumb - Flowbite',
};

const BreadcrumbPage: FC = () => (
<DocsContentLayout
title="React Breadcrumb - Flowbite"
description="Show the location of the current page in a hierarchical structure using the breadcrumb components"
>
<BreadcrumbDocs />
</DocsContentLayout>
);
const BreadcrumbPage: NextPage = () => {
return (
<DocsContentLayout description={`${metadata.description}`} title={`${metadata.title}`}>
<BreadcrumbPageContent />
</DocsContentLayout>
);
};

export default BreadcrumbPage;
8 changes: 8 additions & 0 deletions app/docs/components/button-group/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import ButtonGroupDocs from './button-group.mdx';

const ButtonGroupPageContent: FC = () => <ButtonGroupDocs />;

export default ButtonGroupPageContent;
26 changes: 14 additions & 12 deletions app/docs/components/button-group/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
'use client';

import type { FC } from 'react';
import type { Metadata, NextPage } from 'next';
import { DocsContentLayout } from '~/app/components/docs-content-layout';
import ButtonGroupDocs from './button-group.mdx';
import ButtonGroupPageContent from '.';

export const metadata: Metadata = {
description: 'Button groups are a Tailwind CSS powered set of buttons sticked together in a horizontal line',
title: 'React Button Group - Flowbite',
};

const ButtonGroupPage: FC = () => (
<DocsContentLayout
title="React Button Group - Flowbite"
description="Button groups are a Tailwind CSS powered set of buttons sticked together in a horizontal line"
>
<ButtonGroupDocs />
</DocsContentLayout>
);
const ButtonGroupPage: NextPage = () => {
return (
<DocsContentLayout description={`${metadata.description}`} title={`${metadata.title}`}>
<ButtonGroupPageContent />
</DocsContentLayout>
);
};

export default ButtonGroupPage;
8 changes: 8 additions & 0 deletions app/docs/components/button/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import ButtonDocs from './button.mdx';

const ButtonPageContent: FC = () => <ButtonDocs />;

export default ButtonPageContent;
27 changes: 15 additions & 12 deletions app/docs/components/button/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
'use client';

import type { FC } from 'react';
import type { Metadata, NextPage } from 'next';
import { DocsContentLayout } from '~/app/components/docs-content-layout';
import ButtonDocs from './button.mdx';
import ButtonPageContent from '.';

export const metadata: Metadata = {
description:
'Use the button component inside forms, as links, social login, payment options with support for multiple styles, colors, sizes, gradients, and shadows',
title: 'React Buttons - Flowbite',
};

const ButtonPage: FC = () => (
<DocsContentLayout
title="React Buttons - Flowbite"
description="Use the button component inside forms, as links, social login, payment options with support for multiple styles, colors, sizes, gradients, and shadows"
>
<ButtonDocs />
</DocsContentLayout>
);
const ButtonPage: NextPage = () => {
return (
<DocsContentLayout description={`${metadata.description}`} title={`${metadata.title}`}>
<ButtonPageContent />
</DocsContentLayout>
);
};

export default ButtonPage;
8 changes: 8 additions & 0 deletions app/docs/components/card/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import CardDocs from './card.mdx';

const CardPageContent: FC = () => <CardDocs />;

export default CardPageContent;
27 changes: 14 additions & 13 deletions app/docs/components/card/page.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
'use client';

import type { FC } from 'react';

import type { Metadata, NextPage } from 'next';
import { DocsContentLayout } from '~/app/components/docs-content-layout';
import CardDocs from './card.mdx';
import CardPageContent from '.';

export const metadata: Metadata = {
description: 'Get started with a large variety of Tailwind CSS card examples for your web project',
title: 'React Cards - Flowbite',
};

const CardPage: FC = () => (
<DocsContentLayout
title="React Cards - Flowbite"
description="Get started with a large variety of Tailwind CSS card examples for your web project"
>
<CardDocs />
</DocsContentLayout>
);
const CardPage: NextPage = () => {
return (
<DocsContentLayout description={`${metadata.description}`} title={`${metadata.title}`}>
<CardPageContent />
</DocsContentLayout>
);
};

export default CardPage;
8 changes: 8 additions & 0 deletions app/docs/components/carousel/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import CarouselDocs from './carousel.mdx';

const CarouselPageContent: FC = () => <CarouselDocs />;

export default CarouselPageContent;
27 changes: 15 additions & 12 deletions app/docs/components/carousel/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
'use client';

import type { FC } from 'react';
import type { Metadata, NextPage } from 'next';
import { DocsContentLayout } from '~/app/components/docs-content-layout';
import CarouselDocs from './carousel.mdx';
import CarouselPageContent from '.';

export const metadata: Metadata = {
description:
'Use the carousel component to slide through multiple elements and images using custom controls, indicators, intervals, and options',
title: 'React Carousel - Flowbite',
};

const CarouselPage: FC = () => (
<DocsContentLayout
title="React Carousel - Flowbite"
description="Use the carousel component to slide through multiple elements and images using custom controls, indicators, intervals, and options"
>
<CarouselDocs />
</DocsContentLayout>
);
const CarouselPage: NextPage = () => {
return (
<DocsContentLayout description={`${metadata.description}`} title={`${metadata.title}`}>
<CarouselPageContent />
</DocsContentLayout>
);
};

export default CarouselPage;
8 changes: 8 additions & 0 deletions app/docs/components/dropdown/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use client';

import type { FC } from 'react';
import DropdownDocs from './dropdown.mdx';

const DropdownPageContent: FC = () => <DropdownDocs />;

export default DropdownPageContent;
Loading

0 comments on commit 2884e8e

Please sign in to comment.