From 83983b6ca0a2f247b774ddb8f7c9c0c66bb3529e Mon Sep 17 00:00:00 2001 From: nrmnqdds Date: Thu, 4 Jan 2024 02:18:45 +0800 Subject: [PATCH] :lipstick: initiate shadcn --- app/(home)/layout.tsx | 67 +++---- app/(home)/result/page.tsx | 18 +- app/(home)/schedule/page.tsx | 15 +- app/globals.css | 58 ++++++ app/layout.tsx | 10 +- app/page.tsx | 9 +- components.json | 17 ++ components/LoginForm.tsx | 130 +++++------- components/ProfileDropdown.tsx | 76 +++---- components/ResultSwitcher.tsx | 103 +++------- components/ScheduleSwitcher.tsx | 171 ++++++---------- components/ScrollbarProgress.tsx | 22 ++ components/dashboard/Advertisements.tsx | 6 +- components/dashboard/CGPAChart.tsx | 6 +- components/dashboard/bento.tsx | 4 +- components/dashboard/card.tsx | 2 +- components/schedule/TimetableRow.tsx | 23 +-- components/schedule/TimetableWeekDays.tsx | 9 +- components/schedule/index.tsx | 2 +- components/sections/FeatureSection.tsx | 21 +- components/sections/HeroSection.tsx | 2 +- components/ui/avatar.tsx | 50 +++++ components/ui/button.tsx | 56 ++++++ components/ui/container-scroll-animation.tsx | 113 +++++++++++ components/ui/dropdown-menu.tsx | 200 +++++++++++++++++++ components/ui/form.tsx | 176 ++++++++++++++++ components/ui/input.tsx | 24 +++ components/ui/label.tsx | 26 +++ components/ui/select.tsx | 160 +++++++++++++++ context/ImaluumProvider.tsx | 6 +- context/LenisProvider.tsx | 9 + lib/common/cn.ts | 6 + lib/{client => common}/range.ts | 0 lib/{client => common}/time.ts | 0 lib/server/auth.ts | 6 +- package.json | 16 +- tailwind.config.ts | 102 ++++++++-- 37 files changed, 1288 insertions(+), 433 deletions(-) create mode 100644 components.json create mode 100644 components/ScrollbarProgress.tsx create mode 100644 components/ui/avatar.tsx create mode 100644 components/ui/button.tsx create mode 100644 components/ui/container-scroll-animation.tsx create mode 100644 components/ui/dropdown-menu.tsx create mode 100644 components/ui/form.tsx create mode 100644 components/ui/input.tsx create mode 100644 components/ui/label.tsx create mode 100644 components/ui/select.tsx create mode 100644 context/LenisProvider.tsx create mode 100644 lib/common/cn.ts rename lib/{client => common}/range.ts (100%) rename lib/{client => common}/time.ts (100%) diff --git a/app/(home)/layout.tsx b/app/(home)/layout.tsx index c5ddd19..e842c3d 100644 --- a/app/(home)/layout.tsx +++ b/app/(home)/layout.tsx @@ -1,24 +1,23 @@ "use client"; -import { Fragment, useEffect, useState } from "react"; +import ProfileDropdown from "@/components/ProfileDropdown"; +import { ThemeSwitcher } from "@/components/ThemeSwitcher"; +import ImaluumProvider from "@/context/ImaluumProvider"; +import { getDate } from "@/lib/common/time"; +import LOGO from "@/public/logo-landing-page.png"; import { Dialog, Menu, Transition } from "@headlessui/react"; import { Bars3Icon, CalendarIcon, Cog6ToothIcon, + FlagIcon, HomeIcon, XMarkIcon, - FlagIcon, } from "@heroicons/react/24/outline"; -import { ChevronDownIcon } from "@heroicons/react/20/solid"; -import { usePathname, useRouter } from "next/navigation"; -import Link from "next/link"; -import LOGO from "@/public/logo-landing-page.png"; import Image from "next/image"; -import { getDate } from "@/lib/client/time"; -import { ThemeSwitcher } from "@/components/ThemeSwitcher"; -import ProfileDropdown from "@/components/ProfileDropdown"; -import ImaluumProvider from "@/context/ImaluumProvider"; +import Link from "next/link"; +import { usePathname, useRouter } from "next/navigation"; +import { Fragment, useEffect, useState } from "react"; const navigation = [ { name: "Dashboard", href: "/dashboard", icon: HomeIcon }, @@ -114,7 +113,7 @@ export default function HomeLayout({ {/* Sidebar component, swap this element with another sidebar if you like */} -
+
@@ -178,7 +177,7 @@ export default function HomeLayout({ {/* Static sidebar for desktop */}
{/* Sidebar component, swap this element with another sidebar if you like */} -
+
-
+