generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(home): add beta banner, beta/legal alert (#560)
Adds the beta and legal alert to the unauthenticated home page. Closes #559 ## Changes - adds a beta banner to all pages - adds a beta/legal alert to the unauthenticated home page ## How to test this PR 1. Take a peek at the preview site 2. See if the banner and alert look like the designs 3. Test out the links in the alert 4. Make sure the banner appears correct on other pages in the app ## Design questions - what should the subject line be for the `email our support staff` link in the Alert box on the unauthenticated home page? I set it to `[BETA] Home page: Questions or suggestions` for now @natalia-fitzgerald ## Screenshots <img width="1884" alt="Screenshot 2024-05-21 at 11 32 50 PM" src="https://github.com/cfpb/sbl-frontend/assets/19983248/5feffa85-e8ae-41fa-831a-57c776c0217d"> ## Notes - Future post-mvp related PRs - cfpb/design-system-react#352 - cfpb/design-system-react#351
- Loading branch information
1 parent
8a2a49e
commit 9ace385
Showing
4 changed files
with
54 additions
and
1 deletion.
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
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,39 @@ | ||
import { Alert, Heading, Paragraph, Link } from 'design-system-react'; | ||
|
||
export default function BetaAndLegalNotice(): ReactElement { | ||
return ( | ||
<Alert | ||
className='mb-[2.813rem]' | ||
message={ | ||
<> | ||
<Heading type='2' className='h4 mb-[0.313rem]'> | ||
This is a beta for the small business lending data submission | ||
platform | ||
</Heading> | ||
<Paragraph> | ||
Thank you for participating. The data submission platform is | ||
available to upload, test, and validate data. All uploaded data is | ||
for testing purposes only and may be removed at any time. For | ||
questions or feedback,{' '} | ||
<Link href='mailto:[email protected]?subject=[BETA] Home page: Questions or suggestions'> | ||
email our support staff | ||
</Link> | ||
. | ||
</Paragraph> | ||
<Paragraph> | ||
In light of court orders in ongoing litigation, the CFPB plans to | ||
issue an interim final rule to extend the compliance dates of the | ||
small business lending rule.{' '} | ||
<Link href='https://www.consumerfinance.gov/1071-rule/'> | ||
Find out more | ||
</Link> | ||
</Paragraph> | ||
</> | ||
} | ||
status='warning' | ||
// TODO: allow setting to strip heading formatting in Alerts post-mvp | ||
// @ts-expect-error - See issue: https://github.com/cfpb/design-system-react/issues/351 | ||
headingLevel={null} | ||
/> | ||
); | ||
} |
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