Skip to content

Commit

Permalink
Merge pull request #864 from hackforla/#704-landing-page-cp
Browse files Browse the repository at this point in the history
#704 - updated landing page
  • Loading branch information
sydneywalcoff authored Mar 6, 2023
2 parents 6a429cd + 4a97f71 commit e1d6b3c
Show file tree
Hide file tree
Showing 9 changed files with 437 additions and 91 deletions.
3 changes: 3 additions & 0 deletions products/statement-generator/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ module.exports = {
'prettier/prettier': 'warn',
'no-use-before-define': 'off',
'import/extensions': 'off',

// makes alias imports legal
'import/no-unresolved': 'off',
'react/jsx-filename-extension': [
2,
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
Expand Down
27 changes: 22 additions & 5 deletions products/statement-generator/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,28 @@
"sectionTitle1": "The quick and easy way to create a declaration letter",
"sectionParagraph1": "This tool guides justice impacted individuals through the declaration letter writing process to accelerate their path toward record clearance.",
"sectionTitle2": "What is Expunge Assist?",
"sectionParagraph2": "Expunge Assist aims to help people in California with criminal records accomplish record clearance, expungement, or a reduction and subsequently a second chance as a part of society.\n\nWe work with verifiable non-profits, the government, and partners to build digital tools that can affect changes in the lives of justice impacted individuals.\n\nOur first product, a declaration letter generator, will help streamline the expungement application process.",
"sectionTitle3": "Partnership opportunities",
"sectionParagraph3": "Expunge Assist is currently looking for partner organizations to refine and tailor the product to the needs of their organizations. Reach out to learn more.",
"sectionTitle4": "The team",
"sectionParagraph4": "We are a group of volunteer designers, engineers, researchers, writers, and activists who are using the power of technology to improve LA County."
"sectionParagraph2": "Expunge Assist is a non-profit organization under Hack for LA. We aim to help people with criminal records accomplish record clearance, expungement, or a reduction to their sentence.\n\nAs of now, this service is only available to people who have criminal records in California.",
"sectionTitle3": "Making letter writing less intimidating",
"sectionParagraph3": "This is a tool for applicants who are writing a letter to a judge that addresses their progress and motivations for seeking expungement.",
"sectionParagraph3BulletPoint1": "Targeted question prompts guide the writer",
"sectionParagraph3BulletPoint2": "Sections help keep writing organized",
"sectionParagraph3BulletPoint3": "Edit function gives reader control",
"sectionTitle4": "How it works",
"sectionParagraph4": "We provide step-by-step guidance through the\nprocess of writing and downloading a letter to\na judge for your expungement application.",
"sectionTitle5": "A complete letter",
"sectionParagraph5a": "This tool results in a complete and downloadable declaration letter.",
"sectionParagraph5b": "We recommend applicants meet with a lawyer or clinic to review the letter before submitting it to a judge. ",
"sectionTitle6": "Committed to data safety",
"sectionParagraph6": "To keep your data safe, Expunge Assist does not share, store, or save anything you enter into this website on any server.\n\nWhen you close the webpage, your data is erased forever, everywhere. Only you keep your downloaded or emailed copy.",
"sectionTitle7": "Frequently asked questions",
"section7Dropdown1Title": "Why do I need a declaration letter?",
"section7Dropdown1Paragraph": "When you file a petition with the court, you have the opportunity to attach a personal letter called a “declaration letter” explaining why you deserve a fresh start.\n\nThe declaration letter is your opportunity to explain to a judge why you want your criminal record cleared or your charges reduced. A declaration letter can help your case by adding your personal reasons and motivation to your legal case.\n",
"section7Dropdown2Title": "Why does expungement or reclassification matter to me?",
"section7Dropdown2Paragraph": "The word “expungement” can be confusing. Expungement means that in most cases your past criminal record cannot be used against you when applying for a job, housing or student loans. You also regain some of your rights like serving on a jury or owning a gun.\n\nEven though your criminal record does not disappear from the public record forever, your record will be updated to show that the conviction has been dismissed.\n\nReclassification allows you to change past felony convictions to a misdemeanor, even if you have served a sentence and parole. Once the felony has been removed from your criminal record, you may be eligible for benefits not previously available to you.\n",
"section7Dropdown3Title": "Can law enforcement get a search warrant to access my data on this site?",
"section7Dropdown3Paragraph": "No. Even if law enforcement were to search this site for your data, there would be no data to find. We do not store or save any of your data, ever. There would be nothing to find.\n",
"sectionTitle8": "Partnership opportunities",
"sectionParagraph8": "Expunge Assist is currently looking for partner organizations to refine and tailor the\nproduct to the needs of their organizations. Contact us to learn more."
},
"before_you_begin_page": {
"header": "Before you begin",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 88 additions & 0 deletions products/statement-generator/src/components/LandingAccordions.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import React from 'react';
import { makeStyles, createStyles } from '@material-ui/core';
import Accordion from '@material-ui/core/Accordion';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import Typography from '@material-ui/core/Typography';
import AccordionDetails from '@material-ui/core/AccordionDetails';
import { useTranslation } from 'react-i18next';
import MuiAccordionSummary, {
AccordionSummaryProps,
} from '@material-ui/core/AccordionSummary';
import { styled } from '@material-ui/core/styles';

const useStyles = makeStyles(({ palette }) =>
createStyles({
accordionWrapper: {
width: '100%',
border: `1px solid ${palette.primary.main}`,
borderRadius: '16px!important',
},
'& .accordionSummary-expandIconWrapper.accordionSummary-expanded': {
transform: 'rotate(90deg)',
},
})
);

// override default MUI styling
const AccordionSummary = styled((props: AccordionSummaryProps) => (
<MuiAccordionSummary expandIcon={<ExpandMoreIcon />} {...props} />
))(() => ({
'& .MuiAccordionSummary-expandIconWrapper.Mui-expanded': {
transform: 'rotate(90deg)',
},
'& .MuiAccordionSummary-content .MuiTypography-root': {
fontWeight: '600',
},
}));

const LandingAccordions: React.FC = () => {
const { t } = useTranslation();
const classes = useStyles();
return (
<>
<Accordion
className={classes.accordionWrapper}
style={{ marginTop: '24px', marginBottom: '16px' }}
>
<AccordionSummary aria-controls="panel1-content" id="panel1-header">
<Typography>{t('landing_page.section7Dropdown1Title')}</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
{t('landing_page.section7Dropdown1Paragraph')}
</Typography>
</AccordionDetails>
</Accordion>

<Accordion
className={classes.accordionWrapper}
style={{ marginTop: '0', marginBottom: '16px' }}
>
<AccordionSummary aria-controls="panel2-content" id="panel2-header">
<Typography>{t('landing_page.section7Dropdown2Title')}</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
{t('landing_page.section7Dropdown2Paragraph')}
</Typography>
</AccordionDetails>
</Accordion>

<Accordion
className={classes.accordionWrapper}
style={{ marginTop: '0', marginBottom: '24px' }}
>
<AccordionSummary aria-controls="panel3-content" id="panel3-header">
<Typography>{t('landing_page.section7Dropdown3Title')}</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
{t('landing_page.section7Dropdown3Paragraph')}
</Typography>
</AccordionDetails>
</Accordion>
</>
);
};

export default LandingAccordions;
Loading

0 comments on commit e1d6b3c

Please sign in to comment.