Skip to content

Commit

Permalink
update: not found and 404 logo (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuash committed Mar 14, 2022
1 parent 34a88ad commit 2ee973f
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Unreleased

## Changes
- Updated not found and 404 logo ([\#792](https://github.com/forbole/big-dipper-2.0-cosmos/issues/792))

# base-v2.0.0 - 2021-03-10

## Changes
Expand Down
64 changes: 64 additions & 0 deletions src/assets/not-found-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions src/assets/not-found-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions src/components/no_data/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,27 @@ import React from 'react';
import classnames from 'classnames';
import useTranslation from 'next-translate/useTranslation';
import { Typography } from '@material-ui/core';
import { Face } from '@material-ui/icons';
import { useRecoilValue } from 'recoil';
import { readTheme } from '@recoil/settings/selectors';
import NotFoundLight from '@assets/not-found-light.svg';
import NotFoundDark from '@assets/not-found-dark.svg';
import { useStyles } from './styles';

const NoData: React.FC<{
className?: string;
}> = ({ className }) => {
const classes = useStyles();
const { t } = useTranslation('common');
const theme = useRecoilValue(readTheme);

return (
<div className={classnames(className, classes.root)}>
<div className={classes.content}>
<Face />
{theme === 'light' ? (
<NotFoundLight />
) : (
<NotFoundDark />
)}
<Typography variant="body1">
{t('nothingToShow')}
</Typography>
Expand Down
8 changes: 3 additions & 5 deletions src/components/no_data/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ export const useStyles = () => {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
minHeight: '150px',
minHeight: '400px',
'& .MuiTypography-body1': {
color: theme.palette.divider,
},
'& .MuiSvgIcon-root': {
color: theme.palette.divider,
marginTop: theme.spacing(2),
color: theme.palette.custom.fonts.fontFour,
},
},
content: {
Expand Down
Loading

0 comments on commit 2ee973f

Please sign in to comment.