mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-19 16:13:19 +00:00
35 lines
992 B
TypeScript
35 lines
992 B
TypeScript
"use client"
|
|
|
|
import { ArrowRightIcon } from "lucide-react"
|
|
import { useOnboardingStorage } from "@hooks/use-onboarding-storage"
|
|
import { useRouter } from "next/navigation"
|
|
|
|
export function Welcome() {
|
|
const { markOnboardingCompleted } = useOnboardingStorage()
|
|
const router = useRouter()
|
|
|
|
const handleGetStarted = () => {
|
|
markOnboardingCompleted()
|
|
router.push("/")
|
|
}
|
|
|
|
return (
|
|
<div className="flex flex-col gap-4 items-center text-center w-full">
|
|
<h1 className="text-white font-medium text-2xl md:text-4xl">
|
|
Welcome to Supermemory
|
|
</h1>
|
|
<p className="text-white/80 text-lg md:text-2xl">
|
|
We're excited to have you on board.
|
|
</p>
|
|
|
|
<button
|
|
type="button"
|
|
onClick={handleGetStarted}
|
|
className="tracking-normal w-fit flex items-center justify-center text-lg md:text-2xl underline cursor-pointer font-medium text-white/80 hover:text-white transition-colors"
|
|
>
|
|
Get started
|
|
<ArrowRightIcon className="size-4 ml-2" />
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|