From c865b59088bbc229fa956a1b21be638a7dee43a3 Mon Sep 17 00:00:00 2001 From: gosangam Date: Sat, 18 Apr 2026 12:25:36 +0530 Subject: [PATCH] feat: add accessibility features to UI --- app/books/bbd/[chapter]/page.tsx | 2 +- app/books/chapter-viewer.tsx | 12 +- app/books/ds/[chapter]/page.tsx | 2 +- app/books/ej/[chapter]/page.tsx | 2 +- app/books/ek/[chapter]/page.tsx | 2 +- app/books/hkh/[chapter]/page.tsx | 2 +- app/books/iso/[mantra]/page.tsx | 20 +- app/books/kb/[volume]/[slug]/page.tsx | 2 +- app/books/mg/[chapter]/page.tsx | 2 +- app/books/nod/[chapter]/page.tsx | 2 +- app/books/noi/[text]/page.tsx | 20 +- app/books/ochkm/[chapter]/page.tsx | 2 +- app/books/owk/[chapter]/page.tsx | 2 +- app/books/poy/[chapter]/page.tsx | 2 +- app/books/pqpa/[chapter]/page.tsx | 2 +- app/books/rv/[chapter]/page.tsx | 2 +- app/books/ssr/[chapter]/page.tsx | 2 +- app/books/tlc/[chapter]/page.tsx | 2 +- app/books/ttp/[chapter]/page.tsx | 2 +- app/essays/[slug]/page.tsx | 2 +- app/globals.css | 274 ++++++++++++++---------- app/glossary/glossary-client.tsx | 14 +- app/page.tsx | 7 +- components/logo.tsx | 43 ++++ components/page-header.tsx | 6 +- components/reading-settings.tsx | 289 ++++++++++++++++++++++++++ components/theme-toggle.tsx | 57 ----- components/ui/input.tsx | 14 +- public/logo_dark.png | Bin 0 -> 17171 bytes public/logo_light.png | Bin 0 -> 17592 bytes 30 files changed, 557 insertions(+), 233 deletions(-) create mode 100644 components/logo.tsx create mode 100644 components/reading-settings.tsx delete mode 100644 components/theme-toggle.tsx create mode 100644 public/logo_dark.png create mode 100644 public/logo_light.png diff --git a/app/books/bbd/[chapter]/page.tsx b/app/books/bbd/[chapter]/page.tsx index fd7a4d1c..cb2c764c 100644 --- a/app/books/bbd/[chapter]/page.tsx +++ b/app/books/bbd/[chapter]/page.tsx @@ -79,7 +79,7 @@ export default async function BbdChapterPage({ {content.paragraphs.map((paragraph, i) => (
))} diff --git a/app/books/chapter-viewer.tsx b/app/books/chapter-viewer.tsx index 2e330b44..131e3055 100644 --- a/app/books/chapter-viewer.tsx +++ b/app/books/chapter-viewer.tsx @@ -183,10 +183,10 @@ function VerseCard({ {/* Synonyms */} {verse.synonyms.length > 0 && (
-

+

Synonyms

-

+

{verse.synonyms.map((s, i) => ( {s.word}— @@ -200,7 +200,7 @@ function VerseCard({ {/* Translation */}

-

+

Translation

0 && (

-

+

Purport

-
+
{verse.purport.map((p, i) => (

))} @@ -391,7 +391,7 @@ export function ChapterViewer({ <> {/* ---- Sidebar: Verse Index ---- */}