Spaces:
Sleeping
Sleeping
fix responsive issue
Browse filesFiles changed (7)
51 unmodified lines5253545555565732 unmodified lines909192949394959651 unmodified lines title: "DeepSite", statusBarStyle: "black-translucent", }, themeColor: "#000000", icons: { icon: "/logo.svg", shortcut: "/logo.svg",32 unmodified lines return ( <html lang="en"> <body className={`${inter.variable} ${ptSans.variable} antialiased bg-black dark`} className={`${inter.variable} ${ptSans.variable} antialiased bg-black dark h-[100dvh] overflow-hidden`} > <Toaster richColors position="bottom-center" /> <TanstackProvider>262 unmodified lines263264265266266267268269262 unmodified lines
return ( <> <div className="bg-neutral-800 border border-neutral-700 rounded-2xl ring-[4px] focus-within:ring-neutral-500/30 focus-within:border-neutral-600 ring-transparent z-10 absolute bottom-3 left-3 w-[calc(100%-20px)] group"> <div className="bg-neutral-800 border border-neutral-700 rounded-2xl ring-[4px] focus-within:ring-neutral-500/30 focus-within:border-neutral-600 ring-transparent z-10 w-full group"> {think && ( <div className="w-full border-b border-neutral-700 relative overflow-hidden"> <header71 unmodified lines727374757576777818 unmodified lines97989910010010110210310410310410510610721 unmodified lines12913013113213213313413571 unmodified lines Save your Project </Button> <Button variant="sky" size="sm" className="lg:hidden"> Save Deploy </Button> </div> </PopoverTrigger>18 unmodified lines </div> </div> <p className="text-xl font-semibold text-neutral-950"> Deploy your Project! Deploy as Space! </p> <p className="text-sm text-neutral-500 mt-1.5"> Deploy your project to a space on the Hub. Spaces are a way to share your project with the world. Save and Deploy your project to a Space on the Hub. Spaces are a way to share your project with the world. </p> </header> <main className="space-y-4 p-6">21 unmodified lines className="relative w-full" disabled={loading} > Deploy <Rocket className="size-4" /> Deploy Space <Rocket className="size-4" /> {loading && ( <Loading className="ml-2 size-4 animate-spin" /> )}29 unmodified lines303132333334353629 unmodified lines children?: ReactNode;}) { return ( <header className="border-b bg-slate-200 border-slate-300 dark:bg-neutral-950 dark:border-neutral-800 px-3 lg:px-6 py-2 grid grid-cols-3 sticky top-0 z-20"> <header className="border-b bg-slate-200 border-slate-300 dark:bg-neutral-950 dark:border-neutral-800 px-3 lg:px-6 py-2 grid grid-cols-3 z-20"> <div className="flex items-center justify-start gap-3"> <h1 className="text-neutral-900 dark:text-white text-lg lg:text-xl font-bold flex items-center justify-start"> <Image165 unmodified lines1661671681691691701711721 unmodified line1741751761771771781791801801811821831841851865 unmodified lines192193194192195196197198165 unmodified lines }, [currentTab]);
return ( <section className="h-screen bg-slate-100 dark:bg-neutral-950 flex flex-col"> <section className="h-[100dvh] bg-neutral-950 flex flex-col"> <Header tab={currentTab} onNewTab={setCurrentTab}> {project?._id ? ( <SaveButton html={html} prompts={prompts} />1 unmodified line <DeployButton html={html} prompts={prompts} /> )} </Header> <main className="bg-neutral-950 flex-1 max-lg:flex-col flex w-full"> <main className="bg-neutral-950 flex-1 max-lg:flex-col flex w-full max-lg:h-[calc(100%-82px)] relative"> {currentTab === "chat" && ( <> <div ref={editor} className="relative"> <div ref={editor} className="bg-neutral-900 relative flex-1 overflow-hidden h-full flex flex-col gap-2 pb-3 px-3" > <CopyIcon className="size-4 absolute top-2 right-5 text-neutral-500 hover:text-neutral-300 z-2 cursor-pointer" onClick={() => {5 unmodified lines language="html" theme="vs-dark" className={classNames( "h-[calc(100dvh-98px)] lg:h-full bg-neutral-900 transition-all duration-200 ", "max-lg:h-[calc(100%-82px)] h-full bg-neutral-900 transition-all duration-200 absolute left-0 top-0", { "pointer-events-none": isAiWorking, }28 unmodified lines293031323334353617 unmodified lines545556555758596028 unmodified lines "w-full border-l border-gray-900 h-full relative z-0 flex items-center justify-center", { "lg:p-4": currentTab !== "preview", "max-lg:h-0": currentTab === "chat", "max-lg:h-full": currentTab === "preview", } )} onClick={(e) => {17 unmodified lines ref={iframeRef} title="output" className={classNames( "w-full select-none transition-all duration-200 bg-black max-lg:h-full", "w-full select-none transition-all duration-200 bg-black", { "pointer-events-none": isResizing || isAiWorking, "lg:max-w-md lg:mx-auto lg:h-[80dvh] lg:!rounded-[42px] lg:border-[8px] lg:border-neutral-700 lg:shadow-2xl":19 unmodified lines202122232324252619 unmodified lines <DropdownMenu> <DropdownMenuTrigger asChild> <Button variant="ghost" className={`${className}`}> <Avatar className="size-7 mr-1"> <Avatar className="size-8 mr-1"> <AvatarImage src={user?.avatarUrl} alt="@shadcn" /> <AvatarFallback className="text-sm"> {user?.fullname?.charAt(0).toUpperCase() ?? "E"}app/layout.tsx+1-2
components/editor/ask-ai/index.tsx+1-1
components/editor/deploy-button/index.tsx+5-5
components/editor/header/index.tsx+1-1
components/editor/index.tsx+7-4
components/editor/preview/index.tsx+3-1
components/user-menu/index.tsx+1-1