From b0da87ff5281214cda6b1c67d060e76d52a49746 Mon Sep 17 00:00:00 2001 From: Akash Kumar <154402631+akash-kumar-dev@users.noreply.github.com> Date: Sun, 8 Feb 2026 22:01:09 +0530 Subject: [PATCH] =?UTF-8?q?Revert=20"UI=20Consistency=20&=20Visual=20Stabi?= =?UTF-8?q?lity=20Pass=20Across=20Hero,=20Navbar,=20Badges,=20C=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit feccb712196fc436edab0ff6866b55169893fe9a. --- src/app/globals.css | 65 +------- src/app/layout.tsx | 2 +- src/components/home/FeaturesSection.tsx | 157 ++++++------------ src/components/home/HeroSection.tsx | 202 +++++++++--------------- src/components/layout/Footer.tsx | 53 +++---- src/components/layout/Layout.tsx | 2 +- src/components/layout/Navbar.tsx | 77 ++++----- src/hooks/useTheme.ts | 42 ----- 8 files changed, 185 insertions(+), 415 deletions(-) delete mode 100644 src/hooks/useTheme.ts diff --git a/src/app/globals.css b/src/app/globals.css index 8c2e814..a2dc41e 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -3,8 +3,6 @@ :root { --background: #ffffff; --foreground: #171717; - --foreground-rgb: 23, 23, 23; - --background-rgb: 255, 255, 255; } @theme inline { @@ -14,66 +12,15 @@ --font-mono: var(--font-geist-mono); } -.dark { - --background: #0a0a0a; - --foreground: #ededed; - --foreground-rgb: 237, 237, 237; - --background-rgb: 10, 10, 10; +@media (prefers-color-scheme: dark) { + :root { + --background: #0a0a0a; + --foreground: #ededed; + } } -/* LIGHT MODE BACKGROUND */ - -/* Light mode background change */ -html:not(.dark) { - --hero-bg: linear-gradient( - 135deg, - #f7f9ff 0%, - #eef2ff 45%, - #ffffff 100% - ); -} - -/* Dark mode - Orginal */ -html.dark { - --hero-bg: - radial-gradient( - 1200px circle at 20% 20%, - rgba(88, 101, 242, 0.35), - transparent 60% - ), - radial-gradient( - 1000px circle at 80% 30%, - rgba(168, 85, 247, 0.35), - transparent 60% - ), - linear-gradient( - 180deg, - #020617 0%, - #020617 100% - ); -} - -html { +body { background: var(--background); color: var(--foreground); -} - -body { - background: transparent; - color: inherit; font-family: Arial, Helvetica, sans-serif; } - -/* Override hardcoded text colors */ -.theme-root { - color: var(--foreground); -} - -/* Makes the sections to use theme background colors */ -section, -main, -article, -header -{ - background-color: transparent; -} \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 1093920..6b40957 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -52,7 +52,7 @@ export const viewport: Viewport = { { media: '(prefers-color-scheme: light)', color: '#1f2937' }, { media: '(prefers-color-scheme: dark)', color: '#111827' }, ], - colorScheme: 'light dark', + colorScheme: 'dark', }; export default function RootLayout({ diff --git a/src/components/home/FeaturesSection.tsx b/src/components/home/FeaturesSection.tsx index a4bd28f..5dd6d5e 100644 --- a/src/components/home/FeaturesSection.tsx +++ b/src/components/home/FeaturesSection.tsx @@ -7,7 +7,6 @@ import { FaTrophy } from 'react-icons/fa'; const FeaturesSection = () => { const [currentIndex, setCurrentIndex] = useState(0); - const [isVisible, setIsVisible] = useState(false); const sectionRef = useRef(null); const intervalRef = useRef(null); @@ -104,6 +103,7 @@ const FeaturesSection = () => { } ]; + const startAutoScroll = useCallback(() => { if (intervalRef.current) { clearInterval(intervalRef.current); @@ -124,27 +124,6 @@ const FeaturesSection = () => { }; }, [startAutoScroll]); - useEffect(() => { - const observer = new IntersectionObserver( - ([entry]) => { - if (entry.isIntersecting) { - setIsVisible(true); - } - }, - { threshold: 0.1 } - ); - - if (sectionRef.current) { - observer.observe(sectionRef.current); - } - - return () => { - if (sectionRef.current) { - observer.unobserve(sectionRef.current); - } - }; - }, []); - const nextSlide = () => { setCurrentIndex((prev) => (prev + 1) % features.length); startAutoScroll(); @@ -161,48 +140,28 @@ const FeaturesSection = () => { }; return ( -
+
{/* Background effects */} -
-
-
+
+
+
-
- - - Open Source - -
+
+ + Open Source +
-
-

- The Future of - + The Future of + Social Browsing

- -

+

