-
Notifications
You must be signed in to change notification settings - Fork 34
Fix #12: added a home/ user onboarding page #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #12: added a home/ user onboarding page #45
Conversation
- added images and code snippets for clear understanding - explained certain aspects for beginners. Closes bsoc-bitbyte#33
- added revised header and footer designs as per figma - added sems and branches - removed user stories for a cleaner design and ux Closes bsoc-bitbyte#12
|
How did the checks run without me approving them lol ? |
|
anywhoo looking into the pr and reviewing soon, nice work @LightCreator1007 |
ritankarsaha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these chnages were on your earlier pr too, just a thought did your make this pr branch from an earlier branch and not from main. ?
| { path: '/' }, | ||
| { path: '/home' }, | ||
| { path: '/branch/:branchId' }, | ||
| { path: '/branch/:branchId/semester/:semesterId' }, | ||
| { path: '/branch/:branchId/semester/:semesterId/subject/:subjectId' }, | ||
| { path: '/admin' }, | ||
| { path: '/login' }, | ||
| { path: '/signup' } | ||
| { path: "/" }, | ||
| { path: "/home" }, | ||
| { path: "/branch/:branchId" }, | ||
| { path: "/branch/:branchId/semester/:semesterId" }, | ||
| { path: "/branch/:branchId/semester/:semesterId/subject/:subjectId" }, | ||
| { path: "/admin" }, | ||
| { path: "/login" }, | ||
| { path: "/signup" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol 🙂
| import Loading from './utils/Global-Loading/Loading'; | ||
| import useRouteProgress from './hooks/useRouteProgress.js'; | ||
| import './styles/nprogress-custom.css'; | ||
| const LandingPage = lazy(() => import('./pages/landingPage/LandingPage')); | ||
| const Home = lazy(() => import('./pages/Home')); | ||
| const Branch = lazy(() => import('./pages/Branch')); | ||
| const Semester = lazy(() => import('./pages/Semester')); | ||
| const Subject = lazy(() => import('./pages/Subject')); | ||
| const AdminDashboard = lazy(() => import('./pages/AdminDashboard')); | ||
| const NotFound = lazy(() => import('./pages/404/NotFound')); | ||
| const LoginPage = lazy(() => import('./pages/Login/Login')); | ||
| const SignUp = lazy(() => import('./pages/SignUp/SignUp')); | ||
| import Loading from "./utils/Global-Loading/Loading"; | ||
| import useRouteProgress from "./hooks/useRouteProgress.js"; | ||
| import "./styles/nprogress-custom.css"; | ||
| const LandingPage = lazy(() => import("./pages/landingPage/LandingPage")); | ||
| const Home = lazy(() => import("./pages/Home/Home.jsx")); | ||
| const Branch = lazy(() => import("./pages/Branch")); | ||
| const Semester = lazy(() => import("./pages/Semester")); | ||
| const Subject = lazy(() => import("./pages/Subject")); | ||
| const AdminDashboard = lazy(() => import("./pages/AdminDashboard")); | ||
| const NotFound = lazy(() => import("./pages/404/NotFound")); | ||
| const LoginPage = lazy(() => import("./pages/Login/Login")); | ||
| const SignUp = lazy(() => import("./pages/SignUp/SignUp")); | ||
|
|
||
| import Header from './components/Header/Header'; | ||
| import Footer from './components/Footer/Footer'; | ||
| import Header from "./components/Header/Header"; | ||
| import Footer from "./components/Footer/Footer"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😑
| { path: '/' }, | ||
| { path: '/home' }, | ||
| { path: '/branch/:branchId' }, | ||
| { path: '/branch/:branchId/semester/:semesterId' }, | ||
| { path: '/branch/:branchId/semester/:semesterId/subject/:subjectId' }, | ||
| { path: '/admin' }, | ||
| { path: '/login' }, | ||
| { path: '/signup' } | ||
| { path: "/" }, | ||
| { path: "/home" }, | ||
| { path: "/branch/:branchId" }, | ||
| { path: "/branch/:branchId/semester/:semesterId" }, | ||
| { path: "/branch/:branchId/semester/:semesterId/subject/:subjectId" }, | ||
| { path: "/admin" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did u change the quotes lol ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My formatter fr sorry...
|
|
||
| const location = useLocation(); | ||
| const matched = matchRoutes(routes, location.pathname); | ||
| const is404 = !matched; | ||
|
|
||
| useRouteProgress(); | ||
| const location = useLocation(); | ||
| const matched = matchRoutes(routes, location.pathname); | ||
| const is404 = !matched; | ||
|
|
||
| useRouteProgress(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
un-necessary whitespace changes makes your PR very clouded and hard to review. Pls take care from next time.
| return ( | ||
| <> | ||
| {!is404 && <Header />} | ||
| <main className="main-content"> | ||
| <Suspense fallback={<Loading />}> | ||
| <Routes> | ||
| <Route path="/home" element={<Home />} /> | ||
| <Route path="/" element={<LandingPage />} /> | ||
| <Route path="/branch/:branchId" element={<Branch />} /> | ||
| <Route path="/branch/:branchId/semester/:semesterId" element={<Semester />} /> | ||
| <Route path="/branch/:branchId/semester/:semesterId/subject/:subjectId" element={<Subject />} /> | ||
| <Route path="/admin" element={<AdminDashboard />} /> | ||
| <Route path="/login" element={<LoginPage />} /> | ||
| <Route path="/signup" element={<SignUp />} /> | ||
| <Route path="*" element={<NotFound />}/> | ||
| </Routes> | ||
| </Suspense> | ||
| </main> | ||
| {!is404 && <Footer />} | ||
| </> | ||
| ); | ||
| return ( | ||
| <> | ||
| {!is404 && <Header />} | ||
| <main className="main-content"> | ||
| <Suspense fallback={<Loading />}> | ||
| <Routes> | ||
| <Route path="/home" element={<Home />} /> | ||
| <Route path="/" element={<LandingPage />} /> | ||
| <Route path="/branch/:branchId" element={<Branch />} /> | ||
| <Route | ||
| path="/branch/:branchId/semester/:semesterId" | ||
| element={<Semester />} | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are literally un-necessary, as Git shows whitespace changes as well, I now have to go through all these un-necessary whitespace updates to find and review the proper update.
Pls take care next time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry😭
| --primary-accent: rgba(198, 213, 255, 1); | ||
| --secondary-accent: rgba(20, 45, 111, 1); | ||
| --tertiary-accent: rgba(255, 255, 255, 1); | ||
| --nav-accent: rgba(255, 255, 255, 0.8); | ||
| font-family: 'Urbanist', Avenir, Helvetica, Arial, sans-serif; | ||
| --primary-accent: rgba(198, 213, 255, 1); | ||
| --secondary-accent: rgba(20, 45, 111, 1); | ||
| --tertiary-accent: rgba(255, 255, 255, 1); | ||
| --nav-accent: rgba(255, 255, 255, 0.8); | ||
| font-family: "Urbanist", Avenir, Helvetica, Arial, sans-serif; | ||
| } | ||
|
|
||
| *, ::before, ::after { | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| *, | ||
| ::before, | ||
| ::after { | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
|
|
||
|
|
||
| html { | ||
| scrollbar-width: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CSS updates is to be checked by @harshiill but ig they are mostly ok
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| padding: 10px 27px; | ||
| gap: 10px; | ||
| width: 183px; | ||
| height: 44px; | ||
| background: var(--secondary-accent); | ||
| box-shadow: 0 5px 9px 2px rgba(0, 0, 0, 0.25); | ||
| border-radius: 35px; | ||
| color: white; | ||
| margin: 1rem auto; | ||
| transition: transform 0.3s ease; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| padding: 10px 27px; | ||
| gap: 10px; | ||
| width: 183px; | ||
| height: 44px; | ||
| background: var(--secondary-accent); | ||
| box-shadow: 0 5px 9px 2px rgba(0, 0, 0, 0.25); | ||
| border-radius: 35px; | ||
| color: white; | ||
| margin: 1rem auto; | ||
| transition: transform 0.3s ease; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from next pr pls take note of all un-necessary whitespace updates
…boarding Fix bsoc-bitbyte#12: added a home/ user onboarding page
No I needed to make some changes to the header and footer stuff coz the main page layout and figma layout for those are a but different |
Overview
Essential Checklist
Proof that changes are correct
exambudHome.mp4