|
|
@ -12,14 +12,35 @@ import Servers from '../components/Servers'; |
|
|
|
import Header from '../components/Header'; |
|
|
|
import Header from '../components/Header'; |
|
|
|
import AnvilProvider from '../components/AnvilContext'; |
|
|
|
import AnvilProvider from '../components/AnvilContext'; |
|
|
|
|
|
|
|
|
|
|
|
const useStyles = makeStyles(() => ({ |
|
|
|
const useStyles = makeStyles((theme) => ({ |
|
|
|
child: { |
|
|
|
child: { |
|
|
|
width: '22%', |
|
|
|
width: '22%', |
|
|
|
height: '100%', |
|
|
|
height: '100%', |
|
|
|
|
|
|
|
[theme.breakpoints.down('lg')]: { |
|
|
|
|
|
|
|
width: '25%', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
[theme.breakpoints.down('md')]: { |
|
|
|
|
|
|
|
width: '100%', |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
server: { |
|
|
|
server: { |
|
|
|
width: '35%', |
|
|
|
width: '35%', |
|
|
|
height: '100%', |
|
|
|
height: '100%', |
|
|
|
|
|
|
|
[theme.breakpoints.down('lg')]: { |
|
|
|
|
|
|
|
width: '25%', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
[theme.breakpoints.down('md')]: { |
|
|
|
|
|
|
|
width: '100%', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
container: { |
|
|
|
|
|
|
|
display: 'flex', |
|
|
|
|
|
|
|
flexDirection: 'row', |
|
|
|
|
|
|
|
width: '100%', |
|
|
|
|
|
|
|
justifyContent: 'space-between', |
|
|
|
|
|
|
|
[theme.breakpoints.down('md')]: { |
|
|
|
|
|
|
|
display: 'block', |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
})); |
|
|
|
})); |
|
|
|
|
|
|
|
|
|
|
@ -36,12 +57,7 @@ const Home = (): JSX.Element => { |
|
|
|
<AnvilProvider> |
|
|
|
<AnvilProvider> |
|
|
|
<Header /> |
|
|
|
<Header /> |
|
|
|
{data?.anvils && ( |
|
|
|
{data?.anvils && ( |
|
|
|
<Box |
|
|
|
<Box className={classes.container}> |
|
|
|
display="flex" |
|
|
|
|
|
|
|
flexDirection="row" |
|
|
|
|
|
|
|
width="100%" |
|
|
|
|
|
|
|
justifyContent="space-between" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<Box p={1} className={classes.child}> |
|
|
|
<Box p={1} className={classes.child}> |
|
|
|
<Anvils list={data} /> |
|
|
|
<Anvils list={data} /> |
|
|
|
<Nodes anvil={data.anvils} /> |
|
|
|
<Nodes anvil={data.anvils} /> |
|
|
|