diff --git a/app/Playground/Components/page.tsx b/app/Playground/Components/page.tsx new file mode 100644 index 0000000..3593510 --- /dev/null +++ b/app/Playground/Components/page.tsx @@ -0,0 +1,44 @@ +import Form from "@/components/ui/Form"; +import Hyperlink from "@/components/ui/Hyperlink"; +import Referencelink from "@/components/ui/Referencelink"; +import RoundedContainer from "@/components/ui/RoundedContainer"; + +export default function Components() { + return ( +
+

Form

+
+ + {/* Add custom input! */} +
+ +

Hyperlink

+ + +

Referencelink

+ + +

Rounded Container

+ +
+

Contents

+

More Contents

+
+
+ +

Non-slim

+ +
+

Contents

+

More Contents

+
+
+
+ ); +} diff --git a/components/ui/Hyperlink.tsx b/components/ui/Hyperlink.tsx index 7a61cf5..4308fcb 100644 --- a/components/ui/Hyperlink.tsx +++ b/components/ui/Hyperlink.tsx @@ -1,9 +1,17 @@ -export default function Hyperlink({name, link}: {name: string; link: string}) { - return ( -
- -

{name}

-
-
- ) -} \ No newline at end of file +export default function Hyperlink({ + name, + link, +}: { + name: string; + link: string; +}) { + return ( +
+ +

+ {name} +

+
+
+ ); +} diff --git a/components/ui/Referencelink.tsx b/components/ui/Referencelink.tsx index 220f680..f06c08d 100644 --- a/components/ui/Referencelink.tsx +++ b/components/ui/Referencelink.tsx @@ -1,9 +1,17 @@ -export default function Referencelink({name, link}: {name: string; link: string}) { - return ( -
- -

{name}

-
-
- ) -} \ No newline at end of file +export default function Referencelink({ + name, + link, +}: { + name: string; + link: string; +}) { + return ( +
+ +

+ {name} +

+
+
+ ); +} diff --git a/components/ui/RoundedContainer.tsx b/components/ui/RoundedContainer.tsx index e3e427d..4c918ac 100644 --- a/components/ui/RoundedContainer.tsx +++ b/components/ui/RoundedContainer.tsx @@ -1,9 +1,19 @@ import React from "react"; -export default function RoundedContainer({children, slim = true}: {children: React.ReactNode, slim?: boolean}) { +export default function RoundedContainer({ + children, + slim = true, + direction = "column", +}: { + children: React.ReactNode; + slim?: boolean; + direction?: "column" | "row"; +}) { return ( -
+
{children}
- ) -} \ No newline at end of file + ); +}