diff --git a/.eslintrc.json b/v1/.eslintrc.json similarity index 100% rename from .eslintrc.json rename to v1/.eslintrc.json diff --git a/.husky/pre-commit b/v1/.husky/pre-commit similarity index 100% rename from .husky/pre-commit rename to v1/.husky/pre-commit diff --git a/.prettierignore b/v1/.prettierignore similarity index 100% rename from .prettierignore rename to v1/.prettierignore diff --git a/.prettierrc b/v1/.prettierrc similarity index 100% rename from .prettierrc rename to v1/.prettierrc diff --git a/@types/index.d.ts b/v1/@types/index.d.ts similarity index 100% rename from @types/index.d.ts rename to v1/@types/index.d.ts diff --git a/v1/LICENSE b/v1/LICENSE new file mode 100644 index 0000000..ca12be3 --- /dev/null +++ b/v1/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 HNGx Internship + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/v1/README.md similarity index 100% rename from README.md rename to v1/README.md diff --git a/components/ErrorBoundary.tsx b/v1/components/ErrorBoundary.tsx similarity index 100% rename from components/ErrorBoundary.tsx rename to v1/components/ErrorBoundary.tsx diff --git a/components/EventCreation/Page1.tsx b/v1/components/EventCreation/Page1.tsx similarity index 100% rename from components/EventCreation/Page1.tsx rename to v1/components/EventCreation/Page1.tsx diff --git a/components/EventCreation/Page2.tsx b/v1/components/EventCreation/Page2.tsx similarity index 100% rename from components/EventCreation/Page2.tsx rename to v1/components/EventCreation/Page2.tsx diff --git a/components/EventCreation/Page3.tsx b/v1/components/EventCreation/Page3.tsx similarity index 100% rename from components/EventCreation/Page3.tsx rename to v1/components/EventCreation/Page3.tsx diff --git a/components/EventCreation/capacityDropDown/capacityDropDown.tsx b/v1/components/EventCreation/capacityDropDown/capacityDropDown.tsx similarity index 100% rename from components/EventCreation/capacityDropDown/capacityDropDown.tsx rename to v1/components/EventCreation/capacityDropDown/capacityDropDown.tsx diff --git a/components/EventCreation/categoryDropDown/categoryDropDown.tsx b/v1/components/EventCreation/categoryDropDown/categoryDropDown.tsx similarity index 100% rename from components/EventCreation/categoryDropDown/categoryDropDown.tsx rename to v1/components/EventCreation/categoryDropDown/categoryDropDown.tsx diff --git a/components/EventCreation/dateDropDown/dateDropDown.tsx b/v1/components/EventCreation/dateDropDown/dateDropDown.tsx similarity index 100% rename from components/EventCreation/dateDropDown/dateDropDown.tsx rename to v1/components/EventCreation/dateDropDown/dateDropDown.tsx diff --git a/components/EventCreation/itemDropDown/itemDropDown.tsx b/v1/components/EventCreation/itemDropDown/itemDropDown.tsx similarity index 100% rename from components/EventCreation/itemDropDown/itemDropDown.tsx rename to v1/components/EventCreation/itemDropDown/itemDropDown.tsx diff --git a/components/EventCreation/staticLocations.ts b/v1/components/EventCreation/staticLocations.ts similarity index 100% rename from components/EventCreation/staticLocations.ts rename to v1/components/EventCreation/staticLocations.ts diff --git a/components/EventCreation/ticketTypeDropDown/ticketTypeDropDown.tsx b/v1/components/EventCreation/ticketTypeDropDown/ticketTypeDropDown.tsx similarity index 100% rename from components/EventCreation/ticketTypeDropDown/ticketTypeDropDown.tsx rename to v1/components/EventCreation/ticketTypeDropDown/ticketTypeDropDown.tsx diff --git a/components/EventCreation/timeDropDown/timeDropDown.tsx b/v1/components/EventCreation/timeDropDown/timeDropDown.tsx similarity index 100% rename from components/EventCreation/timeDropDown/timeDropDown.tsx rename to v1/components/EventCreation/timeDropDown/timeDropDown.tsx diff --git a/components/EventDashBoard3/EventCalendar2.tsx b/v1/components/EventDashBoard3/EventCalendar2.tsx similarity index 100% rename from components/EventDashBoard3/EventCalendar2.tsx rename to v1/components/EventDashBoard3/EventCalendar2.tsx diff --git a/components/EventManagements/EventManage.tsx b/v1/components/EventManagements/EventManage.tsx similarity index 100% rename from components/EventManagements/EventManage.tsx rename to v1/components/EventManagements/EventManage.tsx diff --git a/components/EventManagements/GuestList.tsx b/v1/components/EventManagements/GuestList.tsx similarity index 100% rename from components/EventManagements/GuestList.tsx rename to v1/components/EventManagements/GuestList.tsx diff --git a/components/EventManagements/NoGuest.tsx b/v1/components/EventManagements/NoGuest.tsx similarity index 100% rename from components/EventManagements/NoGuest.tsx rename to v1/components/EventManagements/NoGuest.tsx diff --git a/components/EventManagements/Overview.tsx b/v1/components/EventManagements/Overview.tsx similarity index 100% rename from components/EventManagements/Overview.tsx rename to v1/components/EventManagements/Overview.tsx diff --git a/components/EventManagements/Overviewcard/CardLeft.tsx b/v1/components/EventManagements/Overviewcard/CardLeft.tsx similarity index 100% rename from components/EventManagements/Overviewcard/CardLeft.tsx rename to v1/components/EventManagements/Overviewcard/CardLeft.tsx diff --git a/components/EventManagements/Overviewcard/CardRight.tsx b/v1/components/EventManagements/Overviewcard/CardRight.tsx similarity index 100% rename from components/EventManagements/Overviewcard/CardRight.tsx rename to v1/components/EventManagements/Overviewcard/CardRight.tsx diff --git a/components/EventManagements/Registration.tsx b/v1/components/EventManagements/Registration.tsx similarity index 100% rename from components/EventManagements/Registration.tsx rename to v1/components/EventManagements/Registration.tsx diff --git a/components/Explore/Explorenav.tsx b/v1/components/Explore/Explorenav.tsx similarity index 100% rename from components/Explore/Explorenav.tsx rename to v1/components/Explore/Explorenav.tsx diff --git a/components/Home/homefooter.tsx b/v1/components/Home/homefooter.tsx similarity index 100% rename from components/Home/homefooter.tsx rename to v1/components/Home/homefooter.tsx diff --git a/components/Home/homenav.tsx b/v1/components/Home/homenav.tsx similarity index 100% rename from components/Home/homenav.tsx rename to v1/components/Home/homenav.tsx diff --git a/components/Settings/Account/Contact.tsx b/v1/components/Settings/Account/Contact.tsx similarity index 100% rename from components/Settings/Account/Contact.tsx rename to v1/components/Settings/Account/Contact.tsx diff --git a/components/Settings/Account/EditProfile.tsx b/v1/components/Settings/Account/EditProfile.tsx similarity index 100% rename from components/Settings/Account/EditProfile.tsx rename to v1/components/Settings/Account/EditProfile.tsx diff --git a/components/Settings/Account/SociaMedia.tsx b/v1/components/Settings/Account/SociaMedia.tsx similarity index 100% rename from components/Settings/Account/SociaMedia.tsx rename to v1/components/Settings/Account/SociaMedia.tsx diff --git a/components/Settings/Checkbox.tsx b/v1/components/Settings/Checkbox.tsx similarity index 100% rename from components/Settings/Checkbox.tsx rename to v1/components/Settings/Checkbox.tsx diff --git a/components/Settings/Data-Security.tsx/2FA.tsx b/v1/components/Settings/Data-Security.tsx/2FA.tsx similarity index 100% rename from components/Settings/Data-Security.tsx/2FA.tsx rename to v1/components/Settings/Data-Security.tsx/2FA.tsx diff --git a/components/Settings/Data-Security.tsx/DataAction.tsx b/v1/components/Settings/Data-Security.tsx/DataAction.tsx similarity index 100% rename from components/Settings/Data-Security.tsx/DataAction.tsx rename to v1/components/Settings/Data-Security.tsx/DataAction.tsx diff --git a/components/Settings/Data-Security.tsx/ManageDevices.tsx b/v1/components/Settings/Data-Security.tsx/ManageDevices.tsx similarity index 100% rename from components/Settings/Data-Security.tsx/ManageDevices.tsx rename to v1/components/Settings/Data-Security.tsx/ManageDevices.tsx diff --git a/components/Settings/Data-Security.tsx/Password.tsx b/v1/components/Settings/Data-Security.tsx/Password.tsx similarity index 100% rename from components/Settings/Data-Security.tsx/Password.tsx rename to v1/components/Settings/Data-Security.tsx/Password.tsx diff --git a/components/Settings/Data-Security.tsx/logic2FA.tsx b/v1/components/Settings/Data-Security.tsx/logic2FA.tsx similarity index 100% rename from components/Settings/Data-Security.tsx/logic2FA.tsx rename to v1/components/Settings/Data-Security.tsx/logic2FA.tsx diff --git a/components/Settings/Data-Security.tsx/modal/code2Fa.tsx b/v1/components/Settings/Data-Security.tsx/modal/code2Fa.tsx similarity index 100% rename from components/Settings/Data-Security.tsx/modal/code2Fa.tsx rename to v1/components/Settings/Data-Security.tsx/modal/code2Fa.tsx diff --git a/components/Settings/Data-Security.tsx/modal/enable2Fa.tsx b/v1/components/Settings/Data-Security.tsx/modal/enable2Fa.tsx similarity index 100% rename from components/Settings/Data-Security.tsx/modal/enable2Fa.tsx rename to v1/components/Settings/Data-Security.tsx/modal/enable2Fa.tsx diff --git a/components/Settings/DeleteAccount/DeleteAccountModal.tsx b/v1/components/Settings/DeleteAccount/DeleteAccountModal.tsx similarity index 100% rename from components/Settings/DeleteAccount/DeleteAccountModal.tsx rename to v1/components/Settings/DeleteAccount/DeleteAccountModal.tsx diff --git a/components/Settings/MobileNav.tsx b/v1/components/Settings/MobileNav.tsx similarity index 100% rename from components/Settings/MobileNav.tsx rename to v1/components/Settings/MobileNav.tsx diff --git a/components/Settings/Modal.tsx b/v1/components/Settings/Modal.tsx similarity index 100% rename from components/Settings/Modal.tsx rename to v1/components/Settings/Modal.tsx diff --git a/components/Settings/Notifications/Notification.tsx b/v1/components/Settings/Notifications/Notification.tsx similarity index 100% rename from components/Settings/Notifications/Notification.tsx rename to v1/components/Settings/Notifications/Notification.tsx diff --git a/components/Settings/Plans-Billings.tsx/CardInfo.tsx b/v1/components/Settings/Plans-Billings.tsx/CardInfo.tsx similarity index 100% rename from components/Settings/Plans-Billings.tsx/CardInfo.tsx rename to v1/components/Settings/Plans-Billings.tsx/CardInfo.tsx diff --git a/components/Settings/Plans-Billings.tsx/PaymentHistory.tsx b/v1/components/Settings/Plans-Billings.tsx/PaymentHistory.tsx similarity index 100% rename from components/Settings/Plans-Billings.tsx/PaymentHistory.tsx rename to v1/components/Settings/Plans-Billings.tsx/PaymentHistory.tsx diff --git a/components/Settings/Plans-Billings.tsx/Plans.tsx b/v1/components/Settings/Plans-Billings.tsx/Plans.tsx similarity index 100% rename from components/Settings/Plans-Billings.tsx/Plans.tsx rename to v1/components/Settings/Plans-Billings.tsx/Plans.tsx diff --git a/components/Settings/Preferences/Language.tsx b/v1/components/Settings/Preferences/Language.tsx similarity index 100% rename from components/Settings/Preferences/Language.tsx rename to v1/components/Settings/Preferences/Language.tsx diff --git a/components/Settings/Preferences/Regional.tsx b/v1/components/Settings/Preferences/Regional.tsx similarity index 100% rename from components/Settings/Preferences/Regional.tsx rename to v1/components/Settings/Preferences/Regional.tsx diff --git a/components/Settings/Preferences/Theme.tsx b/v1/components/Settings/Preferences/Theme.tsx similarity index 100% rename from components/Settings/Preferences/Theme.tsx rename to v1/components/Settings/Preferences/Theme.tsx diff --git a/components/Settings/Select.tsx b/v1/components/Settings/Select.tsx similarity index 100% rename from components/Settings/Select.tsx rename to v1/components/Settings/Select.tsx diff --git a/components/Settings/Sidebar.tsx b/v1/components/Settings/Sidebar.tsx similarity index 100% rename from components/Settings/Sidebar.tsx rename to v1/components/Settings/Sidebar.tsx diff --git a/components/Settings/Switch.tsx b/v1/components/Settings/Switch.tsx similarity index 100% rename from components/Settings/Switch.tsx rename to v1/components/Settings/Switch.tsx diff --git a/components/Settings/TelInput.tsx b/v1/components/Settings/TelInput.tsx similarity index 100% rename from components/Settings/TelInput.tsx rename to v1/components/Settings/TelInput.tsx diff --git a/components/Setup/Setup.tsx b/v1/components/Setup/Setup.tsx similarity index 100% rename from components/Setup/Setup.tsx rename to v1/components/Setup/Setup.tsx diff --git a/components/Setup/data.ts b/v1/components/Setup/data.ts similarity index 100% rename from components/Setup/data.ts rename to v1/components/Setup/data.ts diff --git a/components/UserProfile/Events.tsx b/v1/components/UserProfile/Events.tsx similarity index 100% rename from components/UserProfile/Events.tsx rename to v1/components/UserProfile/Events.tsx diff --git a/components/UserProfile/FilterModal.tsx b/v1/components/UserProfile/FilterModal.tsx similarity index 100% rename from components/UserProfile/FilterModal.tsx rename to v1/components/UserProfile/FilterModal.tsx diff --git a/components/UserProfile/FilterTray.tsx b/v1/components/UserProfile/FilterTray.tsx similarity index 100% rename from components/UserProfile/FilterTray.tsx rename to v1/components/UserProfile/FilterTray.tsx diff --git a/components/UserProfile/GridEventCard.tsx b/v1/components/UserProfile/GridEventCard.tsx similarity index 100% rename from components/UserProfile/GridEventCard.tsx rename to v1/components/UserProfile/GridEventCard.tsx diff --git a/components/UserProfile/Input.tsx b/v1/components/UserProfile/Input.tsx similarity index 100% rename from components/UserProfile/Input.tsx rename to v1/components/UserProfile/Input.tsx diff --git a/components/UserProfile/ListEventCard.tsx b/v1/components/UserProfile/ListEventCard.tsx similarity index 100% rename from components/UserProfile/ListEventCard.tsx rename to v1/components/UserProfile/ListEventCard.tsx diff --git a/components/UserProfile/NoEvent.tsx b/v1/components/UserProfile/NoEvent.tsx similarity index 100% rename from components/UserProfile/NoEvent.tsx rename to v1/components/UserProfile/NoEvent.tsx diff --git a/components/UserProfile/ProfieEvent.tsx b/v1/components/UserProfile/ProfieEvent.tsx similarity index 100% rename from components/UserProfile/ProfieEvent.tsx rename to v1/components/UserProfile/ProfieEvent.tsx diff --git a/components/UserProfile/SkeletonElement.tsx b/v1/components/UserProfile/SkeletonElement.tsx similarity index 100% rename from components/UserProfile/SkeletonElement.tsx rename to v1/components/UserProfile/SkeletonElement.tsx diff --git a/components/UserProfile/data.js b/v1/components/UserProfile/data.js similarity index 100% rename from components/UserProfile/data.js rename to v1/components/UserProfile/data.js diff --git a/components/UserProfile/styles.module.css b/v1/components/UserProfile/styles.module.css similarity index 100% rename from components/UserProfile/styles.module.css rename to v1/components/UserProfile/styles.module.css diff --git a/components/components/authTitle.tsx b/v1/components/components/authTitle.tsx similarity index 100% rename from components/components/authTitle.tsx rename to v1/components/components/authTitle.tsx diff --git a/components/components/authenticatedheader.tsx b/v1/components/components/authenticatedheader.tsx similarity index 100% rename from components/components/authenticatedheader.tsx rename to v1/components/components/authenticatedheader.tsx diff --git a/components/components/card/event.tsx b/v1/components/components/card/event.tsx similarity index 100% rename from components/components/card/event.tsx rename to v1/components/components/card/event.tsx diff --git a/components/components/card/skeleton-loader.tsx b/v1/components/components/card/skeleton-loader.tsx similarity index 100% rename from components/components/card/skeleton-loader.tsx rename to v1/components/components/card/skeleton-loader.tsx diff --git a/components/components/event-grids/event-grids.tsx b/v1/components/components/event-grids/event-grids.tsx similarity index 100% rename from components/components/event-grids/event-grids.tsx rename to v1/components/components/event-grids/event-grids.tsx diff --git a/components/components/event-hero/event-hero.tsx b/v1/components/components/event-hero/event-hero.tsx similarity index 100% rename from components/components/event-hero/event-hero.tsx rename to v1/components/components/event-hero/event-hero.tsx diff --git a/components/components/header.tsx b/v1/components/components/header.tsx similarity index 100% rename from components/components/header.tsx rename to v1/components/components/header.tsx diff --git a/components/components/modal/EditEventModal.tsx b/v1/components/components/modal/EditEventModal.tsx similarity index 100% rename from components/components/modal/EditEventModal.tsx rename to v1/components/components/modal/EditEventModal.tsx diff --git a/components/components/modal/auth/AuthModal.tsx b/v1/components/components/modal/auth/AuthModal.tsx similarity index 100% rename from components/components/modal/auth/AuthModal.tsx rename to v1/components/components/modal/auth/AuthModal.tsx diff --git a/components/components/modal/auth/SignIn.tsx b/v1/components/components/modal/auth/SignIn.tsx similarity index 100% rename from components/components/modal/auth/SignIn.tsx rename to v1/components/components/modal/auth/SignIn.tsx diff --git a/components/components/modal/auth/SignInForm.tsx b/v1/components/components/modal/auth/SignInForm.tsx similarity index 100% rename from components/components/modal/auth/SignInForm.tsx rename to v1/components/components/modal/auth/SignInForm.tsx diff --git a/components/components/modal/auth/SignUP.tsx b/v1/components/components/modal/auth/SignUP.tsx similarity index 100% rename from components/components/modal/auth/SignUP.tsx rename to v1/components/components/modal/auth/SignUP.tsx diff --git a/components/components/modal/auth/SignUpForm.tsx b/v1/components/components/modal/auth/SignUpForm.tsx similarity index 100% rename from components/components/modal/auth/SignUpForm.tsx rename to v1/components/components/modal/auth/SignUpForm.tsx diff --git a/components/components/modal/auth/SigninWithEmail.tsx b/v1/components/components/modal/auth/SigninWithEmail.tsx similarity index 100% rename from components/components/modal/auth/SigninWithEmail.tsx rename to v1/components/components/modal/auth/SigninWithEmail.tsx diff --git a/components/components/modal/auth/SignupWithEmail.tsx b/v1/components/components/modal/auth/SignupWithEmail.tsx similarity index 100% rename from components/components/modal/auth/SignupWithEmail.tsx rename to v1/components/components/modal/auth/SignupWithEmail.tsx diff --git a/components/components/modal/auth/SucessModal.tsx b/v1/components/components/modal/auth/SucessModal.tsx similarity index 100% rename from components/components/modal/auth/SucessModal.tsx rename to v1/components/components/modal/auth/SucessModal.tsx diff --git a/components/components/modal/auth/Sucessemail.tsx b/v1/components/components/modal/auth/Sucessemail.tsx similarity index 100% rename from components/components/modal/auth/Sucessemail.tsx rename to v1/components/components/modal/auth/Sucessemail.tsx diff --git a/components/components/modal/auth/complete-reset.tsx b/v1/components/components/modal/auth/complete-reset.tsx similarity index 100% rename from components/components/modal/auth/complete-reset.tsx rename to v1/components/components/modal/auth/complete-reset.tsx diff --git a/components/components/modal/auth/forgetPassword.tsx b/v1/components/components/modal/auth/forgetPassword.tsx similarity index 100% rename from components/components/modal/auth/forgetPassword.tsx rename to v1/components/components/modal/auth/forgetPassword.tsx diff --git a/components/components/modal/event-filder.tsx b/v1/components/components/modal/event-filder.tsx similarity index 100% rename from components/components/modal/event-filder.tsx rename to v1/components/components/modal/event-filder.tsx diff --git a/components/event-management/EventManagementHeader.tsx b/v1/components/event-management/EventManagementHeader.tsx similarity index 100% rename from components/event-management/EventManagementHeader.tsx rename to v1/components/event-management/EventManagementHeader.tsx diff --git a/components/event-management/VerifyEmail.tsx b/v1/components/event-management/VerifyEmail.tsx similarity index 100% rename from components/event-management/VerifyEmail.tsx rename to v1/components/event-management/VerifyEmail.tsx diff --git a/components/event-search/event-search.tsx b/v1/components/event-search/event-search.tsx similarity index 100% rename from components/event-search/event-search.tsx rename to v1/components/event-search/event-search.tsx diff --git a/components/loading.tsx b/v1/components/loading.tsx similarity index 100% rename from components/loading.tsx rename to v1/components/loading.tsx diff --git a/components/samplemodal.tsx b/v1/components/samplemodal.tsx similarity index 100% rename from components/samplemodal.tsx rename to v1/components/samplemodal.tsx diff --git a/components/share/ShareInvite.tsx b/v1/components/share/ShareInvite.tsx similarity index 100% rename from components/share/ShareInvite.tsx rename to v1/components/share/ShareInvite.tsx diff --git a/components/textEditor/textEditor.tsx b/v1/components/textEditor/textEditor.tsx similarity index 100% rename from components/textEditor/textEditor.tsx rename to v1/components/textEditor/textEditor.tsx diff --git a/components/ui/Breadcrumbs.tsx b/v1/components/ui/Breadcrumbs.tsx similarity index 100% rename from components/ui/Breadcrumbs.tsx rename to v1/components/ui/Breadcrumbs.tsx diff --git a/components/ui/Button.tsx b/v1/components/ui/Button.tsx similarity index 100% rename from components/ui/Button.tsx rename to v1/components/ui/Button.tsx diff --git a/components/ui/Calender.tsx b/v1/components/ui/Calender.tsx similarity index 100% rename from components/ui/Calender.tsx rename to v1/components/ui/Calender.tsx diff --git a/components/ui/ExploreCard.tsx b/v1/components/ui/ExploreCard.tsx similarity index 100% rename from components/ui/ExploreCard.tsx rename to v1/components/ui/ExploreCard.tsx diff --git a/components/ui/GoogleButton.tsx b/v1/components/ui/GoogleButton.tsx similarity index 100% rename from components/ui/GoogleButton.tsx rename to v1/components/ui/GoogleButton.tsx diff --git a/components/ui/Input.tsx b/v1/components/ui/Input.tsx similarity index 100% rename from components/ui/Input.tsx rename to v1/components/ui/Input.tsx diff --git a/components/ui/Label.tsx b/v1/components/ui/Label.tsx similarity index 100% rename from components/ui/Label.tsx rename to v1/components/ui/Label.tsx diff --git a/components/ui/Modal.tsx b/v1/components/ui/Modal.tsx similarity index 100% rename from components/ui/Modal.tsx rename to v1/components/ui/Modal.tsx diff --git a/components/ui/NewButton.tsx b/v1/components/ui/NewButton.tsx similarity index 100% rename from components/ui/NewButton.tsx rename to v1/components/ui/NewButton.tsx diff --git a/components/ui/NewInput.tsx b/v1/components/ui/NewInput.tsx similarity index 100% rename from components/ui/NewInput.tsx rename to v1/components/ui/NewInput.tsx diff --git a/components/ui/NewLabel.tsx b/v1/components/ui/NewLabel.tsx similarity index 100% rename from components/ui/NewLabel.tsx rename to v1/components/ui/NewLabel.tsx diff --git a/components/ui/PasswordPopover.tsx b/v1/components/ui/PasswordPopover.tsx similarity index 100% rename from components/ui/PasswordPopover.tsx rename to v1/components/ui/PasswordPopover.tsx diff --git a/components/ui/SelectInput.tsx b/v1/components/ui/SelectInput.tsx similarity index 100% rename from components/ui/SelectInput.tsx rename to v1/components/ui/SelectInput.tsx diff --git a/components/ui/SocialButton.tsx b/v1/components/ui/SocialButton.tsx similarity index 100% rename from components/ui/SocialButton.tsx rename to v1/components/ui/SocialButton.tsx diff --git a/components/ui/Toast.tsx b/v1/components/ui/Toast.tsx similarity index 100% rename from components/ui/Toast.tsx rename to v1/components/ui/Toast.tsx diff --git a/components/ui/dialog.tsx b/v1/components/ui/dialog.tsx similarity index 100% rename from components/ui/dialog.tsx rename to v1/components/ui/dialog.tsx diff --git a/components/ui/drawer.tsx b/v1/components/ui/drawer.tsx similarity index 100% rename from components/ui/drawer.tsx rename to v1/components/ui/drawer.tsx diff --git a/components/ui/notification.tsx b/v1/components/ui/notification.tsx similarity index 100% rename from components/ui/notification.tsx rename to v1/components/ui/notification.tsx diff --git a/components/ui/temp/froma.txt b/v1/components/ui/temp/froma.txt similarity index 100% rename from components/ui/temp/froma.txt rename to v1/components/ui/temp/froma.txt diff --git a/context/AuthContext.tsx b/v1/context/AuthContext.tsx similarity index 100% rename from context/AuthContext.tsx rename to v1/context/AuthContext.tsx diff --git a/context/EventContext.tsx b/v1/context/EventContext.tsx similarity index 100% rename from context/EventContext.tsx rename to v1/context/EventContext.tsx diff --git a/context/NextAuthProviders.tsx b/v1/context/NextAuthProviders.tsx similarity index 100% rename from context/NextAuthProviders.tsx rename to v1/context/NextAuthProviders.tsx diff --git a/context/RegistrationContext.tsx b/v1/context/RegistrationContext.tsx similarity index 100% rename from context/RegistrationContext.tsx rename to v1/context/RegistrationContext.tsx diff --git a/context/sessionProvider.tsx b/v1/context/sessionProvider.tsx similarity index 100% rename from context/sessionProvider.tsx rename to v1/context/sessionProvider.tsx diff --git a/email-temp/README.md b/v1/email-temp/README.md similarity index 100% rename from email-temp/README.md rename to v1/email-temp/README.md diff --git a/email-temp/example.html b/v1/email-temp/example.html similarity index 100% rename from email-temp/example.html rename to v1/email-temp/example.html diff --git a/email-temp/example.mjml b/v1/email-temp/example.mjml similarity index 100% rename from email-temp/example.mjml rename to v1/email-temp/example.mjml diff --git a/email-temp/ticket.html b/v1/email-temp/ticket.html similarity index 100% rename from email-temp/ticket.html rename to v1/email-temp/ticket.html diff --git a/email-temp/verify.html b/v1/email-temp/verify.html similarity index 100% rename from email-temp/verify.html rename to v1/email-temp/verify.html diff --git a/helpers/getInputErrors.ts b/v1/helpers/getInputErrors.ts similarity index 100% rename from helpers/getInputErrors.ts rename to v1/helpers/getInputErrors.ts diff --git a/helpers/hardToken.ts b/v1/helpers/hardToken.ts similarity index 100% rename from helpers/hardToken.ts rename to v1/helpers/hardToken.ts diff --git a/helpers/index.ts b/v1/helpers/index.ts similarity index 100% rename from helpers/index.ts rename to v1/helpers/index.ts diff --git a/helpers/isAuthenticated.ts b/v1/helpers/isAuthenticated.ts similarity index 100% rename from helpers/isAuthenticated.ts rename to v1/helpers/isAuthenticated.ts diff --git a/helpers/withAuth.tsx b/v1/helpers/withAuth.tsx similarity index 100% rename from helpers/withAuth.tsx rename to v1/helpers/withAuth.tsx diff --git a/helpers/withoutAuth.tsx b/v1/helpers/withoutAuth.tsx similarity index 100% rename from helpers/withoutAuth.tsx rename to v1/helpers/withoutAuth.tsx diff --git a/hooks/getCookies.tsx b/v1/hooks/getCookies.tsx similarity index 100% rename from hooks/getCookies.tsx rename to v1/hooks/getCookies.tsx diff --git a/hooks/logout.tsx b/v1/hooks/logout.tsx similarity index 100% rename from hooks/logout.tsx rename to v1/hooks/logout.tsx diff --git a/hooks/use-media-query.ts b/v1/hooks/use-media-query.ts similarity index 100% rename from hooks/use-media-query.ts rename to v1/hooks/use-media-query.ts diff --git a/hooks/useAuthMutation.ts b/v1/hooks/useAuthMutation.ts similarity index 100% rename from hooks/useAuthMutation.ts rename to v1/hooks/useAuthMutation.ts diff --git a/hooks/useAuthQuery.ts b/v1/hooks/useAuthQuery.ts similarity index 100% rename from hooks/useAuthQuery.ts rename to v1/hooks/useAuthQuery.ts diff --git a/hooks/useDisclosure.tsx b/v1/hooks/useDisclosure.tsx similarity index 100% rename from hooks/useDisclosure.tsx rename to v1/hooks/useDisclosure.tsx diff --git a/hooks/useInputError.tsx b/v1/hooks/useInputError.tsx similarity index 100% rename from hooks/useInputError.tsx rename to v1/hooks/useInputError.tsx diff --git a/hooks/useRevalidate.ts b/v1/hooks/useRevalidate.ts similarity index 100% rename from hooks/useRevalidate.ts rename to v1/hooks/useRevalidate.ts diff --git a/hooks/useSession.tsx b/v1/hooks/useSession.tsx similarity index 100% rename from hooks/useSession.tsx rename to v1/hooks/useSession.tsx diff --git a/hooks/useVisible.tsx b/v1/hooks/useVisible.tsx similarity index 100% rename from hooks/useVisible.tsx rename to v1/hooks/useVisible.tsx diff --git a/hooks/useauth.ts b/v1/hooks/useauth.ts similarity index 100% rename from hooks/useauth.ts rename to v1/hooks/useauth.ts diff --git a/hooks/useisAuthenticated.ts b/v1/hooks/useisAuthenticated.ts similarity index 100% rename from hooks/useisAuthenticated.ts rename to v1/hooks/useisAuthenticated.ts diff --git a/http/AuthInstance.ts b/v1/http/AuthInstance.ts similarity index 100% rename from http/AuthInstance.ts rename to v1/http/AuthInstance.ts diff --git a/http/authapi.ts b/v1/http/authapi.ts similarity index 100% rename from http/authapi.ts rename to v1/http/authapi.ts diff --git a/http/axios.ts b/v1/http/axios.ts similarity index 100% rename from http/axios.ts rename to v1/http/axios.ts diff --git a/http/createeventapi.ts b/v1/http/createeventapi.ts similarity index 100% rename from http/createeventapi.ts rename to v1/http/createeventapi.ts diff --git a/http/dashBoard3api.tsx b/v1/http/dashBoard3api.tsx similarity index 100% rename from http/dashBoard3api.tsx rename to v1/http/dashBoard3api.tsx diff --git a/http/eventregistration.ts b/v1/http/eventregistration.ts similarity index 100% rename from http/eventregistration.ts rename to v1/http/eventregistration.ts diff --git a/http/events.ts b/v1/http/events.ts similarity index 100% rename from http/events.ts rename to v1/http/events.ts diff --git a/http/getToken.ts b/v1/http/getToken.ts similarity index 100% rename from http/getToken.ts rename to v1/http/getToken.ts diff --git a/http/index.ts b/v1/http/index.ts similarity index 100% rename from http/index.ts rename to v1/http/index.ts diff --git a/http/profileapi.ts b/v1/http/profileapi.ts similarity index 100% rename from http/profileapi.ts rename to v1/http/profileapi.ts diff --git a/http/settingsapi.ts b/v1/http/settingsapi.ts similarity index 100% rename from http/settingsapi.ts rename to v1/http/settingsapi.ts diff --git a/layout/Authlayout.tsx b/v1/layout/Authlayout.tsx similarity index 100% rename from layout/Authlayout.tsx rename to v1/layout/Authlayout.tsx diff --git a/layout/EventManagementLayout.tsx b/v1/layout/EventManagementLayout.tsx similarity index 100% rename from layout/EventManagementLayout.tsx rename to v1/layout/EventManagementLayout.tsx diff --git a/layout/Explorelayout.tsx b/v1/layout/Explorelayout.tsx similarity index 100% rename from layout/Explorelayout.tsx rename to v1/layout/Explorelayout.tsx diff --git a/layout/Homelayout.tsx b/v1/layout/Homelayout.tsx similarity index 100% rename from layout/Homelayout.tsx rename to v1/layout/Homelayout.tsx diff --git a/layout/Settingslayout.tsx b/v1/layout/Settingslayout.tsx similarity index 100% rename from layout/Settingslayout.tsx rename to v1/layout/Settingslayout.tsx diff --git a/modules/InputError.tsx b/v1/modules/InputError.tsx similarity index 100% rename from modules/InputError.tsx rename to v1/modules/InputError.tsx diff --git a/modules/home/Page/Mainsec.tsx b/v1/modules/home/Page/Mainsec.tsx similarity index 100% rename from modules/home/Page/Mainsec.tsx rename to v1/modules/home/Page/Mainsec.tsx diff --git a/modules/home/Page/home-v2.tsx b/v1/modules/home/Page/home-v2.tsx similarity index 100% rename from modules/home/Page/home-v2.tsx rename to v1/modules/home/Page/home-v2.tsx diff --git a/modules/home/Page/landPageV1/Hero.tsx b/v1/modules/home/Page/landPageV1/Hero.tsx similarity index 100% rename from modules/home/Page/landPageV1/Hero.tsx rename to v1/modules/home/Page/landPageV1/Hero.tsx diff --git a/modules/home/Page/landPageV1/HeroLeft.tsx b/v1/modules/home/Page/landPageV1/HeroLeft.tsx similarity index 100% rename from modules/home/Page/landPageV1/HeroLeft.tsx rename to v1/modules/home/Page/landPageV1/HeroLeft.tsx diff --git a/modules/home/Page/landPageV1/Right.tsx b/v1/modules/home/Page/landPageV1/Right.tsx similarity index 100% rename from modules/home/Page/landPageV1/Right.tsx rename to v1/modules/home/Page/landPageV1/Right.tsx diff --git a/modules/home/Page/landPageV1/Updated.tsx b/v1/modules/home/Page/landPageV1/Updated.tsx similarity index 100% rename from modules/home/Page/landPageV1/Updated.tsx rename to v1/modules/home/Page/landPageV1/Updated.tsx diff --git a/modules/home/Page/landPageV2/HeroLeft.tsx b/v1/modules/home/Page/landPageV2/HeroLeft.tsx similarity index 100% rename from modules/home/Page/landPageV2/HeroLeft.tsx rename to v1/modules/home/Page/landPageV2/HeroLeft.tsx diff --git a/modules/home/Page/landPageV2/HeroRight.tsx b/v1/modules/home/Page/landPageV2/HeroRight.tsx similarity index 100% rename from modules/home/Page/landPageV2/HeroRight.tsx rename to v1/modules/home/Page/landPageV2/HeroRight.tsx diff --git a/modules/home/Page/landPageV2/Landpage-v2.tsx b/v1/modules/home/Page/landPageV2/Landpage-v2.tsx similarity index 100% rename from modules/home/Page/landPageV2/Landpage-v2.tsx rename to v1/modules/home/Page/landPageV2/Landpage-v2.tsx diff --git a/modules/home/Page/landPageV2/updated2.tsx b/v1/modules/home/Page/landPageV2/updated2.tsx similarity index 100% rename from modules/home/Page/landPageV2/updated2.tsx rename to v1/modules/home/Page/landPageV2/updated2.tsx diff --git a/modules/home/Page/landPageV4/HeroLeft.tsx b/v1/modules/home/Page/landPageV4/HeroLeft.tsx similarity index 100% rename from modules/home/Page/landPageV4/HeroLeft.tsx rename to v1/modules/home/Page/landPageV4/HeroLeft.tsx diff --git a/modules/home/Page/landPageV4/HeroRight.tsx b/v1/modules/home/Page/landPageV4/HeroRight.tsx similarity index 100% rename from modules/home/Page/landPageV4/HeroRight.tsx rename to v1/modules/home/Page/landPageV4/HeroRight.tsx diff --git a/modules/home/Page/landPageV4/Landpage-v42.tsx b/v1/modules/home/Page/landPageV4/Landpage-v42.tsx similarity index 100% rename from modules/home/Page/landPageV4/Landpage-v42.tsx rename to v1/modules/home/Page/landPageV4/Landpage-v42.tsx diff --git a/modules/home/Page/landPageV4/updated4.tsx b/v1/modules/home/Page/landPageV4/updated4.tsx similarity index 100% rename from modules/home/Page/landPageV4/updated4.tsx rename to v1/modules/home/Page/landPageV4/updated4.tsx diff --git a/modules/home/PlainHeader/PlainHeader.tsx b/v1/modules/home/PlainHeader/PlainHeader.tsx similarity index 100% rename from modules/home/PlainHeader/PlainHeader.tsx rename to v1/modules/home/PlainHeader/PlainHeader.tsx diff --git a/modules/home/container/container.tsx b/v1/modules/home/container/container.tsx similarity index 100% rename from modules/home/container/container.tsx rename to v1/modules/home/container/container.tsx diff --git a/v1/next.config.js b/v1/next.config.js new file mode 100644 index 0000000..f693336 --- /dev/null +++ b/v1/next.config.js @@ -0,0 +1,11 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + env: { + NEXTAUTH_SECRET: 'evento', + }, + images: { + domains: ['res.cloudinary.com', 'example.com', 'images.unsplash.com', 'lh3.googleusercontent.com', 'img.evbuc.com'], + }, +}; + +module.exports = nextConfig; diff --git a/package-lock.json b/v1/package-lock.json similarity index 100% rename from package-lock.json rename to v1/package-lock.json diff --git a/package.json b/v1/package.json similarity index 98% rename from package.json rename to v1/package.json index c4ef518..cce909b 100644 --- a/package.json +++ b/v1/package.json @@ -11,7 +11,6 @@ "check-format": "prettier --check .", "check-lint": "eslint . --ext ts --ext tsx --ext js", "lint": "next lint && tsc --noEmit", - "postinstall": "husky install", "lint-staged": "lint-staged" }, "lint-staged": { diff --git a/pages/404.tsx b/v1/pages/404.tsx similarity index 100% rename from pages/404.tsx rename to v1/pages/404.tsx diff --git a/pages/_app.tsx b/v1/pages/_app.tsx similarity index 100% rename from pages/_app.tsx rename to v1/pages/_app.tsx diff --git a/pages/access-denied.tsx b/v1/pages/access-denied.tsx similarity index 100% rename from pages/access-denied.tsx rename to v1/pages/access-denied.tsx diff --git a/pages/api/auth/[...nextauth].ts b/v1/pages/api/auth/[...nextauth].ts similarity index 100% rename from pages/api/auth/[...nextauth].ts rename to v1/pages/api/auth/[...nextauth].ts diff --git a/pages/auth/forgetpassword.tsx b/v1/pages/auth/forgetpassword.tsx similarity index 100% rename from pages/auth/forgetpassword.tsx rename to v1/pages/auth/forgetpassword.tsx diff --git a/pages/auth/resetpassword.tsx b/v1/pages/auth/resetpassword.tsx similarity index 100% rename from pages/auth/resetpassword.tsx rename to v1/pages/auth/resetpassword.tsx diff --git a/pages/auth/sign-in.tsx b/v1/pages/auth/sign-in.tsx similarity index 100% rename from pages/auth/sign-in.tsx rename to v1/pages/auth/sign-in.tsx diff --git a/pages/auth/sign-up.tsx b/v1/pages/auth/sign-up.tsx similarity index 99% rename from pages/auth/sign-up.tsx rename to v1/pages/auth/sign-up.tsx index 117d84c..98a4eb8 100644 --- a/pages/auth/sign-up.tsx +++ b/v1/pages/auth/sign-up.tsx @@ -1,3 +1,6 @@ +// @ts-nocheck + + 'use client'; import { Input } from '@ui/NewInput'; diff --git a/pages/auth/verify.tsx b/v1/pages/auth/verify.tsx similarity index 100% rename from pages/auth/verify.tsx rename to v1/pages/auth/verify.tsx diff --git a/pages/create-events/[id].tsx b/v1/pages/create-events/[id].tsx similarity index 100% rename from pages/create-events/[id].tsx rename to v1/pages/create-events/[id].tsx diff --git a/pages/create-events/index.tsx b/v1/pages/create-events/index.tsx similarity index 100% rename from pages/create-events/index.tsx rename to v1/pages/create-events/index.tsx diff --git a/pages/dashboard/index.tsx b/v1/pages/dashboard/index.tsx similarity index 100% rename from pages/dashboard/index.tsx rename to v1/pages/dashboard/index.tsx diff --git a/pages/event-management/[...id].tsx b/v1/pages/event-management/[...id].tsx similarity index 100% rename from pages/event-management/[...id].tsx rename to v1/pages/event-management/[...id].tsx diff --git a/pages/event-management/[id].tsx b/v1/pages/event-management/[id].tsx similarity index 100% rename from pages/event-management/[id].tsx rename to v1/pages/event-management/[id].tsx diff --git a/pages/event-management/attendees/index.tsx b/v1/pages/event-management/attendees/index.tsx similarity index 100% rename from pages/event-management/attendees/index.tsx rename to v1/pages/event-management/attendees/index.tsx diff --git a/pages/event-management/event-overview/index.tsx b/v1/pages/event-management/event-overview/index.tsx similarity index 100% rename from pages/event-management/event-overview/index.tsx rename to v1/pages/event-management/event-overview/index.tsx diff --git a/pages/event-management/index.tsx b/v1/pages/event-management/index.tsx similarity index 100% rename from pages/event-management/index.tsx rename to v1/pages/event-management/index.tsx diff --git a/pages/event-management/participants/[id].tsx b/v1/pages/event-management/participants/[id].tsx similarity index 100% rename from pages/event-management/participants/[id].tsx rename to v1/pages/event-management/participants/[id].tsx diff --git a/pages/event-management/share-invites/index.tsx b/v1/pages/event-management/share-invites/index.tsx similarity index 100% rename from pages/event-management/share-invites/index.tsx rename to v1/pages/event-management/share-invites/index.tsx diff --git a/pages/event/[id].tsx b/v1/pages/event/[id].tsx similarity index 100% rename from pages/event/[id].tsx rename to v1/pages/event/[id].tsx diff --git a/pages/event/index.tsx b/v1/pages/event/index.tsx similarity index 100% rename from pages/event/index.tsx rename to v1/pages/event/index.tsx diff --git a/pages/eventdashboard3/index.tsx b/v1/pages/eventdashboard3/index.tsx similarity index 100% rename from pages/eventdashboard3/index.tsx rename to v1/pages/eventdashboard3/index.tsx diff --git a/pages/explore/index.tsx b/v1/pages/explore/index.tsx similarity index 100% rename from pages/explore/index.tsx rename to v1/pages/explore/index.tsx diff --git a/pages/index.tsx b/v1/pages/index.tsx similarity index 100% rename from pages/index.tsx rename to v1/pages/index.tsx diff --git a/pages/land3/index.tsx b/v1/pages/land3/index.tsx similarity index 100% rename from pages/land3/index.tsx rename to v1/pages/land3/index.tsx diff --git a/pages/loading/[token]/[userId].tsx b/v1/pages/loading/[token]/[userId].tsx similarity index 100% rename from pages/loading/[token]/[userId].tsx rename to v1/pages/loading/[token]/[userId].tsx diff --git a/pages/profile/edit/index.tsx b/v1/pages/profile/edit/index.tsx similarity index 100% rename from pages/profile/edit/index.tsx rename to v1/pages/profile/edit/index.tsx diff --git a/pages/profile/index.tsx b/v1/pages/profile/index.tsx similarity index 100% rename from pages/profile/index.tsx rename to v1/pages/profile/index.tsx diff --git a/pages/settings/data-and-security.tsx b/v1/pages/settings/data-and-security.tsx similarity index 100% rename from pages/settings/data-and-security.tsx rename to v1/pages/settings/data-and-security.tsx diff --git a/pages/settings/delete-account.tsx b/v1/pages/settings/delete-account.tsx similarity index 100% rename from pages/settings/delete-account.tsx rename to v1/pages/settings/delete-account.tsx diff --git a/pages/settings/index.tsx b/v1/pages/settings/index.tsx similarity index 100% rename from pages/settings/index.tsx rename to v1/pages/settings/index.tsx diff --git a/pages/settings/integrations.tsx b/v1/pages/settings/integrations.tsx similarity index 100% rename from pages/settings/integrations.tsx rename to v1/pages/settings/integrations.tsx diff --git a/pages/settings/notifications.tsx b/v1/pages/settings/notifications.tsx similarity index 100% rename from pages/settings/notifications.tsx rename to v1/pages/settings/notifications.tsx diff --git a/pages/settings/plans-and-billings.tsx b/v1/pages/settings/plans-and-billings.tsx similarity index 100% rename from pages/settings/plans-and-billings.tsx rename to v1/pages/settings/plans-and-billings.tsx diff --git a/pages/settings/preferences.tsx b/v1/pages/settings/preferences.tsx similarity index 100% rename from pages/settings/preferences.tsx rename to v1/pages/settings/preferences.tsx diff --git a/pages/style-guide.tsx b/v1/pages/style-guide.tsx similarity index 100% rename from pages/style-guide.tsx rename to v1/pages/style-guide.tsx diff --git a/public/app-store.svg b/v1/pages/verify-email/app-store.svg similarity index 100% rename from public/app-store.svg rename to v1/pages/verify-email/app-store.svg diff --git a/public/event-management/facebook.svg b/v1/pages/verify-email/facebook.svg similarity index 100% rename from public/event-management/facebook.svg rename to v1/pages/verify-email/facebook.svg diff --git a/public/g-play.svg b/v1/pages/verify-email/g-play.svg similarity index 100% rename from public/g-play.svg rename to v1/pages/verify-email/g-play.svg diff --git a/pages/verify-email/index.tsx b/v1/pages/verify-email/index.tsx similarity index 100% rename from pages/verify-email/index.tsx rename to v1/pages/verify-email/index.tsx diff --git a/public/event-management/instagram.svg b/v1/pages/verify-email/instagram.svg similarity index 100% rename from public/event-management/instagram.svg rename to v1/pages/verify-email/instagram.svg diff --git a/public/assets/linkedin.svg b/v1/pages/verify-email/linkedin.svg similarity index 100% rename from public/assets/linkedin.svg rename to v1/pages/verify-email/linkedin.svg diff --git a/public/logo.svg b/v1/pages/verify-email/logo.svg similarity index 100% rename from public/logo.svg rename to v1/pages/verify-email/logo.svg diff --git a/pages/verify-email/verify.html b/v1/pages/verify-email/verify.html similarity index 100% rename from pages/verify-email/verify.html rename to v1/pages/verify-email/verify.html diff --git a/public/event-management/x.svg b/v1/pages/verify-email/x.svg similarity index 100% rename from public/event-management/x.svg rename to v1/pages/verify-email/x.svg diff --git a/postcss.config.js b/v1/postcss.config.js similarity index 100% rename from postcss.config.js rename to v1/postcss.config.js diff --git a/public/Create-Events/$icon-line-upload.svg b/v1/public/Create-Events/$icon-line-upload.svg similarity index 100% rename from public/Create-Events/$icon-line-upload.svg rename to v1/public/Create-Events/$icon-line-upload.svg diff --git a/public/Create-Events/17924 1.png b/v1/public/Create-Events/17924 1.png similarity index 100% rename from public/Create-Events/17924 1.png rename to v1/public/Create-Events/17924 1.png diff --git a/public/Create-Events/Event_Image.svg b/v1/public/Create-Events/Event_Image.svg similarity index 100% rename from public/Create-Events/Event_Image.svg rename to v1/public/Create-Events/Event_Image.svg diff --git a/public/Home/404.svg b/v1/public/Home/404.svg similarity index 100% rename from public/Home/404.svg rename to v1/public/Home/404.svg diff --git a/public/Home/Access-denied.svg b/v1/public/Home/Access-denied.svg similarity index 100% rename from public/Home/Access-denied.svg rename to v1/public/Home/Access-denied.svg diff --git a/public/Home/Home1.png b/v1/public/Home/Home1.png similarity index 100% rename from public/Home/Home1.png rename to v1/public/Home/Home1.png diff --git a/public/Home/Home2.png b/v1/public/Home/Home2.png similarity index 100% rename from public/Home/Home2.png rename to v1/public/Home/Home2.png diff --git a/public/Home/Home3.png b/v1/public/Home/Home3.png similarity index 100% rename from public/Home/Home3.png rename to v1/public/Home/Home3.png diff --git a/public/Home/Home4.png b/v1/public/Home/Home4.png similarity index 100% rename from public/Home/Home4.png rename to v1/public/Home/Home4.png diff --git a/public/Home/Home5.png b/v1/public/Home/Home5.png similarity index 100% rename from public/Home/Home5.png rename to v1/public/Home/Home5.png diff --git a/public/Home/Socialicons/Apple.svg b/v1/public/Home/Socialicons/Apple.svg similarity index 100% rename from public/Home/Socialicons/Apple.svg rename to v1/public/Home/Socialicons/Apple.svg diff --git a/public/Home/Socialicons/Google.svg b/v1/public/Home/Socialicons/Google.svg similarity index 100% rename from public/Home/Socialicons/Google.svg rename to v1/public/Home/Socialicons/Google.svg diff --git a/public/Home/Socialicons/Vector (1).svg b/v1/public/Home/Socialicons/Vector (1).svg similarity index 100% rename from public/Home/Socialicons/Vector (1).svg rename to v1/public/Home/Socialicons/Vector (1).svg diff --git a/public/Home/Socialicons/Vector (2).svg b/v1/public/Home/Socialicons/Vector (2).svg similarity index 100% rename from public/Home/Socialicons/Vector (2).svg rename to v1/public/Home/Socialicons/Vector (2).svg diff --git a/public/Home/Socialicons/Vector (3).svg b/v1/public/Home/Socialicons/Vector (3).svg similarity index 100% rename from public/Home/Socialicons/Vector (3).svg rename to v1/public/Home/Socialicons/Vector (3).svg diff --git a/public/Home/Socialicons/Vector (4).svg b/v1/public/Home/Socialicons/Vector (4).svg similarity index 100% rename from public/Home/Socialicons/Vector (4).svg rename to v1/public/Home/Socialicons/Vector (4).svg diff --git a/public/Home/Socialicons/Vector.svg b/v1/public/Home/Socialicons/Vector.svg similarity index 100% rename from public/Home/Socialicons/Vector.svg rename to v1/public/Home/Socialicons/Vector.svg diff --git a/public/Home/Socialicons/facebook.svg b/v1/public/Home/Socialicons/facebook.svg similarity index 100% rename from public/Home/Socialicons/facebook.svg rename to v1/public/Home/Socialicons/facebook.svg diff --git a/public/Home/Socialicons/insta.svg b/v1/public/Home/Socialicons/insta.svg similarity index 100% rename from public/Home/Socialicons/insta.svg rename to v1/public/Home/Socialicons/insta.svg diff --git a/public/Home/Socialicons/link.svg b/v1/public/Home/Socialicons/link.svg similarity index 100% rename from public/Home/Socialicons/link.svg rename to v1/public/Home/Socialicons/link.svg diff --git a/public/Home/Socialicons/socialIcons.tsx b/v1/public/Home/Socialicons/socialIcons.tsx similarity index 100% rename from public/Home/Socialicons/socialIcons.tsx rename to v1/public/Home/Socialicons/socialIcons.tsx diff --git a/public/Home/Socialicons/twitter.svg b/v1/public/Home/Socialicons/twitter.svg similarity index 100% rename from public/Home/Socialicons/twitter.svg rename to v1/public/Home/Socialicons/twitter.svg diff --git a/public/Home/home1.svg b/v1/public/Home/home1.svg similarity index 100% rename from public/Home/home1.svg rename to v1/public/Home/home1.svg diff --git a/public/Home/home2.svg b/v1/public/Home/home2.svg similarity index 100% rename from public/Home/home2.svg rename to v1/public/Home/home2.svg diff --git a/public/Home/home3.svg b/v1/public/Home/home3.svg similarity index 100% rename from public/Home/home3.svg rename to v1/public/Home/home3.svg diff --git a/public/Home/home5.svg b/v1/public/Home/home5.svg similarity index 100% rename from public/Home/home5.svg rename to v1/public/Home/home5.svg diff --git a/public/Home/homev21.svg b/v1/public/Home/homev21.svg similarity index 100% rename from public/Home/homev21.svg rename to v1/public/Home/homev21.svg diff --git a/public/Home/homev22.svg b/v1/public/Home/homev22.svg similarity index 100% rename from public/Home/homev22.svg rename to v1/public/Home/homev22.svg diff --git a/public/Home/homev31.svg b/v1/public/Home/homev31.svg similarity index 100% rename from public/Home/homev31.svg rename to v1/public/Home/homev31.svg diff --git a/public/Home/homev32.svg b/v1/public/Home/homev32.svg similarity index 100% rename from public/Home/homev32.svg rename to v1/public/Home/homev32.svg diff --git a/pages/verify-email/app-store.svg b/v1/public/app-store.svg similarity index 99% rename from pages/verify-email/app-store.svg rename to v1/public/app-store.svg index 89cb0de..4ac5a83 100644 --- a/pages/verify-email/app-store.svg +++ b/v1/public/app-store.svg @@ -1,27 +1,27 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets/albert.svg b/v1/public/assets/albert.svg similarity index 100% rename from public/assets/albert.svg rename to v1/public/assets/albert.svg diff --git a/public/assets/app1.svg b/v1/public/assets/app1.svg similarity index 100% rename from public/assets/app1.svg rename to v1/public/assets/app1.svg diff --git a/public/assets/app2.svg b/v1/public/assets/app2.svg similarity index 100% rename from public/assets/app2.svg rename to v1/public/assets/app2.svg diff --git a/public/assets/app3.svg b/v1/public/assets/app3.svg similarity index 100% rename from public/assets/app3.svg rename to v1/public/assets/app3.svg diff --git a/public/assets/app4.svg b/v1/public/assets/app4.svg similarity index 100% rename from public/assets/app4.svg rename to v1/public/assets/app4.svg diff --git a/public/assets/app5.svg b/v1/public/assets/app5.svg similarity index 100% rename from public/assets/app5.svg rename to v1/public/assets/app5.svg diff --git a/public/assets/arrow-left.svg b/v1/public/assets/arrow-left.svg similarity index 100% rename from public/assets/arrow-left.svg rename to v1/public/assets/arrow-left.svg diff --git a/public/assets/arrow-right.svg b/v1/public/assets/arrow-right.svg similarity index 100% rename from public/assets/arrow-right.svg rename to v1/public/assets/arrow-right.svg diff --git a/public/assets/attend1.jpg b/v1/public/assets/attend1.jpg similarity index 100% rename from public/assets/attend1.jpg rename to v1/public/assets/attend1.jpg diff --git a/public/assets/attend2.jpg b/v1/public/assets/attend2.jpg similarity index 100% rename from public/assets/attend2.jpg rename to v1/public/assets/attend2.jpg diff --git a/public/assets/attend3.jpg b/v1/public/assets/attend3.jpg similarity index 100% rename from public/assets/attend3.jpg rename to v1/public/assets/attend3.jpg diff --git a/public/assets/attendee_dash1.svg b/v1/public/assets/attendee_dash1.svg similarity index 100% rename from public/assets/attendee_dash1.svg rename to v1/public/assets/attendee_dash1.svg diff --git a/public/assets/attendee_dash2.svg b/v1/public/assets/attendee_dash2.svg similarity index 100% rename from public/assets/attendee_dash2.svg rename to v1/public/assets/attendee_dash2.svg diff --git a/public/assets/avatar.png b/v1/public/assets/avatar.png similarity index 100% rename from public/assets/avatar.png rename to v1/public/assets/avatar.png diff --git a/public/assets/banner1.png b/v1/public/assets/banner1.png similarity index 100% rename from public/assets/banner1.png rename to v1/public/assets/banner1.png diff --git a/public/assets/banner2.png b/v1/public/assets/banner2.png similarity index 100% rename from public/assets/banner2.png rename to v1/public/assets/banner2.png diff --git a/public/assets/banner3.jpg b/v1/public/assets/banner3.jpg similarity index 100% rename from public/assets/banner3.jpg rename to v1/public/assets/banner3.jpg diff --git a/public/assets/date.svg b/v1/public/assets/date.svg similarity index 100% rename from public/assets/date.svg rename to v1/public/assets/date.svg diff --git a/public/assets/default-banner.jpg b/v1/public/assets/default-banner.jpg similarity index 100% rename from public/assets/default-banner.jpg rename to v1/public/assets/default-banner.jpg diff --git a/public/assets/edit-2.svg b/v1/public/assets/edit-2.svg similarity index 100% rename from public/assets/edit-2.svg rename to v1/public/assets/edit-2.svg diff --git a/public/assets/event2.png b/v1/public/assets/event2.png similarity index 100% rename from public/assets/event2.png rename to v1/public/assets/event2.png diff --git a/public/assets/eventDashboard3/avartarCards.svg b/v1/public/assets/eventDashboard3/avartarCards.svg similarity index 100% rename from public/assets/eventDashboard3/avartarCards.svg rename to v1/public/assets/eventDashboard3/avartarCards.svg diff --git a/public/assets/eventDashboard3/created.svg b/v1/public/assets/eventDashboard3/created.svg similarity index 100% rename from public/assets/eventDashboard3/created.svg rename to v1/public/assets/eventDashboard3/created.svg diff --git a/public/assets/eventDashboard3/past.svg b/v1/public/assets/eventDashboard3/past.svg similarity index 100% rename from public/assets/eventDashboard3/past.svg rename to v1/public/assets/eventDashboard3/past.svg diff --git a/public/assets/eventDashboard3/upcoming.svg b/v1/public/assets/eventDashboard3/upcoming.svg similarity index 100% rename from public/assets/eventDashboard3/upcoming.svg rename to v1/public/assets/eventDashboard3/upcoming.svg diff --git a/public/assets/event_dash1.svg b/v1/public/assets/event_dash1.svg similarity index 100% rename from public/assets/event_dash1.svg rename to v1/public/assets/event_dash1.svg diff --git a/public/assets/event_dash2.svg b/v1/public/assets/event_dash2.svg similarity index 100% rename from public/assets/event_dash2.svg rename to v1/public/assets/event_dash2.svg diff --git a/public/assets/event_dash3.svg b/v1/public/assets/event_dash3.svg similarity index 100% rename from public/assets/event_dash3.svg rename to v1/public/assets/event_dash3.svg diff --git a/public/assets/eventnphone.svg b/v1/public/assets/eventnphone.svg similarity index 100% rename from public/assets/eventnphone.svg rename to v1/public/assets/eventnphone.svg diff --git a/public/assets/facebook.svg b/v1/public/assets/facebook.svg similarity index 100% rename from public/assets/facebook.svg rename to v1/public/assets/facebook.svg diff --git a/public/assets/gridview-icon.svg b/v1/public/assets/gridview-icon.svg similarity index 100% rename from public/assets/gridview-icon.svg rename to v1/public/assets/gridview-icon.svg diff --git a/public/assets/hero-section-lagos.png b/v1/public/assets/hero-section-lagos.png similarity index 100% rename from public/assets/hero-section-lagos.png rename to v1/public/assets/hero-section-lagos.png diff --git a/public/assets/hero-section-tech.png b/v1/public/assets/hero-section-tech.png similarity index 100% rename from public/assets/hero-section-tech.png rename to v1/public/assets/hero-section-tech.png diff --git a/public/assets/hngevent.svg b/v1/public/assets/hngevent.svg similarity index 100% rename from public/assets/hngevent.svg rename to v1/public/assets/hngevent.svg diff --git a/pages/verify-email/linkedin.svg b/v1/public/assets/linkedin.svg similarity index 99% rename from pages/verify-email/linkedin.svg rename to v1/public/assets/linkedin.svg index bb846d0..bc36c53 100644 --- a/pages/verify-email/linkedin.svg +++ b/v1/public/assets/linkedin.svg @@ -1,10 +1,10 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/public/assets/listview-icon.svg b/v1/public/assets/listview-icon.svg similarity index 100% rename from public/assets/listview-icon.svg rename to v1/public/assets/listview-icon.svg diff --git a/public/assets/loc.svg b/v1/public/assets/loc.svg similarity index 100% rename from public/assets/loc.svg rename to v1/public/assets/loc.svg diff --git a/public/assets/locpointer.svg b/v1/public/assets/locpointer.svg similarity index 100% rename from public/assets/locpointer.svg rename to v1/public/assets/locpointer.svg diff --git a/public/assets/placeholder-image.webp b/v1/public/assets/placeholder-image.webp similarity index 100% rename from public/assets/placeholder-image.webp rename to v1/public/assets/placeholder-image.webp diff --git a/public/assets/portfolio.png b/v1/public/assets/portfolio.png similarity index 100% rename from public/assets/portfolio.png rename to v1/public/assets/portfolio.png diff --git a/public/assets/profile/Horizontal Card.png b/v1/public/assets/profile/Horizontal Card.png similarity index 100% rename from public/assets/profile/Horizontal Card.png rename to v1/public/assets/profile/Horizontal Card.png diff --git a/public/assets/profile/avatars.svg b/v1/public/assets/profile/avatars.svg similarity index 100% rename from public/assets/profile/avatars.svg rename to v1/public/assets/profile/avatars.svg diff --git a/public/assets/profile/calendarForDashboard.svg b/v1/public/assets/profile/calendarForDashboard.svg similarity index 100% rename from public/assets/profile/calendarForDashboard.svg rename to v1/public/assets/profile/calendarForDashboard.svg diff --git a/public/assets/profile/gridIcon.svg b/v1/public/assets/profile/gridIcon.svg similarity index 100% rename from public/assets/profile/gridIcon.svg rename to v1/public/assets/profile/gridIcon.svg diff --git a/public/assets/profile/icons.tsx b/v1/public/assets/profile/icons.tsx similarity index 100% rename from public/assets/profile/icons.tsx rename to v1/public/assets/profile/icons.tsx diff --git a/public/assets/profile/imageCard.svg b/v1/public/assets/profile/imageCard.svg similarity index 100% rename from public/assets/profile/imageCard.svg rename to v1/public/assets/profile/imageCard.svg diff --git a/public/assets/profile/sample.svg b/v1/public/assets/profile/sample.svg similarity index 100% rename from public/assets/profile/sample.svg rename to v1/public/assets/profile/sample.svg diff --git a/public/assets/profile/sampleCard.svg b/v1/public/assets/profile/sampleCard.svg similarity index 100% rename from public/assets/profile/sampleCard.svg rename to v1/public/assets/profile/sampleCard.svg diff --git a/public/assets/settings/basic-plan.svg b/v1/public/assets/settings/basic-plan.svg similarity index 100% rename from public/assets/settings/basic-plan.svg rename to v1/public/assets/settings/basic-plan.svg diff --git a/public/assets/settings/basic-plan_white.svg b/v1/public/assets/settings/basic-plan_white.svg similarity index 100% rename from public/assets/settings/basic-plan_white.svg rename to v1/public/assets/settings/basic-plan_white.svg diff --git a/public/assets/settings/dark-theme.svg b/v1/public/assets/settings/dark-theme.svg similarity index 100% rename from public/assets/settings/dark-theme.svg rename to v1/public/assets/settings/dark-theme.svg diff --git a/public/assets/settings/enterprise-plan.svg b/v1/public/assets/settings/enterprise-plan.svg similarity index 100% rename from public/assets/settings/enterprise-plan.svg rename to v1/public/assets/settings/enterprise-plan.svg diff --git a/public/assets/settings/enterprise-white.svg b/v1/public/assets/settings/enterprise-white.svg similarity index 100% rename from public/assets/settings/enterprise-white.svg rename to v1/public/assets/settings/enterprise-white.svg diff --git a/public/assets/settings/flash-white.svg b/v1/public/assets/settings/flash-white.svg similarity index 100% rename from public/assets/settings/flash-white.svg rename to v1/public/assets/settings/flash-white.svg diff --git a/public/assets/settings/help.png b/v1/public/assets/settings/help.png similarity index 100% rename from public/assets/settings/help.png rename to v1/public/assets/settings/help.png diff --git a/public/assets/settings/help.svg b/v1/public/assets/settings/help.svg similarity index 100% rename from public/assets/settings/help.svg rename to v1/public/assets/settings/help.svg diff --git a/public/assets/settings/light-theme.svg b/v1/public/assets/settings/light-theme.svg similarity index 100% rename from public/assets/settings/light-theme.svg rename to v1/public/assets/settings/light-theme.svg diff --git a/public/assets/settings/line.svg b/v1/public/assets/settings/line.svg similarity index 100% rename from public/assets/settings/line.svg rename to v1/public/assets/settings/line.svg diff --git a/public/assets/settings/logos_google-calendar.svg b/v1/public/assets/settings/logos_google-calendar.svg similarity index 100% rename from public/assets/settings/logos_google-calendar.svg rename to v1/public/assets/settings/logos_google-calendar.svg diff --git a/public/assets/settings/logos_google-meet.svg b/v1/public/assets/settings/logos_google-meet.svg similarity index 100% rename from public/assets/settings/logos_google-meet.svg rename to v1/public/assets/settings/logos_google-meet.svg diff --git a/public/assets/settings/logos_mastercard.svg b/v1/public/assets/settings/logos_mastercard.svg similarity index 100% rename from public/assets/settings/logos_mastercard.svg rename to v1/public/assets/settings/logos_mastercard.svg diff --git a/public/assets/settings/logos_paypal.svg b/v1/public/assets/settings/logos_paypal.svg similarity index 100% rename from public/assets/settings/logos_paypal.svg rename to v1/public/assets/settings/logos_paypal.svg diff --git a/public/assets/settings/logos_visa.svg b/v1/public/assets/settings/logos_visa.svg similarity index 100% rename from public/assets/settings/logos_visa.svg rename to v1/public/assets/settings/logos_visa.svg diff --git a/public/assets/settings/logos_zoom-icon.svg b/v1/public/assets/settings/logos_zoom-icon.svg similarity index 100% rename from public/assets/settings/logos_zoom-icon.svg rename to v1/public/assets/settings/logos_zoom-icon.svg diff --git a/public/assets/settings/premium-plan.svg b/v1/public/assets/settings/premium-plan.svg similarity index 100% rename from public/assets/settings/premium-plan.svg rename to v1/public/assets/settings/premium-plan.svg diff --git a/public/assets/settings/system-theme.svg b/v1/public/assets/settings/system-theme.svg similarity index 100% rename from public/assets/settings/system-theme.svg rename to v1/public/assets/settings/system-theme.svg diff --git a/public/assets/trash.svg b/v1/public/assets/trash.svg similarity index 100% rename from public/assets/trash.svg rename to v1/public/assets/trash.svg diff --git a/public/assets/twobox.png b/v1/public/assets/twobox.png similarity index 100% rename from public/assets/twobox.png rename to v1/public/assets/twobox.png diff --git a/public/assets/user.jpg b/v1/public/assets/user.jpg similarity index 100% rename from public/assets/user.jpg rename to v1/public/assets/user.jpg diff --git a/public/assets/vuesax/linear/filter.svg b/v1/public/assets/vuesax/linear/filter.svg similarity index 100% rename from public/assets/vuesax/linear/filter.svg rename to v1/public/assets/vuesax/linear/filter.svg diff --git a/public/assets/windowicon.png b/v1/public/assets/windowicon.png similarity index 100% rename from public/assets/windowicon.png rename to v1/public/assets/windowicon.png diff --git a/public/blob.svg b/v1/public/blob.svg similarity index 100% rename from public/blob.svg rename to v1/public/blob.svg diff --git a/public/brush.png b/v1/public/brush.png similarity index 100% rename from public/brush.png rename to v1/public/brush.png diff --git a/public/btmm2.svg b/v1/public/btmm2.svg similarity index 100% rename from public/btmm2.svg rename to v1/public/btmm2.svg diff --git a/public/close-circle.svg b/v1/public/close-circle.svg similarity index 100% rename from public/close-circle.svg rename to v1/public/close-circle.svg diff --git a/public/email.svg b/v1/public/email.svg similarity index 100% rename from public/email.svg rename to v1/public/email.svg diff --git a/public/event-management/calender.svg b/v1/public/event-management/calender.svg similarity index 100% rename from public/event-management/calender.svg rename to v1/public/event-management/calender.svg diff --git a/public/event-management/copy.svg b/v1/public/event-management/copy.svg similarity index 100% rename from public/event-management/copy.svg rename to v1/public/event-management/copy.svg diff --git a/public/event-management/edit-2.svg b/v1/public/event-management/edit-2.svg similarity index 100% rename from public/event-management/edit-2.svg rename to v1/public/event-management/edit-2.svg diff --git a/public/event-management/edit.svg b/v1/public/event-management/edit.svg similarity index 100% rename from public/event-management/edit.svg rename to v1/public/event-management/edit.svg diff --git a/pages/verify-email/facebook.svg b/v1/public/event-management/facebook.svg similarity index 98% rename from pages/verify-email/facebook.svg rename to v1/public/event-management/facebook.svg index ffe73b2..fcb749b 100644 --- a/pages/verify-email/facebook.svg +++ b/v1/public/event-management/facebook.svg @@ -1,11 +1,11 @@ - - - - - - - - - - - + + + + + + + + + + + diff --git a/public/event-management/frame1.svg b/v1/public/event-management/frame1.svg similarity index 100% rename from public/event-management/frame1.svg rename to v1/public/event-management/frame1.svg diff --git a/public/event-management/gallery-edit.svg b/v1/public/event-management/gallery-edit.svg similarity index 100% rename from public/event-management/gallery-edit.svg rename to v1/public/event-management/gallery-edit.svg diff --git a/pages/verify-email/instagram.svg b/v1/public/event-management/instagram.svg similarity index 99% rename from pages/verify-email/instagram.svg rename to v1/public/event-management/instagram.svg index f34cb14..c273ac4 100644 --- a/pages/verify-email/instagram.svg +++ b/v1/public/event-management/instagram.svg @@ -1,17 +1,17 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/public/event-management/location.svg b/v1/public/event-management/location.svg similarity index 100% rename from public/event-management/location.svg rename to v1/public/event-management/location.svg diff --git a/public/event-management/send-2.svg b/v1/public/event-management/send-2.svg similarity index 100% rename from public/event-management/send-2.svg rename to v1/public/event-management/send-2.svg diff --git a/pages/verify-email/x.svg b/v1/public/event-management/x.svg similarity index 99% rename from pages/verify-email/x.svg rename to v1/public/event-management/x.svg index 8b38f30..0d459db 100644 --- a/pages/verify-email/x.svg +++ b/v1/public/event-management/x.svg @@ -1,3 +1,3 @@ - - - + + + diff --git a/public/favicon.ico b/v1/public/favicon.ico similarity index 100% rename from public/favicon.ico rename to v1/public/favicon.ico diff --git a/pages/verify-email/g-play.svg b/v1/public/g-play.svg similarity index 99% rename from pages/verify-email/g-play.svg rename to v1/public/g-play.svg index b03c3ae..34219fb 100644 --- a/pages/verify-email/g-play.svg +++ b/v1/public/g-play.svg @@ -1,77 +1,77 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/google.svg b/v1/public/google.svg similarity index 100% rename from public/google.svg rename to v1/public/google.svg diff --git a/public/home3.svg b/v1/public/home3.svg similarity index 100% rename from public/home3.svg rename to v1/public/home3.svg diff --git a/public/homev4.svg b/v1/public/homev4.svg similarity index 100% rename from public/homev4.svg rename to v1/public/homev4.svg diff --git a/public/img/Earth.png b/v1/public/img/Earth.png similarity index 100% rename from public/img/Earth.png rename to v1/public/img/Earth.png diff --git a/public/img/abj.png b/v1/public/img/abj.png similarity index 100% rename from public/img/abj.png rename to v1/public/img/abj.png diff --git a/public/img/afronation.png b/v1/public/img/afronation.png similarity index 100% rename from public/img/afronation.png rename to v1/public/img/afronation.png diff --git a/public/img/arts.png b/v1/public/img/arts.png similarity index 100% rename from public/img/arts.png rename to v1/public/img/arts.png diff --git a/public/img/briefcase.png b/v1/public/img/briefcase.png similarity index 100% rename from public/img/briefcase.png rename to v1/public/img/briefcase.png diff --git a/public/img/business.png b/v1/public/img/business.png similarity index 100% rename from public/img/business.png rename to v1/public/img/business.png diff --git a/public/img/career.png b/v1/public/img/career.png similarity index 100% rename from public/img/career.png rename to v1/public/img/career.png diff --git a/public/img/charity.png b/v1/public/img/charity.png similarity index 100% rename from public/img/charity.png rename to v1/public/img/charity.png diff --git a/public/img/concert.png b/v1/public/img/concert.png similarity index 100% rename from public/img/concert.png rename to v1/public/img/concert.png diff --git a/public/img/enugu.png b/v1/public/img/enugu.png similarity index 100% rename from public/img/enugu.png rename to v1/public/img/enugu.png diff --git a/public/img/hngfinalist.png b/v1/public/img/hngfinalist.png similarity index 100% rename from public/img/hngfinalist.png rename to v1/public/img/hngfinalist.png diff --git a/public/img/lagos.png b/v1/public/img/lagos.png similarity index 100% rename from public/img/lagos.png rename to v1/public/img/lagos.png diff --git a/public/img/learning.png b/v1/public/img/learning.png similarity index 100% rename from public/img/learning.png rename to v1/public/img/learning.png diff --git a/public/img/movies.png b/v1/public/img/movies.png similarity index 100% rename from public/img/movies.png rename to v1/public/img/movies.png diff --git a/public/img/port.png b/v1/public/img/port.png similarity index 100% rename from public/img/port.png rename to v1/public/img/port.png diff --git a/public/img/sport.png b/v1/public/img/sport.png similarity index 100% rename from public/img/sport.png rename to v1/public/img/sport.png diff --git a/public/img/tech.png b/v1/public/img/tech.png similarity index 100% rename from public/img/tech.png rename to v1/public/img/tech.png diff --git a/public/img/user1.png b/v1/public/img/user1.png similarity index 100% rename from public/img/user1.png rename to v1/public/img/user1.png diff --git a/public/img/user2.png b/v1/public/img/user2.png similarity index 100% rename from public/img/user2.png rename to v1/public/img/user2.png diff --git a/public/img/user3.png b/v1/public/img/user3.png similarity index 100% rename from public/img/user3.png rename to v1/public/img/user3.png diff --git a/public/img/uyo.png b/v1/public/img/uyo.png similarity index 100% rename from public/img/uyo.png rename to v1/public/img/uyo.png diff --git a/public/img/warri.png b/v1/public/img/warri.png similarity index 100% rename from public/img/warri.png rename to v1/public/img/warri.png diff --git a/public/img/web3.png b/v1/public/img/web3.png similarity index 100% rename from public/img/web3.png rename to v1/public/img/web3.png diff --git a/public/land1.svg b/v1/public/land1.svg similarity index 100% rename from public/land1.svg rename to v1/public/land1.svg diff --git a/public/landpageimage.svg b/v1/public/landpageimage.svg similarity index 100% rename from public/landpageimage.svg rename to v1/public/landpageimage.svg diff --git a/public/logo.png b/v1/public/logo.png similarity index 100% rename from public/logo.png rename to v1/public/logo.png diff --git a/pages/verify-email/logo.svg b/v1/public/logo.svg similarity index 99% rename from pages/verify-email/logo.svg rename to v1/public/logo.svg index 1a58dad..6474d71 100644 --- a/pages/verify-email/logo.svg +++ b/v1/public/logo.svg @@ -1,3 +1,3 @@ - - - + + + diff --git a/public/mobile.svg b/v1/public/mobile.svg similarity index 100% rename from public/mobile.svg rename to v1/public/mobile.svg diff --git a/public/newhome.svg b/v1/public/newhome.svg similarity index 100% rename from public/newhome.svg rename to v1/public/newhome.svg diff --git a/public/next.svg b/v1/public/next.svg similarity index 100% rename from public/next.svg rename to v1/public/next.svg diff --git a/public/notification.svg b/v1/public/notification.svg similarity index 100% rename from public/notification.svg rename to v1/public/notification.svg diff --git a/public/profile.svg b/v1/public/profile.svg similarity index 100% rename from public/profile.svg rename to v1/public/profile.svg diff --git a/public/profileB.svg b/v1/public/profileB.svg similarity index 100% rename from public/profileB.svg rename to v1/public/profileB.svg diff --git a/public/search.svg b/v1/public/search.svg similarity index 100% rename from public/search.svg rename to v1/public/search.svg diff --git a/public/user.svg b/v1/public/user.svg similarity index 100% rename from public/user.svg rename to v1/public/user.svg diff --git a/public/vercel.svg b/v1/public/vercel.svg similarity index 100% rename from public/vercel.svg rename to v1/public/vercel.svg diff --git a/public/versionfour.svg b/v1/public/versionfour.svg similarity index 100% rename from public/versionfour.svg rename to v1/public/versionfour.svg diff --git a/public/versionone.svg b/v1/public/versionone.svg similarity index 100% rename from public/versionone.svg rename to v1/public/versionone.svg diff --git a/public/white.png b/v1/public/white.png similarity index 100% rename from public/white.png rename to v1/public/white.png diff --git a/scripts/mjmltoHtml.ts b/v1/scripts/mjmltoHtml.ts similarity index 100% rename from scripts/mjmltoHtml.ts rename to v1/scripts/mjmltoHtml.ts diff --git a/structure.txt b/v1/structure.txt similarity index 100% rename from structure.txt rename to v1/structure.txt diff --git a/styles/globals.css b/v1/styles/globals.css similarity index 100% rename from styles/globals.css rename to v1/styles/globals.css diff --git a/styles/nprogress.css b/v1/styles/nprogress.css similarity index 100% rename from styles/nprogress.css rename to v1/styles/nprogress.css diff --git a/tailwind.config.ts b/v1/tailwind.config.ts similarity index 100% rename from tailwind.config.ts rename to v1/tailwind.config.ts diff --git a/text.txt b/v1/text.txt similarity index 100% rename from text.txt rename to v1/text.txt diff --git a/v1/tsconfig.json b/v1/tsconfig.json new file mode 100644 index 0000000..283a164 --- /dev/null +++ b/v1/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./*"], + "@ui/*": ["./components/ui/*"], + "@modules/*": ["./modules/*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/utils/sendMail.ts b/v1/utils/sendMail.ts similarity index 100% rename from utils/sendMail.ts rename to v1/utils/sendMail.ts diff --git a/utils/text-effect.ts b/v1/utils/text-effect.ts similarity index 100% rename from utils/text-effect.ts rename to v1/utils/text-effect.ts diff --git a/utils/time.ts b/v1/utils/time.ts similarity index 100% rename from utils/time.ts rename to v1/utils/time.ts diff --git a/utils/twcx.ts b/v1/utils/twcx.ts similarity index 100% rename from utils/twcx.ts rename to v1/utils/twcx.ts diff --git a/v2/next.config.mjs b/v2/next.config.mjs index 875b351..bf22d25 100644 --- a/v2/next.config.mjs +++ b/v2/next.config.mjs @@ -7,6 +7,7 @@ const nextConfig = { remotePatterns: [ { hostname: 'lh3.googleusercontent.com' }, { hostname: 'ui-avatars.com' }, + { hostname: "res.cloudinary.com" } ] }, } diff --git a/v2/package-lock.json b/v2/package-lock.json index ab1c2f9..3d8b6b8 100644 --- a/v2/package-lock.json +++ b/v2/package-lock.json @@ -10,10 +10,12 @@ "dependencies": { "@hookform/resolvers": "^3.3.4", "@radix-ui/react-label": "^2.0.2", + "@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-slot": "^1.0.2", "axios": "^1.6.7", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", + "date-fns": "^3.3.1", "iconsax-react": "^0.0.8", "jwt-decode": "^4.0.0", "lucide-react": "^0.335.0", @@ -21,6 +23,7 @@ "next-auth": "^5.0.0-beta.13", "prettier": "^3.2.5", "react": "^18", + "react-day-picker": "^8.10.0", "react-dom": "^18", "react-hook-form": "^7.50.1", "react-icons": "^5.0.1", @@ -757,6 +760,40 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@floating-ui/core": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.0.tgz", + "integrity": "sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==", + "dependencies": { + "@floating-ui/utils": "^0.2.1" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.3.tgz", + "integrity": "sha512-RnDthu3mzPlQ31Ss/BTwQ1zjzIhr3lk1gZB1OC56h/1vEtaXkESrOqL5fQVMfXpwGtRwX+YsZBdyHtJMQnkArw==", + "dependencies": { + "@floating-ui/core": "^1.0.0", + "@floating-ui/utils": "^0.2.0" + } + }, + "node_modules/@floating-ui/react-dom": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.8.tgz", + "integrity": "sha512-HOdqOt3R3OGeTKidaLvJKcgg75S6tibQ3Tif4eyd91QnIJWr0NLvoXFpJA/j8HqkFSL68GDca9AuyWEHlhyClw==", + "dependencies": { + "@floating-ui/dom": "^1.6.1" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.1.tgz", + "integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==" + }, "node_modules/@hookform/resolvers": { "version": "3.3.4", "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-3.3.4.tgz", @@ -1080,6 +1117,37 @@ "node": ">=14" } }, + "node_modules/@radix-ui/primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.0.1.tgz", + "integrity": "sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==", + "dependencies": { + "@babel/runtime": "^7.13.10" + } + }, + "node_modules/@radix-ui/react-arrow": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.0.3.tgz", + "integrity": "sha512-wSP+pHsB/jQRaL6voubsQ/ZlrGBHHrOjmBnr19hxYgtS0WvAFwZhK2WP/YY5yF9uKECCEEDGxuLxq1NBK51wFA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-primitive": "1.0.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-compose-refs": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz", @@ -1097,6 +1165,110 @@ } } }, + "node_modules/@radix-ui/react-context": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.1.tgz", + "integrity": "sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dismissable-layer": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz", + "integrity": "sha512-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-use-callback-ref": "1.0.1", + "@radix-ui/react-use-escape-keydown": "1.0.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-guards": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.0.1.tgz", + "integrity": "sha512-Rect2dWbQ8waGzhMavsIbmSVCgYxkXLxxR3ZvCX79JOglzdEy4JXMb98lq4hPxUbLr77nP0UOGf4rcMU+s1pUA==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-scope": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.4.tgz", + "integrity": "sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-use-callback-ref": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-id": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.1.tgz", + "integrity": "sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-use-layout-effect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-label": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.0.2.tgz", @@ -1120,6 +1292,122 @@ } } }, + "node_modules/@radix-ui/react-popover": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.0.7.tgz", + "integrity": "sha512-shtvVnlsxT6faMnK/a7n0wptwBD23xc1Z5mdrtKLwVEfsEMXodS0r5s0/g5P0hX//EKYZS2sxUjqfzlg52ZSnQ==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-context": "1.0.1", + "@radix-ui/react-dismissable-layer": "1.0.5", + "@radix-ui/react-focus-guards": "1.0.1", + "@radix-ui/react-focus-scope": "1.0.4", + "@radix-ui/react-id": "1.0.1", + "@radix-ui/react-popper": "1.1.3", + "@radix-ui/react-portal": "1.0.4", + "@radix-ui/react-presence": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-slot": "1.0.2", + "@radix-ui/react-use-controllable-state": "1.0.1", + "aria-hidden": "^1.1.1", + "react-remove-scroll": "2.5.5" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.1.3.tgz", + "integrity": "sha512-cKpopj/5RHZWjrbF2846jBNacjQVwkP068DfmgrNJXpvVWrOvlAmE9xSiy5OqeE+Gi8D9fP+oDhUnPqNMY8/5w==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@floating-ui/react-dom": "^2.0.0", + "@radix-ui/react-arrow": "1.0.3", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-context": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-use-callback-ref": "1.0.1", + "@radix-ui/react-use-layout-effect": "1.0.1", + "@radix-ui/react-use-rect": "1.0.1", + "@radix-ui/react-use-size": "1.0.1", + "@radix-ui/rect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-portal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.0.4.tgz", + "integrity": "sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-primitive": "1.0.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-presence": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.0.1.tgz", + "integrity": "sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-use-layout-effect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-primitive": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.3.tgz", @@ -1161,6 +1449,120 @@ } } }, + "node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.1.tgz", + "integrity": "sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-controllable-state": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.1.tgz", + "integrity": "sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-use-callback-ref": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-escape-keydown": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.3.tgz", + "integrity": "sha512-vyL82j40hcFicA+M4Ex7hVkB9vHgSse1ZWomAqV2Je3RleKGO5iM8KMOEtfoSB0PnIelMd2lATjTGMYqN5ylTg==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-use-callback-ref": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.1.tgz", + "integrity": "sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-rect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.0.1.tgz", + "integrity": "sha512-Cq5DLuSiuYVKNU8orzJMbl15TXilTnJKUCltMVQg53BQOF1/C5toAaGrowkgksdBQ9H+SRL23g0HDmg9tvmxXw==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/rect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-size": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.0.1.tgz", + "integrity": "sha512-ibay+VqrgcaI6veAojjofPATwledXiSmX+C0KrBk/xgpX9rBzPV3OsfwlhQdUOFbh+LKQorLYT+xTXW9V8yd0g==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-use-layout-effect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/rect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.0.1.tgz", + "integrity": "sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" + } + }, "node_modules/@rushstack/eslint-patch": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.7.2.tgz", @@ -1490,6 +1892,17 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, + "node_modules/aria-hidden": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.3.tgz", + "integrity": "sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/aria-query": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", @@ -2193,6 +2606,15 @@ "node": ">= 12" } }, + "node_modules/date-fns": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.3.1.tgz", + "integrity": "sha512-y8e109LYGgoQDveiEBD3DYXKba1jWf5BA8YU1FL5Tvm0BTdEfy54WLCwnuYWZNnzzvALy/QQ4Hov+Q9RVRv+Zw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -2272,6 +2694,11 @@ "node": ">=6" } }, + "node_modules/detect-node-es": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz", + "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==" + }, "node_modules/didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", @@ -3253,6 +3680,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-nonce": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz", + "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==", + "engines": { + "node": ">=6" + } + }, "node_modules/get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", @@ -3611,6 +4046,14 @@ "node": ">= 0.4" } }, + "node_modules/invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, "node_modules/is-arguments": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", @@ -5278,6 +5721,19 @@ "node": ">=0.10.0" } }, + "node_modules/react-day-picker": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-8.10.0.tgz", + "integrity": "sha512-mz+qeyrOM7++1NCb1ARXmkjMkzWVh2GL9YiPbRjKe0zHccvekk4HE+0MPOZOrosn8r8zTHIIeOUXTmXRqmkRmg==", + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/gpbl" + }, + "peerDependencies": { + "date-fns": "^2.28.0 || ^3.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/react-dom": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", @@ -5318,6 +5774,73 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, + "node_modules/react-remove-scroll": { + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz", + "integrity": "sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==", + "dependencies": { + "react-remove-scroll-bar": "^2.3.3", + "react-style-singleton": "^2.2.1", + "tslib": "^2.1.0", + "use-callback-ref": "^1.3.0", + "use-sidecar": "^1.1.2" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/react-remove-scroll-bar": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.5.tgz", + "integrity": "sha512-3cqjOqg6s0XbOjWvmasmqHch+RLxIEk2r/70rzGXuz3iIGQsQheEQyqYCBb5EECoD01Vo2SIbDqW4paLeLTASw==", + "dependencies": { + "react-style-singleton": "^2.2.1", + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/react-style-singleton": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.1.tgz", + "integrity": "sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==", + "dependencies": { + "get-nonce": "^1.0.0", + "invariant": "^2.2.4", + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", @@ -6426,6 +6949,47 @@ "punycode": "^2.1.0" } }, + "node_modules/use-callback-ref": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.1.tgz", + "integrity": "sha512-Lg4Vx1XZQauB42Hw3kK7JM6yjVjgFmFC5/Ab797s79aARomD2nEErc4mCgM8EZrARLmmbWpi5DGCadmK50DcAQ==", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/use-sidecar": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.2.tgz", + "integrity": "sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==", + "dependencies": { + "detect-node-es": "^1.1.0", + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/util": { "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", diff --git a/v2/package.json b/v2/package.json index baadfc2..e4f06ec 100644 --- a/v2/package.json +++ b/v2/package.json @@ -11,10 +11,12 @@ "dependencies": { "@hookform/resolvers": "^3.3.4", "@radix-ui/react-label": "^2.0.2", + "@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-slot": "^1.0.2", "axios": "^1.6.7", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", + "date-fns": "^3.3.1", "iconsax-react": "^0.0.8", "jwt-decode": "^4.0.0", "lucide-react": "^0.335.0", @@ -22,6 +24,7 @@ "next-auth": "^5.0.0-beta.13", "prettier": "^3.2.5", "react": "^18", + "react-day-picker": "^8.10.0", "react-dom": "^18", "react-hook-form": "^7.50.1", "react-icons": "^5.0.1", diff --git a/v2/public/arrow.svg b/v2/public/arrow.svg new file mode 100644 index 0000000..996d3ca --- /dev/null +++ b/v2/public/arrow.svg @@ -0,0 +1,27 @@ + + + + + \ No newline at end of file diff --git a/v2/public/facemoji.png b/v2/public/facemoji.png new file mode 100644 index 0000000..6511949 Binary files /dev/null and b/v2/public/facemoji.png differ diff --git a/v2/src/actions/auth.ts b/v2/src/actions/auth.ts index 0ea9b0c..2f8fd06 100644 --- a/v2/src/actions/auth.ts +++ b/v2/src/actions/auth.ts @@ -1,11 +1,9 @@ 'use server'; import Calls from './calls'; -import { jwtDecode } from 'jwt-decode'; import { cookies } from 'next/headers'; import { ForgetPasswordSchema, LoginSchema, SignupSchema } from '@/schemas'; import * as z from 'zod'; -import { UserDetails } from '@/types'; const cookie = cookies(); const BaseUrl = process.env.BASEURL ?? 'https://evento-qo6d.onrender.com/api/v1'; @@ -43,7 +41,7 @@ export const register = async (values: z.infer) => { }; export const login = async (values: z.infer) => { - console.log(values); + const validatedFields = LoginSchema.safeParse(values); if (!validatedFields.success) { diff --git a/v2/src/actions/calls.ts b/v2/src/actions/calls.ts index 65ca7bf..427bcc0 100644 --- a/v2/src/actions/calls.ts +++ b/v2/src/actions/calls.ts @@ -5,8 +5,10 @@ import { cookies } from 'next/headers'; const Calls = ( baseURL: string | undefined = 'https://evento-qo6d.onrender.com/api/v1', - authorization?: string, + authorization: boolean = false, ): AxiosInstance => { + const authToken = cookies()?.get('access_token')?.value; + return axios.create({ baseURL, timeout: 300000, @@ -17,7 +19,7 @@ const Calls = ( 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS', Connection: 'keep-alive', credentials: 'include', - Authorization: authorization || '', + Authorization: authorization ? `Bearer ${authToken}` : undefined, }, withCredentials: true, }); diff --git a/v2/src/actions/expore.ts b/v2/src/actions/expore.ts new file mode 100644 index 0000000..c7c60e9 --- /dev/null +++ b/v2/src/actions/expore.ts @@ -0,0 +1,88 @@ +'use server'; + +import Calls from './calls'; + +const BaseUrl = process.env.BASEURL ?? 'https://evento-qo6d.onrender.com/api/v1'; + +const $http = Calls(BaseUrl); + +export const allevent = async () => { + try { + const res = await $http.get('/events'); + if (res.status === 200) { + return { + status: 'success', + events: res.data.data, + }; + } + } catch (e: any) { + console.log(e); + if (e?.response?.status === 403) { + return { + error: 'Forbidden', + }; + } else if (e?.response?.status === 404) { + return { + error: 'Not Found. The requested endpoint was not found.', + }; + } else { + return { + error: 'An error occurred. Please try again later.', + }; + } + } +}; + +export const allcategories = async () => { + try { + const res = await $http.get('/categories'); + if (res.status === 200) { + return { + status: 'success', + categories: res.data.data, + }; + } + } catch (e: any) { + console.log(e); + if (e?.response?.status === 403) { + return { + error: 'Forbidden', + }; + } else if (e?.response?.status === 404) { + return { + error: 'Not Found. The requested endpoint was not found.', + }; + } else { + return { + error: 'An error occurred. Please try again later.', + }; + } + } +}; + +export const geteventsbycategories = async (categoryID: string) => { + try { + const res = await $http.get(`/categories/${categoryID}/events`); + if (res.status === 200) { + return { + status: 'success', + events: res.data.data, + }; + } + } catch (e: any) { + console.log(e); + if (e?.response?.status === 403) { + return { + error: 'Forbidden', + }; + } else if (e?.response?.status === 404) { + return { + error: 'Not Found. The requested endpoint was not found.', + }; + } else { + return { + error: 'An error occurred. Please try again later.', + }; + } + } +}; diff --git a/v2/src/actions/notifications.ts b/v2/src/actions/notifications.ts new file mode 100644 index 0000000..849d824 --- /dev/null +++ b/v2/src/actions/notifications.ts @@ -0,0 +1,48 @@ +'use server'; + +import Calls from './calls'; +import { cookies } from 'next/headers'; + +const BaseUrl = process.env.BASEURL ?? 'https://evento-qo6d.onrender.com/api/v1'; + +const $http = Calls(BaseUrl, true); + +export const getNotifications = async () => { + const userId = cookies()?.get('userId')?.value; + + if (!userId) { + return { + error: 'Unauthorized. Missing access token.', + status: 401, + }; + } + try { + const res = await $http.get(`/notifications/${userId}`); + if (res.status === 200) { + return { + status: 'success', + notifications: res.data.data, + }; + } + } catch (e: any) { + console.log(e); + if (e?.response?.status === 401) { + return { + error: 'Unauthorized. Please check your access token.', + status: 401, + }; + } else if (e?.response?.status === 403) { + return { + error: 'Forbidden', + }; + } else if (e?.response?.status === 404) { + return { + error: 'Not Found. The requested endpoint was not found.', + }; + } else { + return { + error: 'An error occurred. Please try again later.', + }; + } + } +}; diff --git a/v2/src/actions/user.ts b/v2/src/actions/user.ts new file mode 100644 index 0000000..2733151 --- /dev/null +++ b/v2/src/actions/user.ts @@ -0,0 +1,49 @@ +'use server'; + +import Calls from './calls'; +import { cookies } from 'next/headers'; + +const BaseUrl = process.env.BASEURL ?? 'https://evento-qo6d.onrender.com/api/v1'; + +const $http = Calls(BaseUrl, true); + +export const getUser = async () => { + const userId = cookies()?.get('userId')?.value; + + if (!userId) { + return { + error: 'Unauthorized. Missing access token.', + status: 401, + }; + } + + try { + const res = await $http.get(`/user/${userId}`); + if (res.status === 200) { + return { + status: 'success', + user: res.data.data, + }; + } + } catch (e: any) { + console.log(e); + if (e?.response?.status === 401) { + return { + error: 'Unauthorized. Please check your access token.', + status: 401, + }; + } else if (e?.response?.status === 403) { + return { + error: 'Forbidden', + }; + } else if (e?.response?.status === 404) { + return { + error: 'Not Found. The requested endpoint was not found.', + }; + } else { + return { + error: 'An error occurred. Please try again later.', + }; + } + } +}; diff --git a/v2/src/app/(home)/explore/page.tsx b/v2/src/app/(home)/explore/page.tsx new file mode 100644 index 0000000..a784ac0 --- /dev/null +++ b/v2/src/app/(home)/explore/page.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import Hero from '@/modules/explore/Hero'; +import Categories from '@/modules/explore/Categories'; +import EventsGrid from '@/modules/explore/EventsGrid'; + +const Explore = () => { + return ( + <> + + + + + ); +}; + +export default Explore; diff --git a/v2/src/app/(home)/template.tsx b/v2/src/app/(home)/template.tsx index a45e57e..f72e837 100644 --- a/v2/src/app/(home)/template.tsx +++ b/v2/src/app/(home)/template.tsx @@ -1,18 +1,17 @@ -'use client'; - import React from 'react'; import HomeFooter from '@/components/home/Footer'; import NavBar from '@/components/home/NavBar'; import NavBarAuthenticated from '@/components/Header/NavBarAuthenticated'; -import { CheckAuthFromLocalStorage } from '@/helpers/auth'; +import { cookies } from 'next/headers'; export default function GeneralTemplate({ children }: { children: React.ReactNode }) { - const Authenticated = CheckAuthFromLocalStorage(); + const isLoggedin = cookies().has('access_token'); + console.log('LOGGED IN?: ', isLoggedin); return ( <> - {Authenticated ? : } + {isLoggedin ? : } {children} - {!Authenticated && } + {!isLoggedin && } ); } diff --git a/v2/src/app/layout.tsx b/v2/src/app/layout.tsx index 859c76a..10ce235 100644 --- a/v2/src/app/layout.tsx +++ b/v2/src/app/layout.tsx @@ -1,11 +1,13 @@ import type { Metadata } from 'next'; import '../styles/globals.scss'; -import { nunito, montserrat, workSans } from '../fonts'; +import { nunito, montserrat, workSans, chelsea } from '../fonts'; import { AuthContextProvider } from '@/context/AuthContext'; import ThemeProvider from '@/context/ThemeCtx'; import Theme from '@/components/ThemeButton'; import StateCtxProvider from '@/context/StateCtx'; import { SessionProvider } from 'next-auth/react'; +import UserContextProvider from '@/context/UserCtx'; +import ExploreContextProvider from '@/context/ExploreCtx'; export const metadata: Metadata = { title: 'Evento', @@ -20,16 +22,20 @@ export default function RootLayout({ return ( - - - {children} - - - + + + + + {children} + + + + + diff --git a/v2/src/app/not-found.tsx b/v2/src/app/not-found.tsx index 60c3de7..be96733 100644 --- a/v2/src/app/not-found.tsx +++ b/v2/src/app/not-found.tsx @@ -13,6 +13,7 @@ const NotFound = () => { const title = `Oops! this page is Gone`; const text = `Sorry we can't find this page`; const btnText = `Back to homepage`; + const router = useRouter(); return ( <> @@ -54,7 +55,7 @@ const NotFound = () => { */} + + + + + ); +}; + +export default ProfileDropDown; diff --git a/v2/src/components/Forms/Login.tsx b/v2/src/components/Forms/Login.tsx index c48e0b5..6392be7 100644 --- a/v2/src/components/Forms/Login.tsx +++ b/v2/src/components/Forms/Login.tsx @@ -44,7 +44,6 @@ const Login = () => { setError(data?.error); if (data?.success) { console.log('User came from signIn'); - localStorage.setItem('authenticated', 'true'); setTimeout(() => { setSuccess('Redirecting....'); }, 1000); diff --git a/v2/src/components/Header/NavBarAuthenticated.tsx b/v2/src/components/Header/NavBarAuthenticated.tsx index aa30d80..0196d0a 100644 --- a/v2/src/components/Header/NavBarAuthenticated.tsx +++ b/v2/src/components/Header/NavBarAuthenticated.tsx @@ -1,7 +1,75 @@ +'use client'; + import React from 'react'; +import Image from 'next/image'; +import Link from 'next/link'; +import { Add, Notification, CloseSquare, HambergerMenu } from 'iconsax-react'; +import { useRouter } from 'next/navigation'; +import { useUserCtx } from '@/context/UserCtx'; +import { useStateCtx } from '@/context/StateCtx'; +import { cn } from '@/utils'; +import ProfileDropDown from '../DropDowns/ProfileDropDown'; const NavBarAuthenticated = () => { - return
NavBarAuthenticated
; + const { user } = useUserCtx(); + const { OpenNotification, setOpenNotification, OpenProfile, setOpenProfile } = useStateCtx(); + + return ( +
+ + {OpenProfile && } +
+ ); }; export default NavBarAuthenticated; diff --git a/v2/src/components/Loaders/Spinner.tsx b/v2/src/components/Loaders/Spinner.tsx new file mode 100644 index 0000000..a77dcec --- /dev/null +++ b/v2/src/components/Loaders/Spinner.tsx @@ -0,0 +1,27 @@ +import { cn } from '@/utils'; + +type Props = { + color?: string; + innerColor?: string; +}; +const LoadingSpinner = ({ color, innerColor }: Props) => ( +
+
+ +
+
+); + +export default LoadingSpinner; diff --git a/v2/src/components/skelton/ExploreCardSkel.tsx b/v2/src/components/skelton/ExploreCardSkel.tsx new file mode 100644 index 0000000..58b80fc --- /dev/null +++ b/v2/src/components/skelton/ExploreCardSkel.tsx @@ -0,0 +1,30 @@ +import { cn } from '@/utils'; +import React from 'react'; + +const ExploreCardSkel = () => { + return ( + <> +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + ); +}; + +export default ExploreCardSkel; diff --git a/v2/src/components/ui/button.tsx b/v2/src/components/ui/button.tsx index 3b837a2..7f017f6 100644 --- a/v2/src/components/ui/button.tsx +++ b/v2/src/components/ui/button.tsx @@ -3,7 +3,7 @@ import { VariantProps, cva } from 'class-variance-authority'; import { twMerge } from 'tailwind-merge'; import Link from 'next/link'; -const buttonVariants = cva( +export const buttonVariants = cva( 'relative px-4 py-3 flex items-center justify-center gap-5 w-fit h-[48px] rounded-[16px] text-white-100', { variants: { diff --git a/v2/src/components/ui/calendar.tsx b/v2/src/components/ui/calendar.tsx new file mode 100644 index 0000000..900e2c8 --- /dev/null +++ b/v2/src/components/ui/calendar.tsx @@ -0,0 +1,66 @@ +"use client" + +import * as React from "react" +import { ChevronLeft, ChevronRight } from "lucide-react" +import { DayPicker } from "react-day-picker" + +import { cn } from "@/utils/index" +import { buttonVariants } from "@/components/ui/button" + +export type CalendarProps = React.ComponentProps + +function Calendar({ + className, + classNames, + showOutsideDays = true, + ...props +}: CalendarProps) { + return ( + , + IconRight: ({ ...props }) => , + }} + {...props} + /> + ) +} +Calendar.displayName = "Calendar" + +export { Calendar } diff --git a/v2/src/components/ui/popover.tsx b/v2/src/components/ui/popover.tsx new file mode 100644 index 0000000..e2ca0f6 --- /dev/null +++ b/v2/src/components/ui/popover.tsx @@ -0,0 +1,31 @@ +"use client" + +import * as React from "react" +import * as PopoverPrimitive from "@radix-ui/react-popover" + +import { cn } from "@/utils/index" + +const Popover = PopoverPrimitive.Root + +const PopoverTrigger = PopoverPrimitive.Trigger + +const PopoverContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, align = "center", sideOffset = 4, ...props }, ref) => ( + + + +)) +PopoverContent.displayName = PopoverPrimitive.Content.displayName + +export { Popover, PopoverTrigger, PopoverContent } diff --git a/v2/src/context/ExploreCtx.tsx b/v2/src/context/ExploreCtx.tsx new file mode 100644 index 0000000..2a4c98d --- /dev/null +++ b/v2/src/context/ExploreCtx.tsx @@ -0,0 +1,131 @@ +'use client'; + +import React, { SetStateAction, createContext, useContext, useLayoutEffect, useMemo, useState } from 'react'; +import { EventProps, CategoryProps } from '@/types'; +import { allevent, allcategories, geteventsbycategories } from '@/actions/expore'; + +// Add Your Props here +interface ExploreContextProps { + events: EventProps[]; + setevents: React.Dispatch>; + eventsSearchTerm: string; + seteventsSearchTerm: React.Dispatch>; + categories: CategoryProps[]; + setcategories: React.Dispatch>; + catLoading: boolean; + setcatLoading: React.Dispatch>; + eventsLoading: boolean; + seteventsLoading: React.Dispatch>; + selectedcategories: string; + setSelectedcategories: React.Dispatch>; +} + +export const ExploreContext = createContext({} as ExploreContextProps); + +const ExploreContextProvider = ({ children }: { children: React.ReactNode }) => { + const [events, setevents] = useState([] as EventProps[]); + const [eventsSearchTerm, seteventsSearchTerm] = useState(''); + const [categories, setcategories] = useState([] as CategoryProps[]); + const [catLoading, setcatLoading] = useState(false); + const [eventsLoading, seteventsLoading] = useState(false); + const [selectedcategories, setSelectedcategories] = useState('all'); + + useLayoutEffect(() => { + const fetchUserData = async () => { + try { + setcatLoading(true); + const cat = await allcategories(); + if (cat?.status === 'success') { + console.log(cat.categories); + setcategories(cat.categories); + } else { + } + } catch (err) { + console.log(err); + } finally { + setcatLoading(false); + } + }; + + fetchUserData(); + }, [categories]); + + // useLayoutEffect(() => { + // const fetchEvents = async () => { + // try { + // seteventsLoading(true); + // const events = await allevent(); + // if (events?.status === 'success') { + // console.log(events.events); + // setevents(events.events); + // } else { + // } + // } catch (err) { + // console.log(err); + // } finally { + // seteventsLoading(false); + // } + // }; + + // fetchEvents(); + // }, [events]); + useLayoutEffect(() => { + const fetchEvents = async () => { + try { + seteventsLoading(true); + + if (selectedcategories === 'all') { + // Fetch all events only when it is all + const allEventsResult = await allevent(); + if (allEventsResult?.status === 'success') { + setevents(allEventsResult.events); + } + } else { + // Fetch events by selected category + const eventsByCategoryResult = await geteventsbycategories(selectedcategories); + if (eventsByCategoryResult?.status === 'success') { + setevents(eventsByCategoryResult.events); + } + } + } catch (err) { + console.log(err); + } finally { + seteventsLoading(false); + } + }; + + fetchEvents(); + }, [selectedcategories]); + + const value = useMemo( + () => ({ + events, + setevents, + eventsSearchTerm, + seteventsSearchTerm, + categories, + setcategories, + catLoading, + setcatLoading, + eventsLoading, + seteventsLoading, + selectedcategories, + setSelectedcategories, + }), + [events, eventsSearchTerm, categories, selectedcategories], + ); + + return {children}; +}; + +// Call this function whenever you want to use the context +export const useExploreCtx = () => { + const ctx = useContext(ExploreContext); + + if (!ctx) { + throw new Error('useExploreCtx must be used within a ExploreContextProvider'); + } + return ctx; +}; + +export default ExploreContextProvider; diff --git a/v2/src/context/StateCtx.tsx b/v2/src/context/StateCtx.tsx index 2f49053..22435b0 100644 --- a/v2/src/context/StateCtx.tsx +++ b/v2/src/context/StateCtx.tsx @@ -5,12 +5,22 @@ import { createContext, useContext, useState, Dispatch, SetStateAction, useEffec interface StateContextProps { openMenu: boolean; setopenMenu: Dispatch>; + OpenNotification: boolean; + setOpenNotification: Dispatch>; + OpenProfile: boolean; + setOpenProfile: Dispatch>; } const StateContext = createContext(undefined); const StateCtxProvider = ({ children }: { children: React.ReactNode }) => { const [openMenu, setopenMenu] = useState(false); + const [OpenNotification, setOpenNotification] = useState(false); + const [OpenProfile, setOpenProfile] = useState(false); + + const isMobileDevice = () => { + return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator?.userAgent); + }; useEffect(() => { const t = '%c Made By \ud83d\udc9a - HNGX I10 ', @@ -27,7 +37,10 @@ const StateCtxProvider = ({ children }: { children: React.ReactNode }) => { console.log(t, n); }, []); - const value = useMemo(() => ({ openMenu, setopenMenu }), [openMenu]); + const value = useMemo( + () => ({ openMenu, setopenMenu, OpenNotification, setOpenNotification, OpenProfile, setOpenProfile }), + [openMenu, OpenNotification, OpenProfile], + ); return {children}; }; diff --git a/v2/src/context/UserCtx.tsx b/v2/src/context/UserCtx.tsx new file mode 100644 index 0000000..a6a198c --- /dev/null +++ b/v2/src/context/UserCtx.tsx @@ -0,0 +1,75 @@ +'use client'; + +import React, { SetStateAction, createContext, useContext, useLayoutEffect, useMemo, useState } from 'react'; +import { User } from '@/types'; +import { useSession } from 'next-auth/react'; +import { getUser } from '@/actions/user'; +import { useRouter } from 'next/navigation'; +import { DEFAULT_REVALIDATE_REDIRECT } from '@/routes'; + +// Add Your Props here +interface UserContextProps { + user: User; + setUser: React.Dispatch>; +} + +export const UserContext = createContext({} as UserContextProps); + +const UserContextProvider = ({ children }: { children: React.ReactNode }) => { + const initialUserDataState: User = { + userID: '', + email: '', + bio: '', + socialLinks: [], + profileImage: '/facemoji.png', + displayName: '', + firstName: '', + lastName: '', + slug: '', + role: '', + location: '', + coverImage: '', + isVerified: false, + }; + // Add Your State(s) Here + const { data: session } = useSession(); + const router = useRouter(); + const [user, setUser] = useState(initialUserDataState); + + useLayoutEffect(() => { + const fetchUserData = async () => { + try { + const user = await getUser(); + + if (user?.status === 'success') { + console.log('User came from Backend'); + // console.log(user.user); + setUser(user.user); + } else if (user?.status === 401) { + router.push(DEFAULT_REVALIDATE_REDIRECT); + } else { + } + } catch (err) {} + }; + + fetchUserData(); + }, [user]); + + console.log(user); + + const value = useMemo(() => ({ user, setUser }), [user]); + + return {children}; +}; + +// Call this function whenever you want to use the context +export const useUserCtx = () => { + const ctx = useContext(UserContext); + + if (!ctx) { + throw new Error('useUserCtx must be used within a UserContextProvider'); + } + return ctx; +}; + +export default UserContextProvider; diff --git a/v2/src/hooks/useVisible.ts b/v2/src/hooks/useVisible.ts new file mode 100644 index 0000000..0a3d895 --- /dev/null +++ b/v2/src/hooks/useVisible.ts @@ -0,0 +1,22 @@ +import React, { useState, useEffect, useRef } from 'react'; + +function useVisible() { + const [isVisible, setIsVisible] = useState(false); + const ref = useRef(null); + + const handleClickOutside = (event: MouseEvent) => { + if (ref.current && !ref.current.contains(event.target as Node | null)) { + setIsVisible(false); + } + }; + + useEffect(() => { + document.addEventListener('click', handleClickOutside, true); + return () => { + document.removeEventListener('click', handleClickOutside, true); + }; + }, []); + return { ref, isVisible, setIsVisible }; +} + +export default useVisible; diff --git a/v2/src/modules/explore/Categories.tsx b/v2/src/modules/explore/Categories.tsx new file mode 100644 index 0000000..488a78a --- /dev/null +++ b/v2/src/modules/explore/Categories.tsx @@ -0,0 +1,77 @@ +'use client'; + +import React from 'react'; +import { useExploreCtx } from '@/context/ExploreCtx'; +import { IoFootballOutline } from 'react-icons/io5'; +import { CiBasketball } from 'react-icons/ci'; +import { FaVolleyballBall, FaTableTennis } from 'react-icons/fa'; +import { GiBoxingGlove, GiWeightLiftingUp } from 'react-icons/gi'; +import { TbPlayHandball, TbSwimming } from 'react-icons/tb'; +import { MdOutlineSportsRugby, MdOutlineGolfCourse, MdSportsCricket, MdOutlineSportsTennis } from 'react-icons/md'; +import { IoBicycle } from 'react-icons/io5'; +import { RiSailboatFill } from 'react-icons/ri'; +import { GrRun } from 'react-icons/gr'; +import Button from '@/components/ui/button'; +import { cn } from '@/utils'; + +const Categories = () => { + const catergoryIcon = [ + { name: 'Basketball', icon: }, + { name: 'Table Tennis', icon: }, + { name: 'Volleyball', icon: }, + { name: 'Wrestling', icon: }, + { name: 'Cricket', icon: }, + { name: 'Handball', icon: }, + { name: 'Weightlifting', icon: }, + { name: 'Badminton', icon: }, + { name: 'Taekwondo', icon: }, + { name: 'Judo', icon: }, + { name: 'Tennis', icon: }, + { name: 'Swimming', icon: }, + { name: 'Rugby', icon: }, + { name: 'Cycling', icon: }, + { name: 'Golf', icon: }, + { name: 'Dambe', icon: }, + { name: 'Canoeing', icon: }, + { name: 'Football', icon: }, + { name: 'Athletics', icon: }, + { name: 'Boxing', icon: }, + ]; + + const getCategoryIcon = (categoryTitle: string) => { + const category = catergoryIcon.find((cat) => cat.name === categoryTitle); + return category ? category.icon : ; + }; + + const { categories, setSelectedcategories } = useExploreCtx(); + return ( +
+
+

