forked from janus-idp/backstage-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from mareklibra/projectEmptyState
Add Empty state to the Projects page
- Loading branch information
Showing
4 changed files
with
64 additions
and
9 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,30 @@ | ||
import React from 'react'; | ||
import { Card, makeStyles, Typography } from '@material-ui/core'; | ||
import { Link } from '@backstage/core-components'; | ||
import { InfoOutlined } from '@material-ui/icons'; | ||
import { useCommonStyles } from '../styles'; | ||
|
||
export const useStyles = makeStyles({ | ||
paddingtop: {'padding-top': '2rem'}, | ||
}); | ||
|
||
export const EmptyProjectsState = () => { | ||
const commonStyles = useCommonStyles(); | ||
const styles = useStyles(); | ||
|
||
return ( | ||
<Card className={`${commonStyles.center} ${styles.paddingtop}`}> | ||
<InfoOutlined fontSize="large" className={commonStyles.centericon} /> | ||
<Typography variant="h6"> | ||
You don’t have any projects on here yet! | ||
</Typography> | ||
<Typography paragraph> | ||
To start using Orion, you’ll first need to initiate a project | ||
assessment. | ||
</Typography> | ||
<Typography paragraph> | ||
<Link to="/orion/newproject">GET STARTED</Link> | ||
</Typography> | ||
</Card> | ||
); | ||
}; |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { makeStyles } from '@material-ui/core'; | ||
|
||
export const useCommonStyles = makeStyles({ | ||
center: { | ||
'text-align': 'center', | ||
}, | ||
inlineicon: { | ||
'vertical-align': 'bottom', | ||
}, | ||
centericon: { | ||
'margin-left': '50%', | ||
}, | ||
floatright: { | ||
float: 'right', | ||
}, | ||
}); |