Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/components/ourProjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ const HeadingComponent: React.FC<HeadingComponentProps> = ({
className="flex items-center md:items-start md:justify-start gap-6 sm:gap-10 flex-col"
>
{/* tag */}
<div className="px-6 py-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white rounded-full text-sm sm:text-base font-medium tracking-wide shadow-lg transform hover:scale-105 transition-transform duration-300">
<div
className="cursor-pointer px-6 py-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white rounded-full text-sm sm:text-base font-medium tracking-wide shadow-lg transform hover:scale-105 transition-transform duration-300"
onClick={() =>
(window.location.href = "https://github.com/recodehive")
}
>
{tag}
</div>
Comment on lines +63 to 70

Copilot AI Jun 20, 2025

Copy link

Choose a reason for hiding this comment

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

Wrapping the tag in a clickable

without semantic elements or keyboard support can harm accessibility. Use an or , or add role="button", tabIndex, and keyboard event handlers.

Suggested change
<div
className="cursor-pointer px-6 py-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white rounded-full text-sm sm:text-base font-medium tracking-wide shadow-lg transform hover:scale-105 transition-transform duration-300"
onClick={() =>
(window.location.href = "https://github.com/recodehive")
}
>
{tag}
</div>
<a
href="https://github.com/recodehive"
className="cursor-pointer px-6 py-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white rounded-full text-sm sm:text-base font-medium tracking-wide shadow-lg transform hover:scale-105 transition-transform duration-300"
>
{tag}
</a>

Copilot uses AI. Check for mistakes.
Comment on lines +63 to 70

Copilot AI Jun 20, 2025

Copy link

Choose a reason for hiding this comment

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

Manipulating window.location.href directly triggers a full page reload. Consider using a proper link component or routing helper to preserve single-page app behavior.

Suggested change
<div
className="cursor-pointer px-6 py-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white rounded-full text-sm sm:text-base font-medium tracking-wide shadow-lg transform hover:scale-105 transition-transform duration-300"
onClick={() =>
(window.location.href = "https://github.com/recodehive")
}
>
{tag}
</div>
<a
href="https://github.com/recodehive"
target="_blank"
rel="noopener noreferrer"
className="cursor-pointer px-6 py-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white rounded-full text-sm sm:text-base font-medium tracking-wide shadow-lg transform hover:scale-105 transition-transform duration-300"
>
{tag}
</a>

Copilot uses AI. Check for mistakes.
{/* title */}
Expand Down
7 changes: 5 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,14 @@ export default function Home(): ReactNode {
<div className="m-4">
<BlogCarousel />
</div>
<div className="m-4">
<div
className="m-4"
onClick={() => (window.location.href = "https://www.sanjaykv.com/")}
>
<img
src="/selfhero.png"
alt="recodehive"
className="w-full h-full object-cover rounded-2xl"
className="w-full h-full object-cover rounded-2xl cursor-pointer"
/>
</div>
Comment thread
harish599 marked this conversation as resolved.
Comment on lines +61 to 70

Copilot AI Jun 20, 2025

Copy link

Choose a reason for hiding this comment

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

Directly setting window.location.href bypasses SPA routing and may reload the entire app. Consider using Next.js or a routing utility to maintain client-side navigation.

Copilot uses AI. Check for mistakes.
<div className="m-4">
Expand Down