sef-global / scholarx-frontend

This is the frontend of the ScholarX
MIT License
5 stars 57 forks source link

Make the "Become a Mentor" button responsive. #72

Closed mayura-andrew closed 9 months ago

mayura-andrew commented 10 months ago

Purpose

The purpose of this PR is to fix #71

Purpose

The purpose of this PR is to make the "Become a Mentor" button responsive.

Goals

This PR makes the "Become a Mentor" button responsive using Tailwind CSS. It also attempts to fix an issue where the application does not navigate to the /mentor-registration route when the button is clicked in mobile view.

Approach

I updated the handleMentorRegistration function in the MenuDrawer.tsx file to navigate to the /mentor-registration route when the "Become a Mentor" button is clicked. However, this does not seem to be working as expected on mobile devices. I would appreciate if someone could look into this.

Screenshots

Screencast_20240113_161026.webm

Checklist

Related PRs

N/A

Test environment

OS - Fedora Linux 39 (KDE Plasma) x86_64 NodeJS - 20.10.0

Learning

I learned about the importance of making UI elements responsive to ensure a good user experience on all devices. I also learned about the navigate function and how it can be used to programmatically navigate to different routes in a React application.