-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1331 from hanboyu/Adjust-desktop-add-edit-testimony
Adjust desktop add edit testimony
- Loading branch information
Showing
4 changed files
with
122 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
import styled from "styled-components" | ||
import { Image } from "../bootstrap" | ||
import { Step } from "./redux" | ||
|
||
export const KeepNote = (props: { currentStep: Step }) => { | ||
return ( | ||
<NoteContainer> | ||
<HeaderContainer>Keep Note</HeaderContainer> | ||
{props.currentStep == "selectLegislators" || | ||
props.currentStep == "write" ? ( | ||
<NoteContentForWrite /> | ||
) : ( | ||
<NoteContentForSend /> | ||
)} | ||
</NoteContainer> | ||
) | ||
} | ||
|
||
export const NoteContentForWrite = () => { | ||
return ( | ||
<NoteContent> | ||
<div className="text-center"> | ||
<Image | ||
className="px-5" | ||
alt="" | ||
src="/mailbox.svg" | ||
style={{ transform: "scaleY(0.85)" }} | ||
/> | ||
</div> | ||
<NoteSubtitle>Please keep in mind...</NoteSubtitle> | ||
<ul> | ||
<NoteItem> | ||
<u>We do not send an email for you.</u> This is a preview of what your | ||
email to legislators will look like. On the next page, you will be | ||
asked to “send email” which will open your email client (e.g., | ||
Outlook) and populate an email with your testimony. | ||
</NoteItem> | ||
<NoteItem> | ||
Your testimony needs to be shared with the right legislators. Your | ||
email “To:” box will be populated with the legislators you add here. | ||
We've pre-populated this with the most relevant legislators: 1) the | ||
Chairs of the Committee reviewing this bill; and 2) your own | ||
legislators. | ||
</NoteItem> | ||
<NoteItem> | ||
When you send this email, you are submitting formal public testimony! | ||
As fellow constituents, we thank you for your sharing your voice. | ||
</NoteItem> | ||
</ul> | ||
</NoteContent> | ||
) | ||
} | ||
|
||
export const NoteContentForSend = () => { | ||
return ( | ||
<NoteContent> | ||
<div className="text-center"> | ||
<Image className="mx-auto" alt="" src="/computertextblob.svg" /> | ||
</div> | ||
<NoteSubtitle>Rules for Testimony on MAPLE:</NoteSubtitle> | ||
<ul style={{ color: "var(--bs-blue)" }}> | ||
<NoteItem> | ||
You can edit your testimony up to 5 times but the previous versions | ||
will remain available. | ||
</NoteItem> | ||
<NoteItem> | ||
Since MAPLE is an archive you cannot remove your testimony from the | ||
site. | ||
</NoteItem> | ||
<NoteItem>Don't forget to send the email to your legislator.</NoteItem> | ||
</ul> | ||
</NoteContent> | ||
) | ||
} | ||
|
||
const NoteContainer = styled.div` | ||
background: var(--bs-body-bg); | ||
display: flex; | ||
flex-direction: column; | ||
padding: 0rem 0rem 1rem 0rem; | ||
height: 100%; | ||
`, | ||
HeaderContainer = styled.h4` | ||
background: var(--bs-orange); | ||
color: var(--bs-white); | ||
padding: 1rem 0rem 1rem 0rem; | ||
text-align: center; | ||
`, | ||
NoteSubtitle = styled.p` | ||
color: var(--bs-blue); | ||
font-weight: 700; | ||
padding: 10px; | ||
`, | ||
NoteContent = styled.div` | ||
line-height: normal; | ||
`, | ||
NoteItem = styled.li` | ||
margin-top: 20px; | ||
font-weight: 500; | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6cad8c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
maple-dev – ./
maple-dev-git-main-maple-testimony.vercel.app
maple-dev.vercel.app
maple-dev-maple-testimony.vercel.app