|
1 | 1 | import { Container } from "react-bootstrap"
|
2 |
| -import AdditionalResourcesCard from "./AdditionalResourcesCard" |
3 |
| -import AdditionalResourcesCardContent from "./AdditionalResourcesCardContent" |
| 2 | +import { useTranslation, Trans } from "next-i18next" |
| 3 | +import * as links from "components/links" |
4 | 4 |
|
5 |
| -const content = [ |
6 |
| - { |
7 |
| - paragraph: { |
8 |
| - P1: ( |
9 |
| - <> |
10 |
| - The MA Legislature has an{" "} |
11 |
| - <a |
12 |
| - href="https://malegislature.gov/Search/FindMyLegislator" |
13 |
| - target="_blank" |
14 |
| - rel="noopener noreferrer" |
15 |
| - > |
16 |
| - online tool |
17 |
| - </a>{" "} |
18 |
| - you can use to identify your legislators based on your home address. |
19 |
| - </> |
20 |
| - ) |
21 |
| - } |
22 |
| - }, |
23 |
| - { |
24 |
| - paragraph: { |
25 |
| - P1: ( |
26 |
| - <> |
27 |
| - The MA Legislature publishes a{" "} |
28 |
| - <a |
29 |
| - href="https://www.mass.gov/doc/the-legislative-process-0/download" |
30 |
| - target="_blank" |
31 |
| - rel="noopener noreferrer" |
32 |
| - > |
33 |
| - document on the legislative process. |
34 |
| - </a> |
35 |
| - </> |
36 |
| - ) |
37 |
| - } |
38 |
| - }, |
39 |
| - { |
40 |
| - paragraph: { |
41 |
| - P1: ( |
42 |
| - <> |
43 |
| - Mass Legal Services published a 2007 guide to The{" "} |
44 |
| - <a |
45 |
| - href="https://www.masslegalservices.org/content/legislative-process-massachusetts-0" |
46 |
| - target="_blank" |
47 |
| - rel="noopener noreferrer" |
48 |
| - > |
49 |
| - Legislative Process in Massachusetts. |
50 |
| - </a> |
51 |
| - </> |
52 |
| - ) |
| 5 | +const AdditionalResources = () => { |
| 6 | + const content = [ |
| 7 | + { |
| 8 | + i18nKey: "find_legislator", |
| 9 | + href: "https://malegislature.gov/Search/FindMyLegislator" |
| 10 | + }, |
| 11 | + { |
| 12 | + i18nKey: "legislative_doc", |
| 13 | + href: "https://www.mass.gov/doc/the-legislative-process-0/download" |
| 14 | + }, |
| 15 | + { |
| 16 | + i18nKey: "legal_services", |
| 17 | + href: "https://www.masslegalservices.org/content/legislative-process-massachusetts-0" |
53 | 18 | }
|
54 |
| - } |
55 |
| -] |
| 19 | + ] |
| 20 | + const { t } = useTranslation("learnComponents") |
56 | 21 |
|
57 |
| -const AdditionalResources = () => { |
58 | 22 | return (
|
59 | 23 | <Container fluid="md" className="mt-3">
|
60 |
| - <h1 className={`fs-1 fw-bold text-center text-black`}> |
61 |
| - Additional Resources |
| 24 | + <h1 className="fs-1 fw-bold text-center text-black"> |
| 25 | + {t("legislative.additional_resources")} |
62 | 26 | </h1>
|
63 |
| - <p className={`fs-4 mx-5 my-3`}> |
64 |
| - We hope these pages will help you submit effective testimony. You may |
65 |
| - want to consult these other resources to build a more detailed |
66 |
| - understanding of the legislative process and how you can contribute. |
67 |
| - </p> |
68 |
| - {content.map((value, index) => ( |
69 |
| - <AdditionalResourcesCard key={index}> |
70 |
| - <AdditionalResourcesCardContent key={index}> |
71 |
| - {value.paragraph.P1} |
72 |
| - </AdditionalResourcesCardContent> |
73 |
| - </AdditionalResourcesCard> |
| 27 | + <p className="fs-4 mx-5 my-3">{t("legislative.resources_intro")}</p> |
| 28 | + |
| 29 | + {content.map(({ i18nKey, href }) => ( |
| 30 | + <div |
| 31 | + key={i18nKey} |
| 32 | + className="m-4 py-2 px-4 text-bg-light rounded-4 d-flex align-items-center align-items-sm-start" |
| 33 | + > |
| 34 | + <div className="d-flex flex-0 justify-content-xs-center p-4"> |
| 35 | + <p className="fs-4"> |
| 36 | + <Trans |
| 37 | + t={t} |
| 38 | + i18nKey={`legislative.${i18nKey}`} |
| 39 | + components={[<links.External href={href} />]} |
| 40 | + /> |
| 41 | + </p> |
| 42 | + </div> |
| 43 | + </div> |
74 | 44 | ))}
|
75 | 45 | </Container>
|
76 | 46 | )
|
|
0 commit comments