-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 #6002 from aws-amplify/renbran/home-banner
Added What's New Banner
- Loading branch information
Showing
5 changed files
with
43 additions
and
2 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
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,24 @@ | ||
import { Link, View } from '@aws-amplify/ui-react'; | ||
import { FiArrowRightCircle } from 'react-icons/fi'; | ||
import { BannerContainer } from './styles'; | ||
|
||
export default function WhatsNewBanner({ href, content }) { | ||
return ( | ||
<BannerContainer> | ||
<Link | ||
href={href} | ||
padding={'4px 16px'} | ||
borderRadius={16} | ||
backgroundColor={'var(--amplify-colors-neutral-90)'} | ||
display={'inline-flex'} | ||
color={'white'} | ||
> | ||
<span> | ||
<b>What's New: </b> | ||
{content} | ||
</span> | ||
<FiArrowRightCircle style={{ marginLeft: 8, alignSelf: 'center' }} /> | ||
</Link> | ||
</BannerContainer> | ||
); | ||
} |
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,12 @@ | ||
import styled from '@emotion/styled'; | ||
import { MQTablet, MQLaptop } from '../media'; | ||
|
||
export const BannerContainer = styled.div` | ||
text-align: center; | ||
display: none; | ||
${MQLaptop} { | ||
display: block; | ||
margin-top: 24px; | ||
} | ||
`; |
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