-
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.
- Loading branch information
1 parent
0daea46
commit a450939
Showing
3 changed files
with
20 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import styled from 'styled-components'; | ||
import { spacings } from '../../../tokens/spacings'; | ||
import { theme } from '../../../tokens/theme'; | ||
|
||
const StyledImg = styled.img` | ||
scale: 85%; | ||
`; | ||
export const TextDiv = styled.div` | ||
export const NoResults = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
row-gap: ${spacings.MEDIUM}; | ||
padding: ${spacings.X_LARGE}; | ||
a { | ||
color: ${theme.light.primary.resting}; | ||
display: inline-block; | ||
margin-inline: 0.2em; | ||
} | ||
`; | ||
export { StyledImg as Img }; |
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 |
---|---|---|
@@ -1,29 +1,18 @@ | ||
import { Typography } from '@equinor/eds-core-react'; | ||
import { InfoPageComponent } from '../../../components/InfoPageComponent/InfoPageComponent'; | ||
import NoResultPicture from './NoResults.jpeg'; | ||
import * as Styled from './NoResults.styled'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
export const NoResults = () => { | ||
return ( | ||
<InfoPageComponent scaleHight="true"> | ||
<Styled.Img src={NoResultPicture} alt="altText" /> | ||
<Styled.TextDiv> | ||
<Typography variant="h4"> | ||
Oh no! It seems we don’t have any results for this model yet | ||
</Typography> | ||
<Typography variant="body_long"> | ||
To get started, try adding cases to the <span> </span> | ||
<Typography link href={'../compute/variogram'}> | ||
variogram | ||
</Typography> | ||
<span> </span> | ||
or <span> </span> | ||
<Typography link href={'../compute/object'}> | ||
object | ||
</Typography> | ||
<span> </span> page. | ||
</Typography> | ||
</Styled.TextDiv> | ||
</InfoPageComponent> | ||
<Styled.NoResults> | ||
<Typography variant="h2">No results found</Typography> | ||
<Typography variant="body_long"> | ||
Please check your compute settings for | ||
<Link to={'../compute/variogram'}>variogram</Link> | ||
or | ||
<Link to={'../compute/object'}>object</Link> | ||
cases. | ||
</Typography> | ||
</Styled.NoResults> | ||
); | ||
}; |