2019-12-03 21:08:23 +00:00
|
|
|
/** @jsx jsx */
|
|
|
|
import { jsx, Box, Flex } from "theme-ui"
|
|
|
|
import {
|
|
|
|
Container,
|
|
|
|
Card,
|
|
|
|
CardContent,
|
|
|
|
Typography,
|
|
|
|
CardActions,
|
|
|
|
Button,
|
2019-12-20 17:01:28 +00:00
|
|
|
makeStyles,
|
|
|
|
AppBar,
|
|
|
|
Tabs,
|
|
|
|
Tab
|
2019-12-03 21:08:23 +00:00
|
|
|
} from "@material-ui/core"
|
|
|
|
import Dropzone from "../src/components/Dropzone"
|
2019-12-20 17:01:28 +00:00
|
|
|
import { useState } from "react"
|
|
|
|
import { TabPanel } from "../src/components/TabPanel"
|
2019-12-03 21:08:23 +00:00
|
|
|
|
|
|
|
const useStyles = makeStyles({
|
|
|
|
card: {
|
|
|
|
minWidth: 275
|
|
|
|
},
|
|
|
|
bullet: {
|
|
|
|
display: "inline-block",
|
|
|
|
margin: "0 2px",
|
|
|
|
transform: "scale(0.8)"
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
fontSize: 14
|
|
|
|
},
|
|
|
|
pos: {
|
|
|
|
marginBottom: 12
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
const Index = () => {
|
|
|
|
const classes = useStyles({})
|
2019-12-20 17:01:28 +00:00
|
|
|
const [value, setValue] = useState(0)
|
|
|
|
|
|
|
|
const handleChange = (event, newValue) => {
|
|
|
|
setValue(newValue)
|
|
|
|
}
|
2019-12-03 21:08:23 +00:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Box color="white">
|
|
|
|
<Container>
|
|
|
|
<Flex sx={{ alignItems: "center", height: 120 }}>
|
|
|
|
<Box>
|
2019-12-20 17:01:28 +00:00
|
|
|
<Typography sx={{ fontWeight: 500 }}>Sia View Node</Typography>
|
2019-12-03 21:08:23 +00:00
|
|
|
</Box>
|
|
|
|
<Box sx={{ ml: "auto" }}>
|
|
|
|
<Button href="https://sia.tech/" target="_blank">
|
|
|
|
About Sia
|
|
|
|
</Button>
|
|
|
|
</Box>
|
|
|
|
</Flex>
|
|
|
|
</Container>
|
|
|
|
</Box>
|
2019-12-20 17:01:28 +00:00
|
|
|
<Box>
|
|
|
|
<Container>
|
|
|
|
<AppBar position="static">
|
|
|
|
<Tabs
|
|
|
|
value={value}
|
|
|
|
onChange={handleChange}
|
|
|
|
aria-label="simple tabs example"
|
2019-12-03 21:08:23 +00:00
|
|
|
>
|
2019-12-20 17:01:28 +00:00
|
|
|
<Tab label="Upload" />
|
|
|
|
<Tab label="Download" />
|
|
|
|
</Tabs>
|
|
|
|
</AppBar>
|
|
|
|
</Container>
|
|
|
|
</Box>
|
|
|
|
<Container>
|
|
|
|
<TabPanel value={value} index={0}>
|
|
|
|
<Card sx={{ width: "100%" }}>
|
|
|
|
<CardContent>
|
|
|
|
<Dropzone />
|
|
|
|
</CardContent>
|
|
|
|
</Card>
|
|
|
|
</TabPanel>
|
|
|
|
</Container>
|
|
|
|
<Container>
|
|
|
|
<TabPanel value={value} index={1}>
|
|
|
|
<Card sx={{ width: "100%" }}>
|
|
|
|
<CardContent></CardContent>
|
|
|
|
</Card>
|
|
|
|
</TabPanel>
|
2019-12-03 21:08:23 +00:00
|
|
|
</Container>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Index
|