This commit is contained in:
Luke Vella 2024-02-13 16:49:52 +08:00
parent d203ca7b6b
commit 00df1a2e40
5 changed files with 78 additions and 42 deletions

View file

@ -40,7 +40,7 @@ import {
InviteCard,
InviteCardForm,
InviteCardGeneral,
} from "@/app/[locale]/create/invite-card";
} from "@/app/[locale]/(admin)/create/invite-card";
import {
PageContainer,
PageContent,
@ -426,8 +426,8 @@ export function CreateForm() {
<div className="max-w-xl grow">
<CreateFormInput />
</div>
<div className="rounded-md border bg-gray-100 px-5 py-4">
<h2 className="text-muted-foreground mb-1 text-sm">Preview</h2>
<div className="hidden rounded-md border bg-gray-100 px-5 py-4 lg:block">
<div className="text-muted-foreground mb-1 text-sm">Preview</div>
<CreateFormPreview />
</div>
</form>

View file

@ -1,18 +1,14 @@
import { Button } from "@rallly/ui/button";
import { ArrowLeftIcon, ChevronRightIcon, XIcon } from "lucide-react";
import { ChevronRightIcon, XIcon } from "lucide-react";
import Link from "next/link";
import { CreateForm } from "@/app/[locale]/create/create-form";
import {
PageContainer,
PageContent,
PageHeader,
} from "@/app/components/page-layout";
import { CreateForm } from "@/app/[locale]/(admin)/create/create-form";
import { PageContainer, PageContent } from "@/app/components/page-layout";
import { getTranslation } from "@/app/i18n";
export default async function Page({ params }: { params: { locale: string } }) {
return (
<PageContainer className="flex flex-col bg-white">
<PageContainer className="flex flex-col bg-gray-50">
<PageContent className="grow">
<div className="mb-4 flex items-center justify-between">
<div className="text-muted-foreground flex items-center gap-x-4 text-sm">