BrowsePing is an{' '} open-source @@ -212,19 +171,17 @@ const FeaturesSection = () => { vibrant social experience

-
{/* Open Source Badge */} -
+
- Community-driven development + Community-driven development
-
- Transparent & extensible - -
- MIT Licensed +
+ Transparent & extensible +
+ MIT Licensed
@@ -237,21 +194,16 @@ const FeaturesSection = () => {
{/* Card */}
{features[(currentIndex - 1 + features.length) % features.length] && (
@@ -259,10 +211,10 @@ const FeaturesSection = () => { {features[(currentIndex - 1 + features.length) % features.length].icon}
-

+

{features[(currentIndex - 1 + features.length) % features.length].title}

-

+

{features[(currentIndex - 1 + features.length) % features.length].description}

@@ -272,12 +224,12 @@ const FeaturesSection = () => { {/* Center Card */}
-
+
{/* Current feature content */}
- + {features[currentIndex].category}
@@ -289,20 +241,20 @@ const FeaturesSection = () => {
-

+

{features[currentIndex].title}

-

+

{features[currentIndex].detailedDescription}

{/* Benefits */}
{features[currentIndex].benefits.map((benefit, idx) => ( -
+
- {benefit} + {benefit}
))}
@@ -325,9 +277,7 @@ const FeaturesSection = () => {
{features[(currentIndex + 1) % features.length] && (
@@ -335,10 +285,10 @@ const FeaturesSection = () => { {features[(currentIndex + 1) % features.length].icon}
-

+

{features[(currentIndex + 1) % features.length].title}

-

+

{features[(currentIndex + 1) % features.length].description}

@@ -347,23 +297,17 @@ const FeaturesSection = () => {
{/* Background decoration */}
-
-
+
+
@@ -375,7 +319,7 @@ const FeaturesSection = () => { onClick={() => goToSlide(index)} className={`w-3 h-3 rounded-full transition-all duration-300 ${index === currentIndex ? `bg-gradient-to-r ${features[currentIndex].gradient} scale-125` - : 'bg-[color:rgba(0,0,0,0.25)] hover:bg-[color:rgba(0,0,0,0.4)] dark:bg-gray-600 dark:hover:bg-gray-500' + : 'bg-gray-600 hover:bg-gray-500' }`} /> ))} @@ -385,12 +329,12 @@ const FeaturesSection = () => { {/* Product Hunt Badge Section */}
-

- +

+ Featured on Product Hunt

-

+

Show your support and help us reach more users by upvoting BrowsePing on Product Hunt!

@@ -403,11 +347,11 @@ const FeaturesSection = () => { className="inline-block hover:scale-105 transition-transform duration-300 group" > BrowsePing - Socialize your presence and make browsing insightful. | Product Hunt
@@ -417,13 +361,11 @@ const FeaturesSection = () => {
-
-
+
+
-
+
{/* Content section */}
@@ -431,15 +373,15 @@ const FeaturesSection = () => {
-

- +

+ Open Source - Community + {' '}Community

-

+

Join developers building the future of social browsing. Contribute and help shape the project.

@@ -460,6 +402,7 @@ const FeaturesSection = () => {
+
); }; diff --git a/src/components/home/HeroSection.tsx b/src/components/home/HeroSection.tsx index 4792ef8..40730d6 100644 --- a/src/components/home/HeroSection.tsx +++ b/src/components/home/HeroSection.tsx @@ -33,22 +33,17 @@ const HeroSection = () => { }, []); return ( -
- {/* Animated gradient background */} -
+
+ {/* Animated gradient background */} +
{/* Grid pattern overlay */}
{
{/* Badge */} -
- - Open Source -
- Browser Extension +
+
{/* Main Heading */}

- + Socialize {

{/* Subtitle */} -

+

The{' '} open-source @@ -114,84 +93,59 @@ const HeroSection = () => { . Connect with friends, share your digital presence, and discover what's capturing everyone's attention across the web.

- {/* Key Features */} -
- {[ - { icon: FiGithub, text: 'Open Source', color: 'text-green-500' }, - { icon: FiUsers, text: 'Social Presence', color: 'text-blue-600' }, - { icon: FiBarChart, text: 'Analytics', color: 'text-cyan-600' }, - { icon: FiShield, text: 'Privacy First', color: 'text-purple-500' }, - ].map((feature, index) => ( -
-
-
- - - {feature.text} - -
- ))} -
- - {/* CTA Buttons with browser detection */} -
- {detectedBrowser ? ( - -
- - ) : ( - -
-
+ {/* Key Features */} +
+ {[ + { icon: FiGithub, text: 'Open Source', color: 'text-green-400' }, + { icon: FiUsers, text: 'Social Presence', color: 'text-blue-400' }, + { icon: FiBarChart, text: 'Analytics', color: 'text-cyan-400' }, + { icon: FiShield, text: 'Privacy First', color: 'text-purple-400' } + ].map((feature, index) => ( +
+
+
+ {feature.text} +
+ ))} +
+ {/* CTA Buttons with browser detection */} +
+ {detectedBrowser ? ( + +
+ + ) : ( + +
+
{/* Product Hunt Badge */}
{ className="inline-block hover:scale-105 transition-transform duration-300 group" > BrowsePing - Socialize your presence and make browsing insightful. | Product Hunt
@@ -215,7 +169,7 @@ const HeroSection = () => { {/* Browser Support */}
-

Available for all major browsers

+

Available for all major browsers

{allBrowsers.map((browser, index) => (
{ className="flex flex-col items-center space-y-2 group cursor-pointer" style={{ animationDelay: `${index * 0.1}s` }} > -
+
{browser.icon}
- + {browser.name}
diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 203f4a1..43cf909 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -7,40 +7,29 @@ const Footer = () => { const currentYear = new Date().getFullYear(); return ( -