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 | 2x 2x 2x 1x 1x 1x | import { useRouter } from 'next/router' import DottedLine from '../../components/DottedLine' import en from '../../locales/services/en' import fr from '../../locales/services/fr' export default function Services({ 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.ourServices}</h1> <p className="text-center">{t.ourServicesP}</p> <DottedLine /> <h2 className="font-bold mb-2">{t.selectService}</h2> <div className="md:grid grid-cols-3 gap-6"> <div className="border-2 space-y-2 py-2"> <img src="/consultations.png" alt="" className="w-1/2 mx-auto" /> <h3 className="text-white bg-[#5099c3] text-lg text-center"> {t.consultations} </h3> <p className="text-sm w-5/6 text-center mx-auto h-40"> {t.consultationsP} </p> <button className="bg-periwinkle rounded-full text-white py-1 px-2 text-sm mx-auto flex" onClick={() => router.push('/services/consultations')} > {t.learnMore} </button> </div> <div className="border-2 space-y-2 py-2"> <img src="/consultations.png" alt="" className="w-1/2 mx-auto" /> <h3 className="text-white bg-[#49a292] text-lg text-center"> {t.workshops} </h3> <p className="text-sm w-5/6 text-center mx-auto h-40"> {t.workshopsP} </p> <button onClick={() => router.push('/services/workshops')} className="bg-periwinkle rounded-full text-white py-1 px-2 text-sm flex mx-auto" > {t.learnMore} </button> </div> <div className="border-2 space-y-2 py-2"> <img src="/consultations.png" alt="" className="w-1/2 mx-auto" /> <h3 className="text-white bg-[#d270ac] text-lg text-center"> {t.challenges} </h3> <p className="text-sm w-5/6 text-center mx-auto h-40"> {t.challengesP} </p> <button onClick={() => router.push('/services/challenges')} className="bg-periwinkle rounded-full text-white py-1 px-2 text-sm flex mx-auto" > {t.learnMore} </button> </div> </div> </div> ) } export async function getStaticProps({ locale }) { /* istanbul ignore next */ const langToggleLink = locale === 'en' ? '/fr/services' : '/services' /* Place-holder Meta Data Props */ const meta = { data_en: { title: 'Digital Dojo - Our Services', desc: 'English', author: '', keywords: '', }, data_fr: { title: 'Dojo Numérique - Nos Services', desc: 'Français', author: '', keywords: '', }, } return { props: { locale, langToggleLink, meta }, } } |