From 4adf59d4405bc8ca8c61383c051e5e3a96bab138 Mon Sep 17 00:00:00 2001 From: gibbyb Date: Thu, 8 Aug 2024 19:52:48 -0500 Subject: [PATCH] Begin working on home page --- src/app/page.tsx | 24 +++--- src/components/auth/AvatarPopover.tsx | 2 +- src/components/home/Hero.tsx | 24 ++++++ src/components/ui/breadcrumb.tsx | 115 ++++++++++++++++++++++++++ tailwind.config.ts | 1 + 5 files changed, 153 insertions(+), 13 deletions(-) create mode 100644 src/components/home/Hero.tsx create mode 100644 src/components/ui/breadcrumb.tsx diff --git a/src/app/page.tsx b/src/app/page.tsx index ec36119..8e8fc06 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -5,6 +5,7 @@ import Sign_In_Apple_Button from "~/components/auth/server/SignInAppleButton" import Title from "~/components/home/Title" import Avatar_Popover from "~/components/auth/AvatarPopover" import First_Sign_In_Form from "~/components/auth/FirstSignInForm" +import Hero from "~/components/home/Hero" export default async function HomePage() { const session = await auth(); @@ -23,21 +24,20 @@ export default async function HomePage() { } else { const users_email = session.user.email ?? ""; const users_name = session.user.name ?? "New User"; - console.log("session:", session); - console.log("users_email:", users_email); - console.log("users_name:", users_name); return (
-
-
-
- + < First_Sign_In_Form users_name={users_name} users_email={users_email} /> +
+ < Hero /> +
+
+
+ +
+
+ +
- -
-
-

Welcome, {users_name.split(" ")[0]}

-
diff --git a/src/components/auth/AvatarPopover.tsx b/src/components/auth/AvatarPopover.tsx index d562bb1..608a9ef 100644 --- a/src/components/auth/AvatarPopover.tsx +++ b/src/components/auth/AvatarPopover.tsx @@ -25,7 +25,7 @@ export default async function Avatar_Popover() { - + {initials} diff --git a/src/components/home/Hero.tsx b/src/components/home/Hero.tsx new file mode 100644 index 0000000..2612a5d --- /dev/null +++ b/src/components/home/Hero.tsx @@ -0,0 +1,24 @@ +import { Outfit as FontSans } from "next/font/google"; +import { cn } from "~/lib/utils" + +const fontSans = FontSans({ + subsets: ["latin"], + variable: "--font-sans", +}); + +export default function Hero() { + return ( +
+

+ TENANT +

+

+ PORTAL +

+
+ ); +}; diff --git a/src/components/ui/breadcrumb.tsx b/src/components/ui/breadcrumb.tsx new file mode 100644 index 0000000..61952b2 --- /dev/null +++ b/src/components/ui/breadcrumb.tsx @@ -0,0 +1,115 @@ +import * as React from "react" +import { Slot } from "@radix-ui/react-slot" +import { ChevronRight, MoreHorizontal } from "lucide-react" + +import { cn } from "~/lib/utils" + +const Breadcrumb = React.forwardRef< + HTMLElement, + React.ComponentPropsWithoutRef<"nav"> & { + separator?: React.ReactNode + } +>(({ ...props }, ref) =>