All files / web/src/data abaciOneSubtitles.ts

100% Statements 36/36
100% Branches 1/1
100% Functions 1/1
100% Lines 36/36

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 371x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 12x 12x 12x  
/**
 * Abaci One hero value propositions
 * Rotating subtitles that communicate the core value to new visitors
 */
 
export interface Subtitle {
  text: string
  description: string
}
 
export const subtitles: Subtitle[] = [
  {
    text: 'Screen time that builds real math skills',
    description: 'productive screen time for kids',
  },
  {
    text: 'Math practice that adapts to your child',
    description: 'adaptive difficulty system',
  },
  {
    text: 'Mental math starts here',
    description: 'abacus-based mental arithmetic',
  },
  {
    text: "The world's oldest calculator, reimagined",
    description: 'modern take on the abacus',
  },
]
 
/**
 * Get a random subtitle from the list
 */
export function getRandomSubtitle(): Subtitle {
  const index = Math.floor(Math.random() * subtitles.length)
  return subtitles[index]
}