Skip to content

Commit

Permalink
style update for hover
Browse files Browse the repository at this point in the history
  • Loading branch information
lcflight committed Nov 28, 2024
1 parent 0ee5e55 commit fd1d239
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/components/organisms/passageNavigation.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@
text-decoration: none;
color: $ts-salmon;
}

.books button:hover {
color: $ts-salmon;
}
8 changes: 7 additions & 1 deletion src/components/organisms/passageNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,26 @@ export default function PassageNavigation(props: Props): JSX.Element {
{book === selectedBook ? (
<ul className={styles.chapters}>
{chapters?.map(({ title }) => {
console.log('title', title);
const n = title.split(' ').pop()?.padStart(2, '0') ?? '';
return (
<li key={title} className={styles.chapter}>
<Link
href={root
.lang(languageRoute)
.bibles.bookId(
getBookId(title, props.audiobibles) ?? '',
getBookId('Exodus', props.audiobibles) ?? '',
)
.chapterNumber(n)
.get()}
>
{n}
</Link>

{/*
example good link: /en/bibles/chapters/27015/exodus-1
Current Linking: /en/bibles/20
*/}
</li>
);
})}
Expand Down

0 comments on commit fd1d239

Please sign in to comment.