Create page
@@ -72,11 +47,11 @@ export default function CreatePageClient() {
disabled={isPending}
onClick={() => handleSave("DRAFT")}
>
- {isPending && }
+ {isPending && }
Save as draft
handleSave("PUBLISHED")}>
- {isPending && }
+ {isPending && }
Publish
@@ -84,10 +59,8 @@ export default function CreatePageClient() {
{
dataRef.current = data;
- setFieldErrors({});
}}
- errors={fieldErrors}
/>
);
-}
\ No newline at end of file
+}
diff --git a/app/create/page.tsx b/app/create/page.tsx
index c09bc4b..4fca172 100644
--- a/app/create/page.tsx
+++ b/app/create/page.tsx
@@ -1,5 +1,3 @@
-import Header from "@/components/header";
-import Footer from "@/components/footer";
import { getCurrentUser } from "@/lib/user";
import { redirect } from "next/navigation";
import CreatePageClient from "./client";
@@ -9,10 +7,6 @@ export default async function CreatePage() {
if (!user?.isAdmin) redirect("/");
return (
- <>
-
-
-
- >
+
);
}
\ No newline at end of file
diff --git a/app/error.tsx b/app/error.tsx
new file mode 100644
index 0000000..2af1b70
--- /dev/null
+++ b/app/error.tsx
@@ -0,0 +1,16 @@
+"use client"
+
+import { Button } from "@/components/ui/button";
+import Link from "next/link";
+
+export default function NotFound() {
+ return (
+
+
+
Oops...
+ Something went wrong!
+
+
Go back to main page
+
+ )
+}
\ No newline at end of file
diff --git a/app/favicon.ico b/app/favicon.ico
index 718d6fe..7bd76d2 100644
Binary files a/app/favicon.ico and b/app/favicon.ico differ
diff --git a/app/globals.css b/app/globals.css
index 3eecb3e..90b93aa 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -4,6 +4,16 @@
@custom-variant dark (&:is(.dark *));
+@theme {
+ --text-xs--line-height: 1.5;
+ --text-sm--line-height: 1.45;
+ --text-base--line-height: 1.5;
+ --text-lg--line-height: 1.4;
+ --text-xl--line-height: 1.35;
+ --text-2xl--line-height: 1.3;
+ --text-3xl--line-height: 1.25;
+}
+
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
@@ -133,29 +143,44 @@
}
h1 {
- @apply text-3xl tracking-tight underline underline-offset-8 decoration-2
+ font-size: clamp(1.5rem, 1.3446rem + 0.663vw, 1.875rem);
+ line-height: 1.15;
+ letter-spacing: -0.03em;
+ @apply underline underline-offset-4 sm:underline-offset-8 decoration-2;
}
h2 {
- @apply text-2xl tracking-tight
+ font-size: clamp(1.25rem, 1.1464rem + 0.442vw, 1.5rem);
+ line-height: 1.2;
+ letter-spacing: -0.025em;
}
h3 {
- @apply text-xl tracking-tight
+ font-size: clamp(1.125rem, 1.0732rem + 0.221vw, 1.25rem);
+ line-height: 1.3;
+ letter-spacing: -0.02em;
}
h4 {
- @apply text-lg tracking-tight
-}
-
-p {
- @apply text-base tracking-tight
+ font-size: clamp(1rem, 0.9482rem + 0.221vw, 1.125rem);
+ line-height: 1.35;
+ letter-spacing: -0.02em;
}
h5 {
- @apply text-sm tracking-tight
+ font-size: clamp(0.875rem, 0.6982rem + 0.221vw, 0.875rem);
+ line-height: 1.4;
+ letter-spacing: -0.015em;
}
h6 {
- @apply text-xs tracking-tight
+ font-size: clamp(0.6875rem, 0.6616rem + 0.111vw, 0.75rem);
+ line-height: 1.4;
+ letter-spacing: -0.01em;
+}
+
+p {
+ font-size: 1rem;
+ line-height: 1.5;
+ letter-spacing: -0.011em;
}
\ No newline at end of file
diff --git a/app/layout.tsx b/app/layout.tsx
index eae9160..c2d6038 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -3,6 +3,9 @@ import localFont from "next/font/local"
import "./globals.css";
import { cn } from "@/lib/utils";
import { Toaster } from "@/components/ui/sonner";
+import { TooltipProvider } from "@/components/ui/tooltip";
+import Header from "@/components/header";
+import Footer from "@/components/footer";
const helvetica = localFont({
src: "../public/fonts/HelveticaNeue-Medium.otf",
@@ -25,7 +28,11 @@ export default function RootLayout({
className={cn("h-full", "antialiased", helvetica.className, "font-sans")}
>
- {children}
+
+
+ {children}
+
+