-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust desktop add edit testimony #1331
Merged
sashamaryl
merged 10 commits into
codeforboston:main
from
hanboyu:Adjust-desktop-add-edit-testimony
Oct 13, 2023
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e4cb5e3
Adjust copy on desktop add/edit testimony #1305
a6083ab
Adjusted add testimony step 1
db7cb39
Merge branch 'main' of https://github.com/codeforboston/maple into Ad…
e0ba082
Added side note for write testimony
2d2c744
Added text for submit testimony
b19bbfa
Revert "Adjust copy on desktop add/edit testimony #1305"
288dfcb
Merge branch 'main' of https://github.com/codeforboston/maple into Ad…
7bb962d
Cleaned up some if statements
3019351
Fixed build error in StepHeader
c6a9764
Ran prettier
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,72 @@ | ||
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Here is the error logs from the vercel build. This is failing because StepChip props type doesn't include 'style'.
One way to resolve this error, since it's already a styled component, would be to extend it using styledcomponents when you need to: https://styled-components.com/docs/basics#extending-styles