All files / pages/services consultations.js

0% Statements 0/15
0% Branches 0/2
0% Functions 0/7
0% Lines 0/15

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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157                                                                                                                                                                                                                                                                                                                         
import DottedLine from '../../components/DottedLine'
import Link from 'next/link'
import { useRouter } from 'next/router'
import en from '../../locales/services/en'
import fr from '../../locales/services/fr'
 
export default function Consultations({ locale }) {
  const router = useRouter()
  const t = locale === 'en' ? en : fr
  return (
    <div className="max-w-3xl mx-auto p-2">
      <h1 className="text-center">{t.consultations}</h1>
      <DottedLine />
      <section className="w-full mx-auto md:w-5/6 border-b-2 pb-5 pt-5 mb-6">
        <div className="flex flex-col md:flex-row gap-5 md:mb-4 items-center md:mx-10">
          <img src="/consultations.png" alt="" className="md:w-96" />
          <div>
            <button
              onClick={() => router.push('/services/workshops')}
              className="bg-periwinkle text-white rounded-full py-1 px-4 hover:bg-darkPeriwinkle"
            >
              {t.nextService}
            </button>
          </div>
        </div>
        <p className="text-center text-periwinkle text-lg font-bold">
          {t.consultationsBlurb}
        </p>
      </section>
      <section className="space-y-6">
        <div className="space-y-2">
          <h2 className="text-lg text-periwinkle font-bold">{t.walkIns}</h2>
          <p className="mb-2">{t.walkInsP}</p>
          <Link href="/contact">
            <a className="text-periwinkle underline">{t.walkInsA}</a>
          </Link>
        </div>
        <div className="space-y-2">
          <h2 className="text-lg text-periwinkle font-bold">{t.discovery}</h2>
          <p>{t.discoveryP1}</p>
          <p>
            {t.discoveryP2}{' '}
            <Link href="/belt-assessment/belt-system">
              <a className="text-periwinkle underline">{t.discoveryBeltA}</a>
            </Link>{' '}
            {t.discoveryP3}
          </p>
          <p>{t.discoveryP4}</p>
        </div>
        <div className="space-y-2">
          <h2 className="text-lg text-periwinkle font-bold">{t.ob}</h2>
          <p>{t.obP1}</p>
          <p>{t.obP2}</p>
          <ul className="list-disc list-inside ml-5">
            <li>{t.obLi1}</li>
            <li>{t.obLi2}</li>
            <li>{t.obLi3}</li>
            <li>{t.obLi4}</li>
            <li>{t.obLi5}</li>
          </ul>
          <p>{t.obP3}</p>
          <ul>
            <li>{t.obLi6}</li>
            <li>{t.obLi7}</li>
          </ul>
        </div>
        <div className="space-y-2">
          <h2 className="text-lg text-periwinkle font-bold">{t.skill}</h2>
          <p>{t.skillP1}</p>
          <p>{t.skillP2}:</p>
          <ul className="list-disc list-inside ml-5">
            <li>{t.skillLi1}</li>
            <li>{t.skillLi2}</li>
            <li>{t.skillLi3}</li>
            <li>{t.skillLi4}</li>
          </ul>
        </div>
        <div className="space-y-2">
          <h2 className="text-lg text-periwinkle font-bold">{t.fac}</h2>
          <p>{t.facP1}</p>
          <p>{t.facP2}</p>
          <ul className="list-disc list-inside ml-5">
            <li>{t.facLi1}</li>
            <li>{t.facLi2}</li>
            <li>{t.facLi3}</li>
            <li>{t.facLi4}</li>
            <li>{t.facLi5}</li>
            <li>{t.facLi6}</li>
            <li>{t.facLi7}</li>
          </ul>
          <p>{t.facP3}</p>
          <ul className="list-disc list-inside ml-5">
            <li>{t.facLi8}</li>
            <li>{t.facLi9}</li>
            <li>{t.facLi10}</li>
            <li>{t.facLi11}</li>
            <li>{t.facLi12}</li>
            <li>{t.facLi13}</li>
            <li>{t.facLi14}</li>
            <li>{t.facLi15}</li>
          </ul>
          <p>{t.facP4}</p>
          <ul className="list-disc list-inside ml-5">
            <li>{t.facLi16}</li>
            <li>{t.facLi17}</li>
            <li>{t.facLi18}</li>
            <li>{t.facLi19}</li>
            <li>{t.facLi20}</li>
            <li>{t.facLi21}</li>
            <li>{t.facLi22}</li>
          </ul>
        </div>
      </section>
      <div className="mt-10 space-x-5">
        <button
          onClick={() => router.push('/services')}
          className="bg-periwinkle text-white rounded-full py-1 px-4 hover:bg-darkPeriwinkle w-32"
        >
          {t.back}
        </button>
        <button
          onClick={() => router.push('/services/workshops')}
          className="bg-periwinkle text-white rounded-full py-1 px-4 hover:bg-darkPeriwinkle w-32"
        >
          {t.nextService}
        </button>
      </div>
    </div>
  )
}
 
export async function getStaticProps({ locale }) {
  /* istanbul ignore next */
  const langToggleLink =
    locale === 'en' ? '/fr/services/consultations' : '/services/consultations'
 
  /* Place-holder Meta Data Props */
  const meta = {
    data_en: {
      title: 'Digital Dojo - Consulations',
      desc: 'English',
      author: '',
      keywords: '',
    },
    data_fr: {
      title: 'Dojo Numérique - Consulations',
      desc: 'Français',
      author: '',
      keywords: '',
    },
  }
 
  return {
    props: { locale, langToggleLink, meta },
  }
}