{desc}
)} diff --git a/apps/playground/src/components/svgs/hydra.tsx b/apps/playground/src/components/svgs/hydra.tsx new file mode 100644 index 000000000..5b5347d1c --- /dev/null +++ b/apps/playground/src/components/svgs/hydra.tsx @@ -0,0 +1,31 @@ +export default function SvgHydra({ + className, + fill = "currentColor", +}: { + className?: string; + fill?: string; +}) { + return ( + + ); +} diff --git a/apps/playground/src/components/svgs/midnight.tsx b/apps/playground/src/components/svgs/midnight.tsx new file mode 100644 index 000000000..de98aea56 --- /dev/null +++ b/apps/playground/src/components/svgs/midnight.tsx @@ -0,0 +1,75 @@ +export default function SvgMidnight({ + className, + fill = "currentColor", +}: { + className?: string; + fill?: string; +}) { + return ( + + ); +} diff --git a/apps/playground/src/data/links-hydra.ts b/apps/playground/src/data/links-hydra.ts new file mode 100644 index 000000000..4b07b1de8 --- /dev/null +++ b/apps/playground/src/data/links-hydra.ts @@ -0,0 +1,16 @@ +import { MenuItem } from "~/types/menu-item"; + +export const metaHydraGettingStarted = { + title: "Getting Started", + desc: "Setting up your system to work with Hydra", + link: "/hydra/getting-started", +}; + +export const linksHydra: MenuItem[] = [metaHydraGettingStarted]; + +export const metaHydra: MenuItem = { + title: "Hydra", + desc: "Layer 2 scaling solution for Cardano", + link: "/hydra", + items: linksHydra, +}; diff --git a/apps/playground/src/data/links-midnight.ts b/apps/playground/src/data/links-midnight.ts new file mode 100644 index 000000000..bf2795984 --- /dev/null +++ b/apps/playground/src/data/links-midnight.ts @@ -0,0 +1,17 @@ +import { MenuItem } from "~/types/menu-item"; + +export const metaMidnightGettingStarted = { + title: "Getting Started", + desc: "Setting up your system to work with Midnight", + link: "/midnight/getting-started", +}; + +export const linksMidnight: MenuItem[] = [metaMidnightGettingStarted]; + +export const metaMidnight: MenuItem = { + title: "Midnight", + desc: "Leveraging zero-knowledge technology to enable data protection", + link: "/midnight", + items: linksMidnight, +}; + diff --git a/apps/playground/src/pages/home/features.tsx b/apps/playground/src/pages/home/features.tsx index 62dc7c951..b65664f9c 100644 --- a/apps/playground/src/pages/home/features.tsx +++ b/apps/playground/src/pages/home/features.tsx @@ -1,6 +1,6 @@ import React from "react"; -import Link from "~/components/link"; +import CardTitleDescImage from "~/components/card/card-title-desc-image"; import { linksApi } from "~/data/links-api"; export default function SectionFeatures() { @@ -8,11 +8,12 @@ export default function SectionFeatures() {{desc}
-+ How to get started? +
++ More instructions here. +
+ > + ); +} diff --git a/apps/playground/src/pages/hydra/index.tsx b/apps/playground/src/pages/hydra/index.tsx new file mode 100644 index 000000000..0a6172fb3 --- /dev/null +++ b/apps/playground/src/pages/hydra/index.tsx @@ -0,0 +1,31 @@ +import type { NextPage } from "next"; + +import HeroLogoTwoSectionsLinks from "~/components/sections/hero-logo-two-sections-links"; +import Metatags from "~/components/site/metatags"; +import SvgHydra from "~/components/svgs/hydra"; +import { linksHydra, metaHydra } from "~/data/links-hydra"; +import { useDarkmode } from "~/hooks/useDarkmode"; + +const ReactPage: NextPage = () => { + const isDark = useDarkmode((state) => state.isDark); + + return ( + <> ++ How to get started? +
++ More instructions here. +
+ > + ); +} diff --git a/apps/playground/src/pages/midnight/index.tsx b/apps/playground/src/pages/midnight/index.tsx new file mode 100644 index 000000000..a8a9f0e43 --- /dev/null +++ b/apps/playground/src/pages/midnight/index.tsx @@ -0,0 +1,31 @@ +import type { NextPage } from "next"; + +import HeroLogoTwoSectionsLinks from "~/components/sections/hero-logo-two-sections-links"; +import Metatags from "~/components/site/metatags"; +import SvgMidnight from "~/components/svgs/midnight"; +import { linksMidnight, metaMidnight } from "~/data/links-midnight"; +import { useDarkmode } from "~/hooks/useDarkmode"; + +const ReactPage: NextPage = () => { + const isDark = useDarkmode((state) => state.isDark); + + return ( + <> +