Path: blob/trunk/javascript/grid-ui/src/screens/Help/Help.tsx
2887 views
// Licensed to the Software Freedom Conservancy (SFC) under one1// or more contributor license agreements. See the NOTICE file2// distributed with this work for additional information3// regarding copyright ownership. The SFC licenses this file4// to you under the Apache License, Version 2.0 (the5// "License"); you may not use this file except in compliance6// with the License. You may obtain a copy of the License at7//8// http://www.apache.org/licenses/LICENSE-2.09//10// Unless required by applicable law or agreed to in writing,11// software distributed under the License is distributed on an12// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY13// KIND, either express or implied. See the License for the14// specific language governing permissions and limitations15// under the License.1617import React from 'react'18import { Box, Container, Link, Typography } from '@mui/material'19import { useLocation } from 'react-router-dom'2021function HelpContainer (): JSX.Element {22const location = useLocation()23return (24<Container maxWidth='md'>25{location.pathname !== '/help' && (26<Box mt={2}>27<Typography28align='center'29color='textPrimary'30variant='h2'31>32Whoops! The URL specified routes to this help page.33</Typography>34</Box>35)}36<Box mt={6}>37<Typography38align='center'39color='textPrimary'40variant='h3'41>42More information about Selenium Grid can be found at the{' '}43<Link44href='https://www.selenium.dev/documentation/grid/'45target='_blank'46rel='noreferrer'47underline='hover'48>49documentation50</Link>.51</Typography>52</Box>53<Box mt={6}>54<Typography55align='center'56color='textPrimary'57variant='h3'58>59Please report bugs and issues to the Selenium{' '}60<Link61href='https://github.com/SeleniumHQ/selenium/issues/new/choose'62target='_blank'63rel='noreferrer'64underline='hover'65>66issue tracker67</Link>.68</Typography>69</Box>70<Box mt={6}>71<Typography72align='center'73color='textPrimary'74variant='h3'75>76For questions and help, check the different support channels on77our{' '}78<Link79href='https://www.selenium.dev/support/'80target='_blank'81rel='noreferrer'82underline='hover'83>84website85</Link>.86</Typography>87</Box>88<Box m={10}>89<Typography90align='center'91color='textPrimary'92variant='h4'93>94Selenium is made possible through the efforts of our open source95community, contributions from these{' '}96<Link97href='https://www.selenium.dev/documentation/about/copyright/'98target='_blank'99rel='noreferrer'100underline='hover'101>102people103</Link>104, and our{' '}105<Link106href='https://www.selenium.dev/sponsors/'107target='_blank'108rel='noreferrer'109underline='hover'110>111sponsors112</Link>.113</Typography>114</Box>115</Container>116)117}118119function Help (): JSX.Element {120return (121<Box122display='flex'123flexDirection='column'124height='100%'125justifyContent='center'126>127<HelpContainer />128</Box>129)130}131132export default Help133134135