All files / pages/belt-assessment belt-system.js

0% Statements 0/4
0% Branches 0/2
0% Functions 0/2
0% Lines 0/4

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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54                                                                                                           
import BeltAssessment from '../../components/BeltAssessment'
import DottedLine from '../../components/DottedLine'
import en from '../../locales/belt-assessment/belt-assessment/en'
import fr from '../../locales/belt-assessment/belt-assessment/fr'
 
export default function BeltSystem({ locale }) {
  const t = locale === 'en' ? en : fr
  return (
    <div className="max-w-xl mx-auto">
      <h1 className="text-2xl text-periwinkle text-center mb-5">{t.title}</h1>
      <p className="mb-5">{t.p1}</p>
      <DottedLine />
      <h2 className="text-xl font-bold text-periwinkle mb-5">{t.h2}</h2>
      <p className="mb-5">
        {t.p2}
        <span className="font-bold"> {t.s1}</span> {t.p3}
        <span className="font-bold"> {t.s2}</span>
      </p>
      <p className="mb-5">{t.p4}</p>
      <p className="mb-5">{t.p5}</p>
 
      <BeltAssessment t={t} />
    </div>
  )
}
 
export async function getStaticProps({ locale }) {
  /* istanbul ignore next */
  const langToggleLink =
    locale === 'en'
      ? '/fr/belt-assessment/belt-system'
      : '/belt-assessment/belt-system'
 
  /* Place-holder Meta Data Props */
  const meta = {
    data_en: {
      title: 'Digital Dojo - Belt System',
      desc: 'English',
      author: '',
      keywords: '',
    },
    data_fr: {
      title: 'Dojo Numérique - Système de ceinture',
      desc: 'Français',
      author: '',
      keywords: '',
    },
  }
 
  return {
    props: { locale, langToggleLink, meta },
  }
}