The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

add ai-gallery generate layout & descriptions

Luna a65a3dc3 6655b1a8

+80
+70
app/ai-gallery/generate/layout.tsx
··· 1 + import { Button } from "@nextui-org/react"; 2 + import { Metadata } from "next"; 3 + import Link from "next/link"; 4 + import { HiArrowLeft } from "react-icons/hi"; 5 + 6 + import Footer from "@/components/footer"; 7 + import { getBaseUrl, getCanonicalUrl } from "@/utils/urls"; 8 + 9 + export interface Props { 10 + params: { uploadId: string }; 11 + children: React.ReactNode; 12 + } 13 + 14 + export const revalidate = 60 * 60; 15 + 16 + export const generateMetadata = async ({ 17 + params 18 + }: Props): Promise<Metadata> => { 19 + 20 + const title = "Generate images with your Intel® Arc™ A-Series GPU"; 21 + const description = "Generate AI images using your Intel® Arc™ A-Series GPU with Luna-devv/intel-arc-ai installed and running locally on your machine or network."; 22 + const images = `${getBaseUrl()}/waya-v3.jpg?v=2`; 23 + const url = getCanonicalUrl("ai-gallery", params.uploadId); 24 + 25 + return { 26 + title, 27 + description, 28 + alternates: { 29 + canonical: url 30 + }, 31 + openGraph: { 32 + title, 33 + description, 34 + type: "website", 35 + url, 36 + images 37 + }, 38 + twitter: { 39 + card: "summary", 40 + site: "wamellow.com", 41 + title, 42 + description, 43 + images 44 + } 45 + }; 46 + }; 47 + 48 + export default async function RootLayout({ 49 + children 50 + }: Props) { 51 + 52 + return ( 53 + <div className="w-full space-y-12"> 54 + 55 + {children} 56 + 57 + <Button 58 + className="!mt-5" 59 + as={Link} 60 + href="/ai-gallery" 61 + startContent={<HiArrowLeft />} 62 + > 63 + View all Uploads 64 + </Button> 65 + 66 + <Footer className="mt-10" /> 67 + 68 + </div> 69 + ); 70 + }
+10
app/ai-gallery/generate/page.tsx
··· 127 127 prompt={prompt} 128 128 /> 129 129 130 + <div 131 + className={cn( 132 + "mt-6", 133 + cookies.get("devTools") === "true" && "hidden md:block" 134 + )} 135 + > 136 + Generate AI images using your own <LinkTag href="https://www.intel.com/content/www/us/en/products/details/discrete-gpus/arc.html">Intel® Arc™ A-Series GPU</LinkTag> (16gb vram minimum). 137 + Make sure you have <LinkTag href="https://github.com/Luna-devv/intel-arc-ai">Luna-devv/intel-arc-ai</LinkTag> installed and running locally on your machine or local network. 138 + </div> 139 + 130 140 </div> 131 141 </div> 132 142 </div>