From d57b9e2fa452574673e1739958fac9f8e29cd723 Mon Sep 17 00:00:00 2001 From: yuvraj-k-singh Date: Mon, 18 May 2026 15:20:13 +0530 Subject: [PATCH 1/2] feat: updated hero section UI with dark and light mode Signed-off-by: yuvraj-k-singh --- src/components/Hero.tsx | 131 +++++++++++++++++++++++++++++++++------- 1 file changed, 108 insertions(+), 23 deletions(-) diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index 1549f8e..d48afe6 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -1,34 +1,119 @@ -import { Search } from 'lucide-react'; +import { Search, GitBranch, GitCommit, GitPullRequest, Layout } from 'lucide-react'; import { Link } from 'react-router-dom'; +// Fixed array declaration for stability +const MATRIX_CELLS = Array.from({ length: 21 }, (_, i) => i); + const Hero = () => { return ( -
-
-
-

- Track GitHub Activity - Like Never Before -

-

- Monitor and analyze GitHub user activity with powerful insights. Perfect for developers, - project managers, and teams who want to understand contribution patterns and repository engagement. -

-
- - {/* - */} +
+ + {/* 1. Cyber Grid Overlay */} +
+ + {/* Ambient Radial Glow Elements */} +
+
+ +
+
+ + {/* LEFT COLUMN: Typography & CTA */} +
+

+ Track GitHub Activity + + Like Never Before + +

+ +

+ Monitor and analyze GitHub user activity with powerful insights. Perfect for developers, + project managers, and teams who want to understand contribution patterns and repository engagement. +

+ +
+ {/* Interactive Primary Link Button */} + + + + Start Tracking + + +
+
+ + {/* RIGHT COLUMN: Dashboard & Floating Git Elements */} +
+ + {/* The Main Dashboard Mockup Card */} +
+
+
+ + Dashboard Insights +
+
+ + + +
+
+ + {/* Mockup Data widgets */} +
+
+
Weekly Commits
+
176 +12%
+
+
+
+
+ + {/* Simulated GitHub Contribution Grid */} +
+
Contribution Matrix
+
+ {MATRIX_CELLS.map((cellIndex) => { + // Stable indexing pattern to avoid flashing visual layouts on state updates + const intensitiesDark = ['bg-slate-800', 'bg-emerald-900/60', 'bg-emerald-700', 'bg-emerald-500', 'bg-emerald-400']; + const intensitiesLight = ['bg-slate-200', 'bg-emerald-200', 'bg-emerald-300', 'bg-emerald-500', 'bg-emerald-600']; + + return ( +
+ ); + })} +
+
+
+
+ + {/* Floating Git Icon Nodes with Safe Tailwind standard bounce animations */} +
+ +
+ +
+ +
+ +
+ +
+ + {/* Subtle Neon Center Glow */} +
+
); }; -export default Hero; +export default Hero; \ No newline at end of file From 42323cbbc865f62449953f1e3227318e2ad54f0b Mon Sep 17 00:00:00 2001 From: yuvraj-k-singh Date: Mon, 18 May 2026 15:37:51 +0530 Subject: [PATCH 2/2] feat: complete hero section redesign and resolve code review feedback --- src/components/Hero.tsx | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index d48afe6..a606d77 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -1,7 +1,7 @@ import { Search, GitBranch, GitCommit, GitPullRequest, Layout } from 'lucide-react'; import { Link } from 'react-router-dom'; -// Fixed array declaration for stability +// Fixed array declaration for data structure rendering stability const MATRIX_CELLS = Array.from({ length: 21 }, (_, i) => i); const Hero = () => { @@ -22,7 +22,7 @@ const Hero = () => {

Track GitHub Activity - + Like Never Before

@@ -75,16 +75,17 @@ const Hero = () => {
Contribution Matrix
{MATRIX_CELLS.map((cellIndex) => { - // Stable indexing pattern to avoid flashing visual layouts on state updates - const intensitiesDark = ['bg-slate-800', 'bg-emerald-900/60', 'bg-emerald-700', 'bg-emerald-500', 'bg-emerald-400']; + // Fully qualified class names to ensure they aren't removed by Tailwind's compilation process const intensitiesLight = ['bg-slate-200', 'bg-emerald-200', 'bg-emerald-300', 'bg-emerald-500', 'bg-emerald-600']; + const intensitiesDark = ['dark:bg-slate-800', 'dark:bg-emerald-900/60', 'dark:bg-emerald-700', 'dark:bg-emerald-500', 'dark:bg-emerald-400']; + + const lightClass = intensitiesLight[cellIndex % intensitiesLight.length]; + const darkClass = intensitiesDark[cellIndex % intensitiesDark.length]; return (
); })} @@ -93,16 +94,25 @@ const Hero = () => {
- {/* Floating Git Icon Nodes with Safe Tailwind standard bounce animations */} -
+ {/* Floating Git Icon Nodes using native inline styles for correct staggered delays */} +
-
+
-
+