Bug Description
Problem
The GitHub stars button on the Home page uses <a className="group block mt-10">
which makes the entire width of the page a clickable link. Clicking anywhere in the
bottom section of the page — even outside the visible button — opens the GitHub
repository in a new tab unintentionally.
Steps to Reproduce
- Open the EduAid web app
- Navigate to the Home page
- Click anywhere in the lower portion of the page outside the GitHub stars button
- GitHub repository opens unintentionally
Expected Behavior
Only clicking directly on the GitHub stars button should open the GitHub repository.
Actual Behavior
The entire bottom area of the page is clickable and triggers GitHub navigation.
Root Cause
The <a> tag has className="group block mt-10" — the block class makes it
full-width, expanding the clickable area far beyond the visible button.
Proposed Fix
Wrap the <a> in a centered div and use inline-block so only the button itself
is clickable.
Environment
- Browser: Chrome
- Component:
eduaid_web/src/pages/Home.jsx
Bug Description
Problem
The GitHub stars button on the Home page uses
<a className="group block mt-10">which makes the entire width of the page a clickable link. Clicking anywhere in the
bottom section of the page — even outside the visible button — opens the GitHub
repository in a new tab unintentionally.
Steps to Reproduce
Expected Behavior
Only clicking directly on the GitHub stars button should open the GitHub repository.
Actual Behavior
The entire bottom area of the page is clickable and triggers GitHub navigation.
Root Cause
The
<a>tag hasclassName="group block mt-10"— theblockclass makes itfull-width, expanding the clickable area far beyond the visible button.
Proposed Fix
Wrap the
<a>in a centereddivand useinline-blockso only the button itselfis clickable.
Environment
eduaid_web/src/pages/Home.jsx