diff --git a/src/app/create/_components/create.tsx b/src/app/create/_components/create.tsx index 21c905c..f2baa47 100644 --- a/src/app/create/_components/create.tsx +++ b/src/app/create/_components/create.tsx @@ -4,7 +4,7 @@ import React, { useState, type FC } from "react"; import { ModelBase } from "./modelBase"; import { ModelIteration } from "./modelIteration"; import { type ParameterInput } from "~/app/models/[id]/_components/input"; -import { Box, Button, LoadingOverlay } from "@mantine/core"; +import { Box, Button, Center, LoadingOverlay } from "@mantine/core"; import { api } from "~/trpc/react"; import { notifications } from "@mantine/notifications"; import { useRouter } from "next/navigation"; @@ -105,7 +105,9 @@ export const CreateModel: FC = ({ categories }) => { createScreenshot={screenshot} setTimeToGenerate={setTimeToGenerate} /> - +
+ +
); diff --git a/src/app/create/_components/modelBase.tsx b/src/app/create/_components/modelBase.tsx index b02b780..503630f 100644 --- a/src/app/create/_components/modelBase.tsx +++ b/src/app/create/_components/modelBase.tsx @@ -1,4 +1,4 @@ -import { Anchor, Box, Button, FileButton, Image, LoadingOverlay, Select, Text, TextInput, Title } from "@mantine/core"; +import { Anchor, Box, Button, Card, Divider, FileButton, Image, LoadingOverlay, Select, Text, TextInput, Title } from "@mantine/core"; import React, { type Dispatch, type SetStateAction, type FC, useState, useEffect } from "react"; import { type Categories } from "~/app/_types/categories"; import { Carousel, CarouselSlide } from '@mantine/carousel'; @@ -57,14 +57,17 @@ export const ModelBase: FC = ({ isEditing, title, setTitle, desc }; return ( - <> + {isEditing ? "Edit existing model" : "Create new model"} + setTitle(e.currentTarget.value)} multiple /> + + {"Description (supports "} = ({ isEditing, title, setTitle, desc langauge="markdown" height="30vh" /> + +