-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Showing
4 changed files
with
110 additions
and
73 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
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,106 @@ | ||
import * as React from 'react'; | ||
import {Box, Container, Link, Typography} from "@material-ui/core"; | ||
import {makeStyles} from "@material-ui/core/styles"; | ||
import {useLocation} from "react-router-dom"; | ||
|
||
const useStyles = makeStyles((theme) => ({ | ||
root: { | ||
backgroundColor: theme.palette.secondary.main, | ||
height: '100%', | ||
paddingBottom: theme.spacing(3), | ||
paddingTop: theme.spacing(3), | ||
width: '100%', | ||
justifyContent: "center", | ||
}, | ||
image: { | ||
marginTop: 50, | ||
display: 'inline-block', | ||
maxWidth: '100%', | ||
width: 560 | ||
}, | ||
})); | ||
|
||
export default function Help() { | ||
const classes = useStyles(); | ||
const location = useLocation(); | ||
|
||
// noinspection HtmlUnknownAnchorTarget | ||
return ( | ||
<div className={classes.root}> | ||
<Box | ||
display="flex" | ||
flexDirection="column" | ||
height="100%" | ||
justifyContent="center" | ||
> | ||
<Container maxWidth="md"> | ||
{!["/sessions", "/help", "/"].includes(location.pathname) && ( | ||
<Box mt={2}> | ||
<Typography | ||
align="center" | ||
color="textPrimary" | ||
variant="h2" | ||
> | ||
Whoops! The URL specified routes to this help page. | ||
</Typography> | ||
</Box> | ||
)} | ||
<Box mt={6}> | ||
<Typography | ||
align="center" | ||
color="textPrimary" | ||
variant="h3" | ||
> | ||
More information about Selenium Grid can be found at the{' '} | ||
<Link href="https://www.selenium.dev/documentation/en/grid/" target={"_blank"}> | ||
documentation | ||
</Link>. | ||
</Typography> | ||
</Box> | ||
<Box mt={6}> | ||
<Typography | ||
align="center" | ||
color="textPrimary" | ||
variant="h3" | ||
> | ||
Please report bugs and issues to the Selenium{' '} | ||
<Link href="https://github.com/SeleniumHQ/selenium/issues/new/choose" target={"_blank"}> | ||
issue tracker | ||
</Link>. | ||
</Typography> | ||
</Box> | ||
<Box mt={6}> | ||
<Typography | ||
align="center" | ||
color="textPrimary" | ||
variant="h3" | ||
> | ||
For questions and help, check the different support channels on our{' '} | ||
<Link href="https://www.selenium.dev/support/" target={"_blank"}> | ||
website | ||
</Link>. | ||
</Typography> | ||
</Box> | ||
<Box m={10}> | ||
<Typography | ||
align="center" | ||
color="textPrimary" | ||
variant="h4" | ||
> | ||
Selenium is made possible through the efforts of our open source | ||
community, contributions from these{' '} | ||
<Link href="https://www.selenium.dev/documentation/en/front_matter/copyright_and_attributions/" | ||
target={"_blank"}> | ||
people | ||
</Link> | ||
, and our{' '} | ||
<Link href="https://www.selenium.dev/sponsors/" target={"_blank"}> | ||
sponsors | ||
</Link>. | ||
</Typography> | ||
</Box> | ||
</Container> | ||
</Box> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.