diff --git a/scheduler_app/app/(routes)/create_meeting/_components/meetingForm.js b/scheduler_app/app/(routes)/create_meeting/_components/meetingForm.js new file mode 100644 index 0000000..6d71f19 --- /dev/null +++ b/scheduler_app/app/(routes)/create_meeting/_components/meetingForm.js @@ -0,0 +1,47 @@ +import { Input } from '@/components/ui/input' +import { ChevronLeft } from 'lucide-react' +import React from 'react' +import {DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger,} from "@/components/ui/dropdown-menu" +import LocationOption from '@/app/_utils/LocationOption' +import Image from 'next/image' + +const MeetingForm = () => { + + return ( +
+

Go back

+
+

Create New Event


+
+
+

Event Name *

+ +

Meeting Length *

+ + + + + + 15 minutes + 30 minutes + 45 minutes + 60 minutes + + +

Location *

+
+ {LocationOption.map((option, index) => ( +
+ {option.name}/ +

{option.name}

+
+ ))} +
+

Add url

+ +
+
+ ) +} + +export default MeetingForm \ No newline at end of file diff --git a/scheduler_app/app/(routes)/create_meeting/page.js b/scheduler_app/app/(routes)/create_meeting/page.js new file mode 100644 index 0000000..735724c --- /dev/null +++ b/scheduler_app/app/(routes)/create_meeting/page.js @@ -0,0 +1,15 @@ +import React from 'react' +import MeetingForm from './_components/meetingForm' + +const CreateMeeting = () => { + return ( +
+
+ +
+
+
+ ) +} + +export default CreateMeeting \ No newline at end of file diff --git a/scheduler_app/app/(routes)/dashboard/_components/sideNav.js b/scheduler_app/app/(routes)/dashboard/_components/sideNav.js index 0ddeb39..15dd146 100644 --- a/scheduler_app/app/(routes)/dashboard/_components/sideNav.js +++ b/scheduler_app/app/(routes)/dashboard/_components/sideNav.js @@ -10,30 +10,31 @@ const menu = [ { id: 1, name: 'Meeting', - path: 'dashboard/meeting', + path: '/dashboard/meeting', icon: BriefcaseBusiness }, { id: 2, name: 'Scheduled Meeting', - path: 'dashboard/scheduled_meeting', + path: '/dashboard/scheduled_meeting', icon: CalendarClock }, { id: 3, name: 'Availability', - path: 'dashboard/availability', + path: '/dashboard/availability', icon: Clock }, { id: 4, name: 'Setting', - path: 'dashboard/setting', + path: '/dashboard/setting', icon: Settings } ] const SideNav = () => { + const path = usePathname(); const [activePath, setActivePath] = useState(path); @@ -46,11 +47,13 @@ const SideNav = () => {

Schedule.Me

- + + +
{menu.map((item, index) => ( - diff --git a/scheduler_app/app/_utils/LocationOption.js b/scheduler_app/app/_utils/LocationOption.js new file mode 100644 index 0000000..96769b8 --- /dev/null +++ b/scheduler_app/app/_utils/LocationOption.js @@ -0,0 +1,18 @@ +export default[ + { + name: 'Zoom', + icon: '/zoom.png' + }, + { + name: 'Google Meet', + icon: '/googleMeet.png' + }, + { + name: 'Phone', + icon: '/phone.png' + }, + { + name: 'Other', + icon: '/menu.png' + }, +] \ No newline at end of file diff --git a/scheduler_app/middleware.ts b/scheduler_app/middleware.ts index eabb119..6c0aada 100644 --- a/scheduler_app/middleware.ts +++ b/scheduler_app/middleware.ts @@ -12,5 +12,5 @@ export async function middleware(request) { // See "Matching Paths" below to learn more export const config = { - matcher: '/dashboard/:path*', + matcher: ['/dashboard/:path*', '/create_business'], } \ No newline at end of file diff --git a/scheduler_app/public/facebook.png b/scheduler_app/public/facebook.png deleted file mode 100644 index f93cd37..0000000 Binary files a/scheduler_app/public/facebook.png and /dev/null differ diff --git a/scheduler_app/public/google.png b/scheduler_app/public/google.png deleted file mode 100644 index 494aced..0000000 Binary files a/scheduler_app/public/google.png and /dev/null differ diff --git a/scheduler_app/public/googleMeet.png b/scheduler_app/public/googleMeet.png new file mode 100644 index 0000000..b04c4fe Binary files /dev/null and b/scheduler_app/public/googleMeet.png differ diff --git a/scheduler_app/public/menu.png b/scheduler_app/public/menu.png new file mode 100644 index 0000000..2831270 Binary files /dev/null and b/scheduler_app/public/menu.png differ diff --git a/scheduler_app/public/phone.png b/scheduler_app/public/phone.png new file mode 100644 index 0000000..b792986 Binary files /dev/null and b/scheduler_app/public/phone.png differ diff --git a/scheduler_app/public/zoom.png b/scheduler_app/public/zoom.png new file mode 100644 index 0000000..e6c0d0e Binary files /dev/null and b/scheduler_app/public/zoom.png differ