forked from JetBrains/kotlin-web-site
-
Notifications
You must be signed in to change notification settings - Fork 18
/
404.tsx
52 lines (38 loc) · 1.57 KB
/
404.tsx
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
import React from 'react';
import { useTS } from '@jetbrains/kotlin-web-site-ui/out/components/breakpoints';
import '@jetbrains/kotlin-web-site-ui/out/components/layout';
import { Layout } from '../components/layout/layout';
import { ThemeProvider } from '@rescui/ui-contexts';
import GlobalHeader from '@jetbrains/kotlin-web-site-ui/out/components/header';
import GlobalFooter from '@jetbrains/kotlin-web-site-ui/out/components/footer';
import { StickyHeader } from '../components/sticky-header/sticky-header';
import releasesDataRaw from '../data/releases.yml';
const releasesData: ReleasesData = releasesDataRaw as ReleasesData;
import searchConfig from '../search-config.json';
import { NotFoundContent } from '../blocks/404';
function NotFoundPage() {
const isTS = useTS();
return (
<Layout
title={'Kotlin Programming Language'}
ogImageName={'general.png'}
description={
'Kotlin is a programming language that makes coding concise, cross-platform, and fun. It is Google’s preferred language for Android app development.'
}
>
<StickyHeader>
<GlobalHeader
productWebUrl={releasesData.latest.url}
hasSearch={true}
searchConfig={searchConfig}
darkHeader
/>
</StickyHeader>
<NotFoundContent />
<ThemeProvider theme={'dark'}>
<GlobalFooter />
</ThemeProvider>
</Layout>
);
}
export default NotFoundPage;