From 13edc63a5d3ba1a1b4415018d5561a880d33af58 Mon Sep 17 00:00:00 2001 From: "Shruthi deepika.v" <151644213+shruthideepikareddy@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:34:21 +0530 Subject: [PATCH] feat(accessibility): implement WCAG 2.1 AA compliance fixes --- src/app/layout.tsx | 20 ++++----- src/components/about/AboutHero.tsx | 26 +++++------ src/components/about/AboutValues.tsx | 2 +- src/components/contact/ContactUs.tsx | 14 +++--- src/components/download/DownloadHero.tsx | 45 +++++++++---------- src/components/download/InstallationGuide.tsx | 40 +++++++---------- src/components/download/PlatformsList.tsx | 6 +-- src/components/download/ZipDownload.tsx | 42 ++++++++--------- src/components/home/HeroSection.tsx | 14 +++--- src/components/layout/Footer.tsx | 4 +- src/components/layout/Navbar.tsx | 35 +++++++-------- .../leaderboard/LeaderboardHero.tsx | 4 +- .../leaderboard/PromotionalSection.tsx | 17 ++++--- .../leaderboard/PublicLeaderboard.tsx | 14 +++--- src/components/ui/AnimatedBackground.tsx | 1 + src/components/ui/MouseFollower.tsx | 14 +++--- 16 files changed, 140 insertions(+), 158 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0c190c6..6b40957 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -46,8 +46,8 @@ export const metadata: Metadata = { export const viewport: Viewport = { width: 'device-width', initialScale: 1, - maximumScale: 1, - userScalable: false, + maximumScale: 5, + userScalable: true, themeColor: [ { media: '(prefers-color-scheme: light)', color: '#1f2937' }, { media: '(prefers-color-scheme: dark)', color: '#111827' }, @@ -60,12 +60,12 @@ export default function RootLayout({ }: { children: React.ReactNode; }) { - return ( - -
- {children} -- BrowsePing was born from a simple idea: browsing the web shouldn't be a lonely activity. +
+ BrowsePing was born from a simple idea: browsing the web shouldn't be a lonely activity. We're building a bridge between the digital world and social connection.
@@ -57,7 +53,7 @@ const AboutHero = () => { ].map((stat, index) => (GitHub
@@ -215,7 +215,7 @@ const ContactUs = () => {+
Choose your preferred installation method and start socializing your browsing experience today
{/* Feature highlights */} -+
Follow these simple steps to manually install BrowsePing extension
{step.description}
@@ -193,20 +190,18 @@ const InstallationGuide = () => {{step.description}
@@ -243,7 +237,7 @@ const InstallationGuide = () => {You should now see BrowsePing in your browser toolbar. Click the icon to start socializing your browsing experience! diff --git a/src/components/download/PlatformsList.tsx b/src/components/download/PlatformsList.tsx index 454ac67..4540065 100644 --- a/src/components/download/PlatformsList.tsx +++ b/src/components/download/PlatformsList.tsx @@ -152,9 +152,9 @@ const PlatformsList = () => {
{platform.description}
Download the extension as a ZIP file and install it manually for more control over the installation process. diff --git a/src/components/download/ZipDownload.tsx b/src/components/download/ZipDownload.tsx index 7c93d52..5c96831 100644 --- a/src/components/download/ZipDownload.tsx +++ b/src/components/download/ZipDownload.tsx @@ -33,7 +33,7 @@ const ZipDownload = () => { if (prev >= 100) { clearInterval(interval); setIsDownloading(false); - + const downloadUrl = 'https://github.com/browseping/browser-extension/releases/download/v1.0.0/BrowsePing_V1.0.0.zip'; const link = document.createElement('a'); link.href = downloadUrl; @@ -41,7 +41,7 @@ const ZipDownload = () => { document.body.appendChild(link); link.click(); document.body.removeChild(link); - + return 100; } return prev + 10; @@ -73,17 +73,15 @@ const ZipDownload = () => {
+ +
Download the extension as a ZIP file for manual installation. Perfect for developers and users who prefer more control.
@@ -91,12 +89,11 @@ const ZipDownload = () => { {features.map((feature, index) => (Version 1.0.0 • Latest Release
- + {/* Download progress */} {isDownloading && (Downloading... {downloadProgress}%
Size: ~2.5 MB • Compatible with all browsers
diff --git a/src/components/home/HeroSection.tsx b/src/components/home/HeroSection.tsx index 3f8b009..40730d6 100644 --- a/src/components/home/HeroSection.tsx +++ b/src/components/home/HeroSection.tsx @@ -61,7 +61,7 @@ const HeroSection = () => { {/* Badge */}Start your social browsing journey today and see your name climb the leaderboards!
- + diff --git a/src/components/leaderboard/PublicLeaderboard.tsx b/src/components/leaderboard/PublicLeaderboard.tsx index d00020e..67f4d15 100644 --- a/src/components/leaderboard/PublicLeaderboard.tsx +++ b/src/components/leaderboard/PublicLeaderboard.tsx @@ -42,7 +42,7 @@ const PublicLeaderboard = () => { } const result = await response.json(); - + if (result.success) { setData(result.data); } else { @@ -106,7 +106,7 @@ const PublicLeaderboard = () => {@@ -159,7 +159,7 @@ const PublicLeaderboard = () => { {(!data?.leaderboard || data.leaderboard.length === 0) ? (