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
45 changes: 43 additions & 2 deletions docs/.vuepress/components/TestimonyRiver.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ const initials = (n: string) =>
.join('')
.toUpperCase();

/* The role, split so the linked organization becomes a link. */
function roleParts(t: Testimony): { text: string; url?: string }[] {
const role = t.role ?? '';
const i = t.link ? role.indexOf(t.link.text) : -1;
if (!t.link || i < 0) return [{ text: role }];
return [
{ text: role.slice(0, i) },
{ text: t.link.text, url: t.link.url },
{ text: role.slice(i + t.link.text.length) },
].filter((p) => p.text);
}

const moreLabel = computed(() =>
open.value
? r.value.showLess
Expand Down Expand Up @@ -178,7 +190,24 @@ function openFromRiver(e: MouseEvent) {
<p class="rv-q">&ldquo;{{ e.t.quote }}&rdquo;</p>
<p class="rv-who">
<b>{{ e.t.name }}</b>
<small v-if="e.t.role"> {{ e.t.role }}</small>
<small v-if="e.t.role">
<template
v-for="(part, pi) in roleParts(e.t)"
:key="pi"
><a
v-if="part.url"
:href="part.url"
target="_blank"
rel="noopener"
:tabindex="
copy === 2 ? -1 : undefined
"
>{{ part.text }}</a
><template v-else>{{
part.text
}}</template></template
></small
>
<small v-if="e.t.gave">
{{ r.supporter }}</small
>
Expand Down Expand Up @@ -303,8 +332,20 @@ function openFromRiver(e: MouseEvent) {
.rv-who small {
font-size: inherit;
}
.rv-who small a {
color: inherit;
text-decoration: underline;
text-decoration-color: var(--line-strong);
text-underline-offset: 3px;
}
@media (hover: hover) {
.rv-who small a:hover {
color: var(--text);
text-decoration-color: currentColor;
}
}
.rv-who small::before {
content: '\00b7\00a0';
content: '\00a0\00b7\00a0';
}
.rv-face {
flex: none;
Expand Down
Binary file added docs/.vuepress/public/people/samson-usmael.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions docs/.vuepress/testimonies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export interface Testimony {
quote: string;
/** True if they also support AO Lab. */
gave?: boolean;
/**
* Optional link to their organization or project, as thanks for the
* testimony. `text` is the part of `role` that becomes the link.
*/
link?: { text: string; url: string };
}

/* From the case for support. */
Expand All @@ -43,8 +48,16 @@ export const TESTIMONIES: Testimony[] = [
name: 'Ryder Wishart, PhD',
role: 'CEO, Frontier R&D, makers of Aquilla',
photo: '/people/ryder-wishart.jpg',
link: { text: 'Aquilla', url: 'https://aquilla.app/' },
quote: 'It’s the best Bible API ever. It’s on seedbible.org (the best Bible reading environment) and we use it in aquilla.app.',
},
{
name: 'Samson Usmael',
role: 'Agelgel, makers of Turumba',
photo: '/people/samson-usmael.jpg',
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: 'Maxwell Warren',
role: 'Building an open source Bible app',
Expand Down
Loading