-
Notifications
You must be signed in to change notification settings - Fork 29
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 #762 from onflow/staging
Merge to Production
- Loading branch information
Showing
7 changed files
with
110 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,61 @@ | ||
import React from 'react'; | ||
import { SXStyles } from 'src/types'; | ||
import { Box, Flex, Link, useThemeUI } from 'theme-ui'; | ||
|
||
const Announcement = () => { | ||
const context = useThemeUI(); | ||
const { theme } = context; | ||
|
||
const styles: SXStyles = { | ||
root: { | ||
backgroundColor: 'white', | ||
flex: '1 1 auto', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'space-between', | ||
background: '#F27360', | ||
width: '100%', | ||
padding: '0.25rem 0 0.5rem', | ||
height: '60px', | ||
color: `${theme.colors.secondary}`, | ||
}, | ||
message: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
textAlign: 'center', | ||
color: `${theme.colors.secondary}`, | ||
fontSize: '14px', | ||
padding: '0.15rem', | ||
}, | ||
devLink: { | ||
textDecoration: 'underline', | ||
color: `${theme.colors.secondary}`, | ||
}, | ||
}; | ||
|
||
return ( | ||
<Flex sx={styles.root}> | ||
<Box sx={styles.message}>⚠ Upgrade to Cadence 1.0</Box> | ||
<Box sx={styles.message}> | ||
The Crescendo network upgrade, including Cadence 1.0, is coming soon. | ||
You most likely need to update all your contracts/transactions/scripts | ||
to support this change. | ||
</Box> | ||
<Box sx={styles.message}> | ||
Please visit our migration guide here: | ||
<Link | ||
sx={styles.devLink} | ||
target="_blank" | ||
href="https://developers.flow.com/build/cadence-migration-guide" | ||
rel="noreferrer" | ||
title="Report a Bug" | ||
> | ||
https://developers.flow.com/build/cadence-migration-guide | ||
</Link> | ||
</Box> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default Announcement; |
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,27 @@ | ||
import React from 'react'; | ||
import AnnouncementBar from './Announcement'; | ||
import TopNav from '.'; | ||
import { isMobile } from '../Editor/CadenceEditor/ControlPanel/utils'; | ||
|
||
const headerStyle: React.CSSProperties = { | ||
display: 'flex', | ||
gridArea: 'header', | ||
flexDirection: 'column' as 'column', | ||
alignItems: 'center', | ||
justifyContent: 'left', | ||
}; | ||
|
||
const Header = ({ | ||
isAnnouncementVisible, | ||
}: { | ||
isAnnouncementVisible: boolean; | ||
}) => { | ||
return ( | ||
<header style={headerStyle}> | ||
{!isMobile() && isAnnouncementVisible && <AnnouncementBar />} | ||
<TopNav /> | ||
</header> | ||
); | ||
}; | ||
|
||
export default Header; |
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
d9917bd
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:
flow-playground – ./
flow-playground-onflow.vercel.app
flow-playground-git-production-onflow.vercel.app
play.onflow.org
play.flow.com
flow-playground.vercel.app