Skip to content

Conversation

@JhansiMatcha
Copy link

@JhansiMatcha JhansiMatcha commented Feb 13, 2025

PR Description

Created a Profile Page featuring:

Personal Information Display: Shows name, branch, college, and an about section.
Connect Feature: Allows users to connect with others.
Course List: Displays a list of courses associated with the user.
Discussion Page Link: Provides navigation to the discussion page.
Settings Section: For additional user preferences.
Edit Option: Users can edit and update their profile details.
Updated Navbar: Added a link to the profile page in the navbar.
UI Enhancements: Includes smooth hover effects and transitions.

image

Discussion Page:

Frontend Implementation: Designed and developed the basic frontend features for the discussion page.
Commenting Feature: Allows users to make comment .

image

College Templates UI (New Update)

Implemented a UI for College Templates to categorize and display different colleges.
Categories include IITs, NITs, IIITs, and Other Colleges.
Navigation: Clicking on a category leads to a separate page containing colleges under that specific category.
Card-Based UI: Each category is represented using a responsive card layout with smooth hover effects.

image
The backend will be fixed soon so that on adding the colleges which aren't present can be stored as well.

@gunjjoshi
Copy link
Collaborator

Screenshot 2025-02-20 at 00 42 44

Thanks for working on this, @JhansiMatcha! Seems like there is something wrong with the proposed changes in this PR. These changes give a blank screen for the Profile page, as can be seen in the image.
Can you verify this from your end once?

@JhansiMatcha
Copy link
Author

@gunjjoshi
This was working fine from my side, I have made a check by running this on others pc too.
I have made a new update (clg templates UI)....can you pull them and check if the new one is working or not.. so that I can get an idea..if problem is with the profile code that I've written or something else. Could you please check it once more and let me know?

<Image
className="rounded-full"
src={photoURL}
src={photoURL || '/default-profile.jpg'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JhansiMatcha We do not have this default picture yet in the public folder yet.

const logout = async () => {
try {
await signOut(firebaseAuth);
await signOut(auth);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JhansiMatcha Was there any particular reason for using the variable name from firebaseAuth to auth?


try {
const res = await signInWithPopup(firebaseAuth, provider);
const res = await signInWithPopup(auth, provider);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment here and everywhere else in this file, regarding the use of auth instead of firebaseAuth.

Comment on lines 77 to 81
const { picture, name, isAdmin } = user;
if (user) {
setUser(user);
setPhotoURL(picture);
setDisplayName(name);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JhansiMatcha Any specific need to avoid destructuring and accessing the user object multiple times, rather than using it just once, as it is being done currently?

Comment on lines +7 to +12
const collegesData = {
iits: ['IIT Bombay', 'IIT Delhi', 'IIT Madras', 'IIT Kanpur', 'IIT Kharagpur'],
nits: ['NIT Trichy', 'NIT Warangal', 'NIT Surathkal', 'NIT Calicut', 'NIT Rourkela'],
iiits: ['IIIT Hyderabad', 'IIIT Bangalore', 'IIIT Delhi', 'IIIT Allahabad', 'IIIT Jabalpur'],
other: [], // For user-added colleges
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JhansiMatcha We don't need these pre-determined college names. Let's just keep an option to enable the college admin to fill up the details by himself/herself, for setting up the initial template.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll have to set up the backend logic for this, which doesn't seem to be present as of now.

@gunjjoshi
Copy link
Collaborator

@JhansiMatcha Had an initial round of review. This PR might still need some work to be able to get in.
Regarding the profile page, it is still not visible and has the same issue as before across different browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants