-
diff --git a/src/_pages/ReaderPage/components/ReaderComponents.client.tsx b/src/_pages/ReaderPage/components/ReaderComponents.client.tsx
new file mode 100644
index 00000000..8081f163
--- /dev/null
+++ b/src/_pages/ReaderPage/components/ReaderComponents.client.tsx
@@ -0,0 +1,50 @@
+'use client'
+
+import { useSearchParams } from 'next/navigation'
+import { type ReactNode, useEffect, useRef, useState } from 'react'
+import { twMerge } from 'tailwind-merge'
+
+export const Verse = ({
+ children,
+ isStudyMode,
+ verseId,
+ initialIsFocused,
+}: {
+ children: ReactNode
+ isStudyMode: boolean
+ verseId: `${string}.${number}.${number}`
+ initialIsFocused?: boolean
+}) => {
+ const [isFocused, setIsFocused] = useState(useRef(initialIsFocused).current)
+
+ const verseOrder = parseInt(verseId.split('.')[2]!)
+
+ const searchParams = useSearchParams()
+ const verseStart = parseInt(searchParams.get('verse-start')!)
+ const verseEnd = parseInt(searchParams.get('verse-end')!)
+
+ useEffect(() => {
+ const isIncludedInPassage =
+ verseOrder >= verseStart && verseOrder <= verseEnd
+ setIsFocused(isIncludedInPassage)
+ }, [verseEnd, verseOrder, verseStart])
+
+ return (
+
+
+ {children}
+
+
+ )
+}
diff --git a/src/_pages/ReaderPage/components/ReaderComponents.tsx b/src/_pages/ReaderPage/components/ReaderComponents.tsx
index 643054c2..93ccf271 100644
--- a/src/_pages/ReaderPage/components/ReaderComponents.tsx
+++ b/src/_pages/ReaderPage/components/ReaderComponents.tsx
@@ -1,6 +1,5 @@
import { type ReactNode } from 'react'
import { twMerge } from 'tailwind-merge'
-import { Icon } from '~/components'
export const LargeSectionTitle = ({ children }: { children: ReactNode }) => (
(
- {children}
+ {children}
)
export const FancyAside = ({ children }: { children: ReactNode }) => (
@@ -54,18 +53,6 @@ export const Paragraph = ({ children }: { children: ReactNode }) => (
{children}
)
-export const Verse = ({
- children,
- isStudyMode,
-}: {
- children: ReactNode
- isStudyMode: boolean
-}) => (
-
- {children}
-
-)
-
export const VerseLabel = ({
verseNumber,
isStudyMode,
@@ -104,15 +91,9 @@ export const CrossReference = ({
}) => (
-
-
-
+
+ †
+
{referenceList}
)
@@ -124,5 +105,7 @@ export const JesusWords = ({ children }: { children: ReactNode }) => (
)
export const Quote = ({ children }: { children: ReactNode }) => (
-
{children}
+
+ {children}
+
)
diff --git a/src/_pages/ReaderPage/components/ReaderNavButtons.tsx b/src/_pages/ReaderPage/components/ReaderNavButtons.tsx
index b94e4a51..e954328e 100644
--- a/src/_pages/ReaderPage/components/ReaderNavButtons.tsx
+++ b/src/_pages/ReaderPage/components/ReaderNavButtons.tsx
@@ -12,7 +12,7 @@ export const ReaderNavButtons = ({
chapter,
readerMode,
}: ReaderPageParams) => (
-
+
Previous chapter
diff --git a/src/_pages/ReaderPage/index.ts b/src/_pages/ReaderPage/index.ts
index 463d9d57..cd6de8fc 100644
--- a/src/_pages/ReaderPage/index.ts
+++ b/src/_pages/ReaderPage/index.ts
@@ -1,2 +1,2 @@
export * from './Reader.page'
-export { getChapterObjectModel } from '~/_pages/ReaderPage/chapterContentData/getChapterObjectModel'
+export { getChapterObjectModel } from '~/_pages/ReaderPage/chapterDataProcessing/getChapterObjectModel'
diff --git a/src/components/molecules/Footer.tsx b/src/components/molecules/Footer.tsx
index 9539408f..ada45125 100644
--- a/src/components/molecules/Footer.tsx
+++ b/src/components/molecules/Footer.tsx
@@ -1,7 +1,7 @@
import { Icon } from '~/components/atoms/Icon/Icon'
export const Footer = () => (
-