Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions docs/.vuepress/components/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ function whenVisible(

// A label may carry a "\n" where the line should break on wide screens.
const causeLines = computed(() => labels.value.home.causeTitle.split('\n'));
const englishLines = computed(() =>
labels.value.home.englishTitle.split('\n')
);

onMounted(() => {
confetti();
Expand Down Expand Up @@ -643,7 +646,13 @@ onBeforeUnmount(() => {

<section class="section beat fg" id="english">
<div class="shell">
<h2 class="fg-h">{{ labels.home.englishTitle }}</h2>
<h2 class="fg-h">
<template v-for="(line, i) in englishLines" :key="i"
><br v-if="i" class="lb" />{{
i ? ' ' + line : line
}}</template
>
</h2>
<p class="fg-p fg-p-wide">{{ labels.home.englishBody }}</p>
</div>
</section>
Expand Down Expand Up @@ -1018,9 +1027,13 @@ onBeforeUnmount(() => {
max-width: none;
}
@media (max-width: 720px) {
.cause-h br.lb {
.cause-h br.lb,
#english .fg-h br.lb {
display: none;
}
#english .fg-h {
max-width: 28ch;
}
.cause-h.has-break {
max-width: 22ch;
}
Expand Down Expand Up @@ -1205,7 +1218,7 @@ onBeforeUnmount(() => {
text-wrap: balance;
}
#english .fg-h {
max-width: 28ch;
max-width: none;
font-size: clamp(32px, 3.9vw, 54px);
}
#english {
Expand Down
6 changes: 3 additions & 3 deletions docs/.vuepress/components/TestimonyRiver.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
/**
* The testimony river under the cause heading on the home page. One lane of
* testimony cards drifts by, with "Your testimony here" second and then after
* testimony cards drifts by, with "Your testimony here" third and then after
* every three. Once there are EXPAND_AT testimonies, "See all" opens it into
* several lanes moving at different speeds. Lanes pause on hover and focus,
* and hold still for reduced motion. Data in ../testimonies.ts.
Expand Down Expand Up @@ -49,7 +49,7 @@ const canOpen = computed(() => items.value.length >= EXPAND_AT);
type Entry = { invite: true } | { invite: false; t: Testimony };

/* An invite after testimony number `from`, then after every three more. The
first lane uses 0, so the invite is the second card on the page. Other
first lane uses 1, so the invite is the third card on the page. Other
lanes start later, so the invites never line up in a column. */
function sequence(list: Testimony[], from: number): Entry[] {
const out: Entry[] = [];
Expand All @@ -75,7 +75,7 @@ const lanes = computed(() => {
list.forEach((t, i) => groups[i % k].push(t));
}
return groups.map((g, i) => ({
entries: sequence(g, [0, 2, 1][i % 3]),
entries: sequence(g, [1, 0, 2][i % 3]),
rev: i % 2 === 1,
secs: Math.round(Math.max(36, g.length * 1.4 * 9) * (1 + i * 0.25)),
}));
Expand Down
6 changes: 3 additions & 3 deletions docs/.vuepress/labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"selectLanguage": "Select language"
},
"home": {
"milestone": "Celebrating 100,000,000+ API requests this year!",
"milestone": "Celebrating 115+ million API calls this year!",
"tagline": "An easy-to-use and fully featured JSON API for Scripture.",
"quickStart": "Quick Start",
"more": "Together we can build an open ecosystem for global Christianity.",
Expand Down Expand Up @@ -121,8 +121,8 @@
}
},
"forbidEnd": "Under these terms, Timothy could not have obeyed Paul.",
"englishTitle": "Without adapting and sharing Scripture, we would have no English Bible.",
"englishBody": "Yet many modern translators adapt work they cannot attribute, then demand attribution and forbid adaptation.",
"englishTitle": "Without adapting and sharing Scripture,\nwe would have no modern Bible translations.",
"englishBody": "Yet most translators today adapt work they cannot attribute, then demand attribution and forbid adaptation.",
"hinderTitle": "But that’s not Paul’s attitude.",
"licencesTitle": "Even in our API, few translations are ideal.",
"licenceUses": {
Expand Down
12 changes: 6 additions & 6 deletions docs/.vuepress/testimonies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ export interface Testimony {

/* From the case for support. */
export const TESTIMONIES: Testimony[] = [
{
name: 'Ted Hallum',
role: 'Director of Analytics & Information Management, Ligonier Ministries',
photo: '/people/ted-hallum.jpg',
quote: 'If you’re a Christian developer wanting to incorporate God’s Word into your project unencumbered, then AO Lab’s Free Use Bible API is the single most important piece of infrastructure on planet Earth.',
},
{
name: 'Ryder Wishart, PhD',
role: 'CEO, Frontier R&D, makers of Aquilla',
Expand All @@ -58,6 +52,12 @@ export const TESTIMONIES: Testimony[] = [
link: { text: 'Turumba', url: 'https://turumba.net/' },
quote: 'As someone in Ethiopia, I can tell you access to the Bible has been difficult. This opens a new door for creators to create, for innovators to innovate, and to take the word of God to where people are.',
},
{
name: 'Ted Hallum',
role: 'Director of Analytics & Information Management, Ligonier Ministries',
photo: '/people/ted-hallum.jpg',
quote: 'If you’re a Christian developer wanting to incorporate God’s Word into your project unencumbered, then AO Lab’s Free Use Bible API is the single most important piece of infrastructure on planet Earth.',
},
{
name: 'Maxwell Warren',
role: 'Building an open source Bible app',
Expand Down
Loading