Skip to content

Commit

Permalink
feat: better reading paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus64 committed Jan 6, 2024
1 parent 1238d38 commit 8dec869
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions src/components/Passage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,27 @@
: 'm-4 w-full max-w-full'}
>
<h3 class="mt-4 text-3xl">{formatName(info.name)}: {info.chapter}</h3>
<ul class="flex flex-col gap-2">
{#each info.vers as v}
{#if v.study}
<h3 class="p-2 text-3xl">{v.study}</h3>
{/if}
<p class="verse text-2xl">
<b>
{v.number}
</b>
{v.verse}
</p>
{/each}
</ul>

{#if info.vers && info.vers.length > 0}
<ul class="flex flex-col gap-2 p-4">
{#each info.vers as v}
{#if v.study}
<h3 class="p-2 text-3xl">{v.study}</h3>
{/if}
<p class="verse text-2xl">
<b>
{v.number}
</b>
{v.verse}
</p>
{/each}
</ul>
{/if}
</section>

<style>
.verse {
max-width: 75ch;
max-width: 50ch;
text-wrap: balance;
}
Expand Down

1 comment on commit 8dec869

@vercel
Copy link

@vercel vercel bot commented on 8dec869 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

bible-app-ubqz – ./

bible-study.vercel.app
bible-app-ubqz-atticus64.vercel.app
bible-app-ubqz-git-main-atticus64.vercel.app

Please sign in to comment.