Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/javascript/grid-ui/src/screens/Help/Help.tsx
2887 views
1
// Licensed to the Software Freedom Conservancy (SFC) under one
2
// or more contributor license agreements. See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership. The SFC licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License. You may obtain a copy of the License at
8
//
9
// http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied. See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
import React from 'react'
19
import { Box, Container, Link, Typography } from '@mui/material'
20
import { useLocation } from 'react-router-dom'
21
22
function HelpContainer (): JSX.Element {
23
const location = useLocation()
24
return (
25
<Container maxWidth='md'>
26
{location.pathname !== '/help' && (
27
<Box mt={2}>
28
<Typography
29
align='center'
30
color='textPrimary'
31
variant='h2'
32
>
33
Whoops! The URL specified routes to this help page.
34
</Typography>
35
</Box>
36
)}
37
<Box mt={6}>
38
<Typography
39
align='center'
40
color='textPrimary'
41
variant='h3'
42
>
43
More information about Selenium Grid can be found at the{' '}
44
<Link
45
href='https://www.selenium.dev/documentation/grid/'
46
target='_blank'
47
rel='noreferrer'
48
underline='hover'
49
>
50
documentation
51
</Link>.
52
</Typography>
53
</Box>
54
<Box mt={6}>
55
<Typography
56
align='center'
57
color='textPrimary'
58
variant='h3'
59
>
60
Please report bugs and issues to the Selenium{' '}
61
<Link
62
href='https://github.com/SeleniumHQ/selenium/issues/new/choose'
63
target='_blank'
64
rel='noreferrer'
65
underline='hover'
66
>
67
issue tracker
68
</Link>.
69
</Typography>
70
</Box>
71
<Box mt={6}>
72
<Typography
73
align='center'
74
color='textPrimary'
75
variant='h3'
76
>
77
For questions and help, check the different support channels on
78
our{' '}
79
<Link
80
href='https://www.selenium.dev/support/'
81
target='_blank'
82
rel='noreferrer'
83
underline='hover'
84
>
85
website
86
</Link>.
87
</Typography>
88
</Box>
89
<Box m={10}>
90
<Typography
91
align='center'
92
color='textPrimary'
93
variant='h4'
94
>
95
Selenium is made possible through the efforts of our open source
96
community, contributions from these{' '}
97
<Link
98
href='https://www.selenium.dev/documentation/about/copyright/'
99
target='_blank'
100
rel='noreferrer'
101
underline='hover'
102
>
103
people
104
</Link>
105
, and our{' '}
106
<Link
107
href='https://www.selenium.dev/sponsors/'
108
target='_blank'
109
rel='noreferrer'
110
underline='hover'
111
>
112
sponsors
113
</Link>.
114
</Typography>
115
</Box>
116
</Container>
117
)
118
}
119
120
function Help (): JSX.Element {
121
return (
122
<Box
123
display='flex'
124
flexDirection='column'
125
height='100%'
126
justifyContent='center'
127
>
128
<HelpContainer />
129
</Box>
130
)
131
}
132
133
export default Help
134
135