diff --git a/web/public/example-workflows/IPAdapter.jpg b/web/public/example-workflows/IPAdapter.jpg new file mode 100644 index 0000000..3e5598a Binary files /dev/null and b/web/public/example-workflows/IPAdapter.jpg differ diff --git a/web/public/example-workflows/img2img.jpg b/web/public/example-workflows/img2img.jpg new file mode 100644 index 0000000..e3e818d Binary files /dev/null and b/web/public/example-workflows/img2img.jpg differ diff --git a/web/public/example-workflows/text2img.jpg b/web/public/example-workflows/text2img.jpg new file mode 100644 index 0000000..1fae03c Binary files /dev/null and b/web/public/example-workflows/text2img.jpg differ diff --git a/web/src/app/(app)/examples/loading.tsx b/web/src/app/(app)/examples/loading.tsx new file mode 100644 index 0000000..9ff4783 --- /dev/null +++ b/web/src/app/(app)/examples/loading.tsx @@ -0,0 +1,9 @@ +"use client"; + +import { LoadingPageWrapper } from "@/components/LoadingWrapper"; +import { usePathname } from "next/navigation"; + +export default function Loading() { + const pathName = usePathname(); + return ; +} diff --git a/web/src/app/(app)/examples/page.tsx b/web/src/app/(app)/examples/page.tsx new file mode 100644 index 0000000..8b90efb --- /dev/null +++ b/web/src/app/(app)/examples/page.tsx @@ -0,0 +1,79 @@ +import { Button } from "@/components/ui/button"; +import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"; +import Image from "next/image"; + +export default function Page() { + return ; +} + + +type exampleWorkflow = { + title: string; + description: string; + previewURL: string; + image: { + src: string, + alt: string, + }; +}; + +const exampleWorkflows: exampleWorkflow[] = [ + { + title: "txt2img", + description: "The basic workflow, type a prompt and generate images based on that.", + previewURL: '', + image: { + src: '/example-workflows/IPAdapter.jpg', + alt: 'IPAdapter workflow', + } + }, + { + title: "IPAdapter [SDXL]", + description: "Load images and use them as reference for new generations.", + previewURL: '', + image: { + src: '/example-workflows/img2img.jpg', + alt: 'IPAdapter workflow', + } + }, + { + title: "img2img inpainting", + description: "Use an image as base and modify certain areas that you select.", + previewURL: '', + image: { + src: '/example-workflows/text2img.jpg', + alt: 'img2img inpainting workflow', + } + } +]; + + +async function Examples() { + return ( +
+
+

+ Check out some examples +

+

Text to Image, Image to Image, IPAdapter, and more. Here are some examples that you can use to deploy your workflow.

+
+
+ {exampleWorkflows.map(workflow => { + return + + {workflow.title} + {workflow.description} + + + {workflow.image.alt} + + + + + + ; + })} +
+
+ ); +}