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 | 6x 3x | import PropTypes from 'prop-types' import DateModified from '../components/DateModified' /** * footer element for all pages */ export default function Footer(props) { return ( <footer> <h2 className="sr-only">Site Footer</h2> <div className="container mx-auto px-6 mt-5 text-sm"> {props.t.reportProblem} </div> <DateModified text={props.t.dateModified} /> <div className="flex justify-end items-center px-10 w-full h-[4rem] bg-periwinkle"> <img src="/footer-logo.svg" alt={props.t.footerCanadaCaAltText} className="w-24" /> </div> </footer> ) } Footer.propTypes = { /** * Screenreader section indicator */ footerNav1: PropTypes.string, /** * Screenreader section indicator */ footerNav2: PropTypes.string, /** * array of objects containing the link text and link */ footerBoxLinks: PropTypes.arrayOf( PropTypes.shape({ footerBoxlink: PropTypes.string.isRequired, footerBoxLinkText: PropTypes.string.isRequired, }) ), /** * array of objects containing the link text and link */ links: PropTypes.arrayOf( PropTypes.shape({ link: PropTypes.string.isRequired, linkText: PropTypes.string.isRequired, }) ), } |