diff --git a/docs/components/ExamplesArea.tsx b/docs/components/ExamplesArea.tsx new file mode 100644 index 0000000000000..fb8fc678c2d40 --- /dev/null +++ b/docs/components/ExamplesArea.tsx @@ -0,0 +1,45 @@ +import { DetailedFeatureLink } from "./Feature"; +import { GitHubIcon } from "./Icons"; + +export const ExamplesArea = () => { + return ( +
+ + + + +
+ ); +}; diff --git a/docs/components/Feature.tsx b/docs/components/Feature.tsx index ddd726acbb690..abbd20219675d 100644 --- a/docs/components/Feature.tsx +++ b/docs/components/Feature.tsx @@ -1,30 +1,55 @@ +import Link from "next/link"; import type { Feature } from "../content/features"; type FeatureProps = { - feature: Feature; + feature: Omit; // include feature description detailed?: boolean; }; +const DetailedFeatureInner = (props: { feature: FeatureProps["feature"] }) => { + const { Icon, name, description } = props.feature; + return ( + <> +
+
+
+

+ {description} +

+
+ + ); +}; + +const featureWrapperClasses = `block p-10 bg-white shadow-lg rounded-xl dark:bg-opacity-5 no-underline text-black dark:text-white`; + +export const DetailedFeatureLink = (props: { + href: string; + feature: FeatureProps["feature"]; +}) => { + return ( + + + + + + ); +}; + export default function Feature(props: FeatureProps) { const { feature, detailed = false } = props; const { Icon, name, description } = feature; if (detailed) { return ( -
-
-
-
-

{name}

-

- {description} -

-
+
+
); } @@ -33,7 +58,7 @@ export default function Feature(props: FeatureProps) {