Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

404.tsx 6.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
  1. import { useRouter } from 'next/router'
  2. import Head from 'next/head'
  3. import Link from 'next/link'
  4. import {
  5. MarkGithubIcon,
  6. GitPullRequestIcon,
  7. PeopleIcon,
  8. CommentDiscussionIcon,
  9. } from '@primer/octicons-react'
  10. import { useVersion } from 'components/hooks/useVersion'
  11. import { AllProductsLink } from 'components/product/AllProductsLink'
  12. export default function Custom404() {
  13. const router = useRouter()
  14. const { currentVersion, isEnterprise } = useVersion()
  15. const contribution_href = router.locale
  16. ? `https://github.com/github/docs/edit/main/content/`
  17. : 'https://github.com/github/docs'
  18. return (
  19. <div className="d-lg-flex error-404">
  20. <Head>
  21. <title>Ooops!</title>
  22. </Head>
  23. <div className="sidebar d-none d-lg-block color-bg-tertiary position-sticky top-0 overflow-y-auto root">
  24. <div
  25. className="d-flex flex-items-center p-4 position-sticky top-0 color-bg-tertiary"
  26. style={{ zIndex: 3 }}
  27. id="github-logo"
  28. role="banner"
  29. >
  30. <Link href={`/${router.locale}`}>
  31. {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
  32. <a className="color-text-primary" aria-hidden="true" tabIndex={-1}>
  33. <MarkGithubIcon size={32} />
  34. </a>
  35. </Link>
  36. <Link href={`/${router.locale}`}>
  37. {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
  38. <a className="h4-mktg color-text-primary no-underline no-wrap pl-2 flex-auto">
  39. GitHub Docs
  40. </a>
  41. </Link>
  42. </div>
  43. <nav>
  44. <ul className="sidebar-products mt-4">
  45. {currentVersion !== 'homepage' && <AllProductsLink />}
  46. </ul>
  47. </nav>
  48. </div>
  49. <main className="width-full">
  50. <div className="container-xl p-responsive py-6">
  51. <article className="markdown-body col-md-10 col-lg-7 mx-auto">
  52. <h1>Ooops</h1>
  53. <div className="lead-mktg mb-5">It looks like this page doesn't exist.</div>
  54. <div className="col-lg-12 mt-6">
  55. <h3 className="mb-3">Need help?</h3>
  56. </div>
  57. </article>
  58. </div>
  59. <section className="mt-lg-9 py-7 px-3 px-md-6 no-print color-bg-tertiary">
  60. <div className="container-xl gutter-lg-spacious clearfix">
  61. <div className="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left">
  62. <div className="f5 contribution">
  63. <h2 className="f4">Help us make these docs great!</h2>
  64. <p className="color-text-secondary f6">
  65. All GitHub docs are open source. See something that's wrong or unclear? Submit a
  66. pull request.
  67. </p>
  68. <a className="btn btn-outline" href={contribution_href}>
  69. <GitPullRequestIcon size="small" className="octicon mr-1" />
  70. Make a contribution
  71. </a>
  72. <p className="color-text-secondary f6 mt-2">
  73. Or,{' '}
  74. <a
  75. href="https://github.com/github/docs/blob/main/CONTRIBUTING.md"
  76. target="_blank"
  77. rel="noopener"
  78. >
  79. learn how to contribute.
  80. </a>
  81. </p>
  82. </div>
  83. </div>
  84. <div className="col-12 col-lg-12 col-xl-4 float-left">
  85. <div>
  86. <h3 className="mb-2 f4">Still need help?</h3>
  87. <a
  88. id="ask-community"
  89. href="https://github.community"
  90. className="btn btn-outline mr-4 mt-2"
  91. >
  92. <PeopleIcon size="small" className="octicon mr-1" />
  93. Ask the GitHub community
  94. </a>
  95. <a
  96. id="contact-us"
  97. href={
  98. isEnterprise
  99. ? 'https://enterprise.github.com/support'
  100. : 'https://support.github.com/contact'
  101. }
  102. className="btn btn-outline mt-2"
  103. >
  104. <CommentDiscussionIcon size="small" className="octicon mr-1" />
  105. Contact support
  106. </a>
  107. </div>
  108. </div>
  109. </div>
  110. </section>
  111. <footer className="py-6 text-small">
  112. <div className="container-xl d-flex px-3 px-md-6">
  113. <ul className="d-flex list-style-none flex-wrap flex-justify-center flex-xl-justify-start">
  114. <li className="d-flex mr-xl-3 color-text-secondary">
  115. <MarkGithubIcon className="mr-2 mr-xl-3" size={20} />
  116. <span>&copy; {new Date().getFullYear()} GitHub, Inc.</span>
  117. </li>
  118. <li className="ml-3">
  119. <a href="/github/site-policy/github-terms-of-service">Terms</a>
  120. </li>
  121. <li className="ml-3">
  122. <a href="/github/site-policy/github-privacy-statement">Privacy </a>
  123. </li>
  124. <li className="ml-3">
  125. <a href="https://github.com/security">Security</a>
  126. </li>
  127. <li className="ml-3">
  128. <a href="https://www.githubstatus.com/">Status</a>
  129. </li>
  130. <li className="ml-3">
  131. <a href="/">Help</a>
  132. </li>
  133. <li className="ml-3">
  134. <a href="https://support.github.com">Contact GitHub</a>
  135. </li>
  136. <li className="ml-3">
  137. <a href="https://github.com/pricing">Pricing</a>
  138. </li>
  139. <li className="ml-3">
  140. <a href="/developers">Developer API</a>
  141. </li>
  142. <li className="ml-3">
  143. <a href="https://services.github.com/">Training</a>
  144. </li>
  145. <li className="ml-3">
  146. <a href="https://github.com/about">About</a>
  147. </li>
  148. </ul>
  149. </div>
  150. </footer>
  151. </main>
  152. </div>
  153. )
  154. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...