+ {activeRoom ? activeRoom.name : "All Rooms"} +
+{formatMonthYear(weekStart)}
+diff --git a/frontend(experimental)/newchat/README.md b/frontend(experimental)/newchat/README.md new file mode 100644 index 0000000..14a4cd3 --- /dev/null +++ b/frontend(experimental)/newchat/README.md @@ -0,0 +1,33 @@ +# calendar-app + +This is a [Next.js](https://nextjs.org) project bootstrapped with [v0](https://v0.app). + +## Built with v0 + +This repository is linked to a [v0](https://v0.app) project. You can continue developing by visiting the link below -- start new chats to make changes, and v0 will push commits directly to this repo. Every merge to `main` will automatically deploy. + +[Continue working on v0 →](https://v0.app/chat/projects/prj_JicVuGp27VUV82GWT4csmGqXBtSV) + +## Getting Started + +First, run the development server: + +```bash +npm run dev +# or +yarn dev +# or +pnpm dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. + +## Learn More + +To learn more, take a look at the following resources: + +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. +- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. +- [v0 Documentation](https://v0.app/docs) - learn about v0 and how to use it. diff --git a/frontend(experimental)/newchat/app/globals.css b/frontend(experimental)/newchat/app/globals.css new file mode 100644 index 0000000..5791b0a --- /dev/null +++ b/frontend(experimental)/newchat/app/globals.css @@ -0,0 +1,62 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +:root { + --background: 0 0% 100%; + --foreground: 222.2 84% 4.9%; + --card: 0 0% 100%; + --card-foreground: 222.2 84% 4.9%; + --popover: 0 0% 100%; + --popover-foreground: 222.2 84% 4.9%; + --primary: 221.2 83.2% 53.3%; + --primary-foreground: 210 40% 98%; + --secondary: 210 40% 96.1%; + --secondary-foreground: 222.2 47.4% 11.2%; + --muted: 210 40% 96.1%; + --muted-foreground: 215.4 16.3% 46.9%; + --accent: 210 40% 96.1%; + --accent-foreground: 222.2 47.4% 11.2%; + --destructive: 0 84.2% 60.2%; + --destructive-foreground: 210 40% 98%; + --border: 214.3 31.8% 91.4%; + --input: 214.3 31.8% 91.4%; + --ring: 221.2 83.2% 53.3%; + --radius: 0.5rem; +} + +.dark { + --background: 222.2 84% 4.9%; + --foreground: 210 40% 98%; + --card: 222.2 84% 4.9%; + --card-foreground: 210 40% 98%; + --popover: 222.2 84% 4.9%; + --popover-foreground: 210 40% 98%; + --primary: 217.2 91.2% 59.8%; + --primary-foreground: 222.2 47.4% 11.2%; + --secondary: 217.2 32.6% 17.5%; + --secondary-foreground: 210 40% 98%; + --muted: 217.2 32.6% 17.5%; + --muted-foreground: 215 20.2% 65.1%; + --accent: 217.2 32.6% 17.5%; + --accent-foreground: 210 40% 98%; + --destructive: 0 62.8% 30.6%; + --destructive-foreground: 210 40% 98%; + --border: 217.2 32.6% 17.5%; + --input: 217.2 32.6% 17.5%; + --ring: 224.3 76.3% 48%; +} + +@layer utilities { + .bg-grid-slate-200\/50 { + background-image: linear-gradient(currentColor 1px, transparent 1px), + linear-gradient(to right, currentColor 1px, transparent 1px); + background-size: 20px 20px; + } +} + +.react-draggable { + backdrop-filter: blur(16px); + -webkit-backdrop-filter: blur(16px); +} + diff --git a/frontend(experimental)/newchat/app/layout.tsx b/frontend(experimental)/newchat/app/layout.tsx new file mode 100644 index 0000000..0778c98 --- /dev/null +++ b/frontend(experimental)/newchat/app/layout.tsx @@ -0,0 +1,27 @@ +import type React from "react" +import type { Metadata } from "next" +import { Inter } from "next/font/google" +import "./globals.css" +import { AuthProvider } from "@/lib/auth-context" + +const inter = Inter({ subsets: ["latin"] }) + +export const metadata: Metadata = { + title: "Calendar | Rooms & Events", + description: "A shared, room-based calendar for planning events together.", + generator: "v0.app", +} + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode +}>) { + return ( + +
+{formatMonthYear(weekStart)}
++ {mode === "login" + ? "Sign in to your shared calendar" + : "Join rooms and plan events together"} +
++ {mode === "login" ? "Don't have an account? " : "Already have an account? "} + +
++ You need to be in a room before creating an event. Create or join a room first. +
+
+
+
+
+
+ {event.description} +
+ )} + + {/* RSVP */} + {event.status !== "cancelled" && ( +Your response
++ {goingCount} going · {maybeCount} maybe · {declinedCount} declined +
++ No rooms yet. Create or join one to get started. +
+ )} +{user?.username}
+{user?.email}
+