diff --git a/package-lock.json b/package-lock.json index 5913709..2ff1b39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,8 @@ "iron-session": "^8.0.4", "lucide-react": "^0.542.0", "luxon": "^3.7.2", - "next": "^15.5.2", + "next": "15.5.2", + "next-auth": "^4.24.11", "next-safe-action": "^8.0.11", "react": "19.1.0", "react-dom": "19.1.0", diff --git a/package.json b/package.json index d6f704c..78c6549 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "dev": "next dev --turbopack", + "dev": "next dev", "build": "prisma generate && next build --turbopack", "postinstall": "prisma generate", "start": "next start", diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index e7a245b..76c3273 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -1,13 +1,17 @@ "use client"; +// import { useSession } from "next-auth/react"; +import { useRouter } from "next/navigation"; +import { useEffect } from "react"; + export default function DashboardPage() { + // const { data: session, status } = useSession(); + return (
-
-

Welcome!

-

- Dashboard is temporarily available without authentication. -

+
+

Welcome!

+

You are now signed in to SentioPulse.

); diff --git a/src/app/globals.css b/src/app/globals.css index 915fc19..3ea1c6c 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,77 +1,7 @@ /* Login page background */ -.login-bg { - background: linear-gradient(90deg, #e0e7ff 0%, #f9fafb 100%); -} - -/* Flex utilities */ -.flex-center { - display: flex; - align-items: center; - justify-content: center; -} -.flex-col-center { - display: flex; - flex-direction: column; - align-items: center; -} - -/* Full viewport height utility */ -.full-vh { - min-height: 100vh; -} - -/* Login card styles */ -.login-card { - background: #fff; - padding: 48px 36px; - border-radius: 16px; - box-shadow: 0 8px 32px rgba(0,36,100,0.08); -} - -.login-title { - font-size: 2rem; - font-weight: 700; - margin-bottom: 12px; - color: #334155; -} - -.login-desc { - color: #64748b; - margin-bottom: 28px; -} - -/* Google button styles */ -.google-btn { - display: flex; - align-items: center; - justify-content: center; - gap: 10px; - background: #fff; - color: #222; - border: 1px solid #dadada; - border-radius: 8px; - padding: 12px 28px; - font-weight: 500; - font-size: 18px; - box-shadow: 0 2px 8px rgba(64,86,120,0.07); - cursor: pointer; - transition: box-shadow 0.2s, border 0.2s; - outline: none; -} -.google-btn:hover { - box-shadow: 0 4px 14px rgba(0,0,0,.10); -} - -.google-logo { - background: #fff; - border-radius: 50%; -} - @import "tailwindcss"; @import "tw-animate-css"; -@custom-variant dark (&:is(.dark *)); - @theme inline { --color-background: var(--background); --color-foreground: var(--foreground);