Skip to content

Add the Interactive mouse pointer and done some animation#128

Open
sahil-dev17 wants to merge 1 commit intosamarsajad:mainfrom
sahil-dev17:UI-improve
Open

Add the Interactive mouse pointer and done some animation#128
sahil-dev17 wants to merge 1 commit intosamarsajad:mainfrom
sahil-dev17:UI-improve

Conversation

@sahil-dev17
Copy link
Copy Markdown

Description

Please include a summary of the changes and the related issue. Provide context explaining the reason for the PR.

Related Issue

Closes # (issue number)

Screenshot

If your PR includes visual changes, please add screenshots or GIFs to help reviewers understand the impact.

Example:
Screenshot

Checklist

  • I have performed a self-review of my code
  • My changes follow the project's style guidelines
  • I have checked that there are no merge conflicts
  • My code is well-documented
  • This PR addresses only one issue/change
  • I am a GSSOC contributor

Additional Notes

(Add any additional notes here)
Place this updated file as your PULL_REQUEST_TEMPLATE.md in one of the supported locations.

@vercel
Copy link
Copy Markdown

vercel bot commented Aug 4, 2025

Someone is attempting to deploy a commit to the Samar Sajad's projects Team on Vercel.

A member of the Team first needs to authorize it.

@sahil-dev17
Copy link
Copy Markdown
Author

Hi! The Vercel deployment check is failing due to authorization issues.
Since I don't have deployment access, could someone with the proper permissions authorize the deployment or disable the check for contributors?

Thank you!

@samarsajad
Copy link
Copy Markdown
Owner

Hi! The Vercel deployment check is failing due to authorization issues. Since I don't have deployment access, could someone with the proper permissions authorize the deployment or disable the check for contributors?

Thank you!

Please while sending a PR , follow the default template given. If failed to do that, your PR won't be merged no matter how good it is

@vercel
Copy link
Copy Markdown

vercel bot commented Aug 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hospital-management-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2025 8:40am

@samarsajad
Copy link
Copy Markdown
Owner

First of all it changes to red color, which doesn't go well with the theme. keep a simple pointer. This one would give user the ick

@sahil-dev17
Copy link
Copy Markdown
Author

First of all it changes to red color, which doesn't go well with the theme. keep a simple pointer. This one would give user the ick

Mam , Can you also assign me the issue as of UI of website in that I will make the site more interactive !!

</motion.section>
);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wrap everything after ReadMoreSection inside a named component (e.g. AboutSection).
Right now this file will not compile because hooks, variants, and JSX are floating outside a component.

@@ -34,19 +137,83 @@ function AboutUs() {
setExpandedCard((prev) => (prev === title ? null : title));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This line appears outside of any function.
It should live inside a handler function (e.g. handleToggle) declared inside the main component.

}
},
hover: {
rotate: 360,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Continuous rotation on hover can feel jumpy.
Consider limiting rotation (e.g. 15–30°) or using whileTap instead.

import React, { useState } from 'react';
import { motion } from 'framer-motion';
import styles from './AboutSection.module.css';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Inline styles bypass CSS optimizations and theming.
Consider moving gradient states into CSS classes and toggling via className.

@@ -0,0 +1,26 @@
/* Hide default cursor */
body {
cursor: none !important;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hides cursor everywhere, including:
input fields
buttons
text selection
On desktop, this can confuse users if your custom cursor JS fails to load.

}

/* Show default cursor for touch devices */
@media (hover: none) and (pointer: coarse) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is GOOD because:
Targets phones & tablets correctly
Prevents useless cursor effects
Avoids performance waste

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