feat: add onboarding modal

This commit is contained in:
reya
2024-01-08 20:18:07 +07:00
parent aa80301778
commit c172c0f80f
22 changed files with 693 additions and 49 deletions
+27
View File
@@ -0,0 +1,27 @@
import { InfoIcon } from "@lume/icons";
import { cn } from "@lume/utils";
export function EmptyFeed({
text,
subtext,
className,
}: { text?: string; subtext?: string; className?: string }) {
return (
<div
className={cn(
"w-full py-5 flex items-center justify-center flex-col gap-2 rounded-xl bg-neutral-50 dark:bg-neutral-950",
className,
)}
>
<InfoIcon className="size-8 text-blue-500" />
<div className="text-center">
<p className="font-semibold text-lg">{text ? text : "No events yet"}</p>
<p className="leading-tight text-sm">
{subtext
? subtext
: "You can follow more users to build up your timeline"}
</p>
</div>
</div>
);
}