+ Category +

+
+ {categories.map((category) => ( + + ))} +
+
+
+ ); +}; + +export default Categories; diff --git a/v2/src/modules/explore/EventsGrid.tsx b/v2/src/modules/explore/EventsGrid.tsx new file mode 100644 index 0000000..7520457 --- /dev/null +++ b/v2/src/modules/explore/EventsGrid.tsx @@ -0,0 +1,64 @@ +'use client'; + +import { useState, Suspense } from 'react'; +import { useExploreCtx } from '@/context/ExploreCtx'; +import ExploreCard from '@/components/Cards/ExploreCard'; +import ExploreCardSkel from '@/components/skelton/ExploreCardSkel'; +import Button from '@/components/ui/button'; +import { cn } from '@/utils'; + +const EventsGrid = () => { + const [limit, setLimit] = useState(6); + const { events, eventsSearchTerm } = useExploreCtx(); + + // Filter events based on the search term + const filteredEvents = events.filter( + (event) => eventsSearchTerm === '' || event.title!.toLowerCase().includes(eventsSearchTerm.toLowerCase()), + ); + + const hasSearchResults = filteredEvents.length > 0; + return ( + <> +
+ Discover +

Popular Events

+
+ + {filteredEvents.length} + +

+ {hasSearchResults ? `Search Result${filteredEvents.length > 1 ? 's' : ''} for` : 'No Results for'}{' '} + "{eventsSearchTerm}" +

+
+
+ {filteredEvents.slice(0, limit).map((event) => ( + }> + + + ))} +
+ {limit < events.length && ( + + )} +
+ + ); +}; + +export default EventsGrid; diff --git a/v2/src/modules/explore/Hero.tsx b/v2/src/modules/explore/Hero.tsx new file mode 100644 index 0000000..4721da0 --- /dev/null +++ b/v2/src/modules/explore/Hero.tsx @@ -0,0 +1,89 @@ +'use client'; + +import React from 'react'; +import { cn } from '@/utils'; +import Image from 'next/image'; +import { useExploreCtx } from '@/context/ExploreCtx'; +import { FormInput } from '@/components/ui/FormInput'; +import { SearchNormal } from 'iconsax-react'; +import { X } from 'lucide-react'; + + +const Hero = () => { + const { seteventsSearchTerm, eventsSearchTerm } = useExploreCtx(); + return ( +
+
+
+ + + + + +

+ Finding Events Have Never been{' '} + Easier +

+

+ Embark on a journey of personalized event discovery with Evento's unique recommendation engine. As you + scroll through the Explore Page, immerse yourself in a finely curated feed of events meticulously crafted to + align seamlessly with your individual preferences, location, and favorite categories. +

+
+
+
+ seteventsSearchTerm(e.target.value)} + value={eventsSearchTerm} + type="text" + placeholder="Search via events name..." + className=" mt-1 mb-3 p-[16px] w-full text-black h-[60px] border text-md font-medium rounded-md font-Worksans" + /> + {eventsSearchTerm.length === 0 && ( + + + + )} +
+ + +
+
+
+ ); +}; + +export default Hero; diff --git a/v2/src/routes.ts b/v2/src/routes.ts index 8d77c1d..20fe804 100644 --- a/v2/src/routes.ts +++ b/v2/src/routes.ts @@ -3,3 +3,9 @@ * @type {string} */ export const DEFAULT_LOGIN_REDIRECT = '/dashboard'; + +/** + * The default redirect when user is not authenticated + * @type {string} + */ +export const DEFAULT_REVALIDATE_REDIRECT = '/auth/sign-in'; diff --git a/v2/src/styles/globals.scss b/v2/src/styles/globals.scss index cbb047f..192eacf 100644 --- a/v2/src/styles/globals.scss +++ b/v2/src/styles/globals.scss @@ -25,6 +25,11 @@ background: #e0580c; } +.dark ::selection { + color: rgb(201, 191, 2); + background: #011724; +} + #parent { position: relative !important; } @@ -64,3 +69,10 @@ transform: scale(1); } } + + +.card-shadow { + box-shadow: + 0px 1px 2px 0px rgba(16, 24, 40, 0.06), + 0px 1px 3px 0px rgba(16, 24, 40, 0.1); +} \ No newline at end of file diff --git a/v2/src/types/index.d.ts b/v2/src/types/index.d.ts index bb7894d..91cae07 100644 --- a/v2/src/types/index.d.ts +++ b/v2/src/types/index.d.ts @@ -56,113 +56,72 @@ export interface UploadParams { file: File; } -export interface EventPayload { - title: string; - description: string; - imageURL: string; - startDate: string; - endDate: string; - locationType: 'Physical' | 'Virtual'; - location?: string; - virtualLocationLink?: string; - time?: string; - capacity: number; - eventType: string; - organizerID: string; - categoryName: string; - ticketType: string; - ticketPrice: number; - entranceFee?: number; - ticketID?: string; -} - -export interface EventParticipant { - userID: string; - email: string; - profileImage: string | null; - firstName: string; - lastName: string; -} - -export interface EventsProps { - eventID: string; - title: string; - description: string; - imageURL: string; - startDate: string; - endDate: string; - time: string; - location: string; - capacity: number; - entranceFee: number; - eventType: string; - organizerID: string; - categoryCategoryID: string; - participants: EventParticipant[]; - tickets: { - ticketID: string; - ticketPrice: number; - ticketType: string; - }[]; -} - -export interface UserProfile2 { +export interface User { userID?: string; email?: string; bio?: string; - - profileImage?: string | Blob | File; + socialLinks?: socialLinks[]; + profileImage?: string; displayName?: string; firstName?: string; lastName?: string; slug?: string; role?: string; location?: string; + coverImage?: string; + isVerified?: boolean; } -export interface UserProfile { - userID: string; - email: string; - bio: string; - coverImage?: string; +export interface Notification { + id: number; + text: string; + read: boolean; + date: string; +} - profileImage: string; - displayName: string; - firstName: string; - lastName: string; - slug: string; - role: string; - location: string; +export interface NotificationsProps { + unreadNotifications: (count: number) => void; + notificationsRef: React.RefObject; + notifications: NotificationProps[]; } -export interface socialLinks { - facebookURL?: string; - instagramURL?: string; - twitterURL?: string; - websiteURL?: string; + +interface Participant { + userID?: string; + email?: string; + profileImage?: string; + firstName?: string; + lastName?: string; } -export type participantType = { - userID: string; - email: string; - profileImage: string | null; - firstName: string; - lastName: string; -}; +interface Ticket { + ticketID: string; + ticketType: string; + ticketPrice: number; +} -export type eventType = { +export interface EventProps { eventID?: string; + eventSlug?: string; title?: string; description?: string; imageURL?: string; - startDate: string; + startDate?: string; endDate?: string; - time?: string; + locationType?: string; location?: string; - locationType: string; + virtualLocationLink?: string; capacity?: number; - entranceFee?: number; - eventType?: string; - organizerID: string; + organizerID?: string; categoryCategoryID?: string; - participants?: participantType[]; -}; \ No newline at end of file + participants?: Participant[]; + Category?: { + categoryID?: string; + name?: string; + }; + tickets?: Ticket[]; +} + +export interface CategoryProps { + categoryID: string; + name: string; +} diff --git a/v2/src/utils/index.ts b/v2/src/utils/index.ts index d084cca..9825477 100644 --- a/v2/src/utils/index.ts +++ b/v2/src/utils/index.ts @@ -1,6 +1,36 @@ -import { type ClassValue, clsx } from "clsx" -import { twMerge } from "tailwind-merge" +import { type ClassValue, clsx } from 'clsx'; +import { twMerge } from 'tailwind-merge'; export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)) + return twMerge(clsx(inputs)); +} + +/** + * Convert a UTC date string to local time and return an array of formatted date and time parts. + * + * @param {string} utcDateString - The input UTC date string. + * @returns {string[]} - An array containing formatted date and time parts. + */ + +export function convertUTCtoLocalTime(utcDateString: string): string[] { + const utcDate = new Date(utcDateString); + const localDate = new Date(utcDate.getTime() + utcDate.getTimezoneOffset() * 60000); + + // Options for formatting the date and time + const options: Intl.DateTimeFormatOptions = { + weekday: 'short', + year: 'numeric', + month: 'short', + day: 'numeric', + hour: 'numeric', + minute: 'numeric', + second: 'numeric', + timeZoneName: 'short', + }; + + // Format the local date and time and split into an array + const formattedTime: string[] = localDate.toLocaleString('en-US', options).split(', '); + + // Return the array containing formatted date and time parts + return formattedTime; }