From 0a6731ad2ed79dc291060ad2fbaf907e31a598e8 Mon Sep 17 00:00:00 2001 From: zihluwang Date: Fri, 16 Jan 2026 10:57:16 +0800 Subject: [PATCH] feat: enhance About and Contact pages with new content and layout updates - Added GitHub and deployment information to the About page, including links and self-hosting instructions. - Updated the Contact page to emphasize transparency in the development process with improved text styling. - Removed outdated sections to streamline content presentation. --- src/layout/hero-layout/index.tsx | 2 +- src/page/about/index.tsx | 134 ++++++++++--------------------- src/page/contact/index.tsx | 4 +- 3 files changed, 44 insertions(+), 96 deletions(-) diff --git a/src/layout/hero-layout/index.tsx b/src/layout/hero-layout/index.tsx index c1ffde4..5f92388 100644 --- a/src/layout/hero-layout/index.tsx +++ b/src/layout/hero-layout/index.tsx @@ -1,4 +1,4 @@ -import { Outlet, Link } from "react-router-dom" +import { Outlet, Link, useLocation } from "react-router-dom" import { useMemo } from "react" import dayjs from "dayjs" diff --git a/src/page/about/index.tsx b/src/page/about/index.tsx index 734ac78..757afa0 100644 --- a/src/page/about/index.tsx +++ b/src/page/about/index.tsx @@ -13,68 +13,47 @@ export default function About() {

- {/* Content Sections */} -
- {/* Technology Stack */} -
-

- 🛠️ Technology Stack -

-
    -
  • - - - React 19 & TS - Type-safe UI components - -
  • -
  • - - - jsonpath - Robust query engine for data extraction - -
  • -
  • - - - Tailwind CSS - Modern, responsive styling - -
  • -
  • - - - Vite - Optimised build pipeline and dev experience - -
  • -
-
- - {/* Features */} -
-

- 🚀 Key Features -

-
    -
  • - - - Interactive collapsible tree navigation - -
  • -
  • - - - Real-time JSONPath field highlighting - -
  • -
  • - - One-click copy for matched results -
  • -
  • - - Zero-latency local processing -
  • -
+ {/* GitHub & Deployment */} +
+

+ 📦 Open Source & Deployment +

+
+

+ This project is open source and available on GitHub. You can view the source code, + contribute, or deploy your own instance. +

+ +
+

+ ⭐ Star us on GitHub: If you find this project helpful, we'd greatly + appreciate it if you could give us a star on GitHub. It helps others discover the + project and motivates us to keep improving! +

+
+
+

+ 💡 Self-Hosting: You can deploy this application yourself! The + repository includes all necessary configuration files. Simply clone the repository, + install dependencies, and deploy to your preferred hosting platform (Vercel, Netlify, + or any static hosting service). +

+
@@ -90,37 +69,6 @@ export default function About() { server, ensuring that sensitive configuration or user data remains entirely private.

- - {/* Architecture Overview */} -
-

- 🏗️ Architecture Overview -

-
-

- The application follows a modular React architecture focused on performance and - maintainability: -

-
    -
  • - Recursive Renderer: A high-performance component tree that handles - massive JSON objects without blocking the main thread. -
  • -
  • - JSONPath Integration: Standardised path evaluation using the{" "} - jsonpath library, ensuring cross-platform query compatibility. -
  • -
  • - State Management: Efficient use of React hooks and useMemo to ensure - real-time UI updates during text entry. -
  • -
-

- Hosted on Vercel, this visualiser leverages modern edge deployment whilst strictly - adhering to the local-first data processing principle. -

-
-
) } diff --git a/src/page/contact/index.tsx b/src/page/contact/index.tsx index 62f4239..54b2ce1 100644 --- a/src/page/contact/index.tsx +++ b/src/page/contact/index.tsx @@ -53,8 +53,8 @@ ${message}

We use GitHub to track all bug reports and feature requests. This ensures our - development process remains **transparent** and that your feedback is properly - prioritised by the community. + development process remains transparent and that + your feedback is properly prioritised by the community.