mirror of
https://github.com/hanzoai/dataroom.git
synced 2026-10-30 18:41:07 +00:00
56 lines
2.1 KiB
TypeScript
56 lines
2.1 KiB
TypeScript
import { useRouter } from "next/router";
|
|
|
|
import { ArrowLeft as ArrowLeftIcon } from "lucide-react";
|
|
import { AnimatePresence } from "motion/react";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
import Dataroom from "@/components/welcome/dataroom";
|
|
import DataroomTrial from "@/components/welcome/dataroom-trial";
|
|
import Intro from "@/components/welcome/intro";
|
|
import Next from "@/components/welcome/next";
|
|
import DeckGeneratorUpload from "@/components/welcome/special-upload";
|
|
import Upload from "@/components/welcome/upload";
|
|
|
|
export default function DocumentNew() {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<div className="mx-auto flex h-screen max-w-3xl flex-col items-center justify-center overflow-x-hidden">
|
|
<div
|
|
className="absolute inset-x-0 top-10 -z-10 flex transform-gpu justify-center overflow-hidden blur-3xl"
|
|
aria-hidden="true"
|
|
>
|
|
<div
|
|
className="aspect-[1108/632] w-[69.25rem] flex-none bg-gradient-to-r from-[#80caff] to-[#4f46e5] opacity-20"
|
|
style={{
|
|
clipPath:
|
|
"polygon(73.6% 51.7%, 91.7% 11.8%, 100% 46.4%, 97.4% 82.2%, 92.5% 84.9%, 75.7% 64%, 55.3% 47.5%, 46.5% 49.4%, 45% 62.9%, 50.3% 87.2%, 21.3% 64.1%, 0.1% 100%, 5.4% 51.1%, 21.4% 63.9%, 58.9% 0.2%, 73.6% 51.7%)",
|
|
}}
|
|
/>
|
|
</div>
|
|
<AnimatePresence mode="wait">
|
|
{router.query.type ? (
|
|
<>
|
|
<button
|
|
className="group absolute left-2 top-10 z-40 rounded-full p-2 transition-all hover:bg-gray-400 sm:left-10"
|
|
onClick={() => router.back()}
|
|
>
|
|
<ArrowLeftIcon className="h-8 w-8 text-gray-500 group-hover:text-gray-800 group-active:scale-90" />
|
|
</button>
|
|
|
|
<Button
|
|
variant={"link"}
|
|
onClick={() => router.push("/documents")}
|
|
className="absolute right-2 top-10 z-40 p-2 text-muted-foreground sm:right-10"
|
|
>
|
|
Skip to dashboard
|
|
</Button>
|
|
</>
|
|
) : (
|
|
<DeckGeneratorUpload key="document" />
|
|
)}
|
|
</AnimatePresence>
|
|
</div>
|
|
);
|
|
}
|