36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { Component, ReactNode } from 'react';
|
|
import { View } from '@tarojs/components';
|
|
import Taro from '@tarojs/taro';
|
|
import pt from '@/plain-text';
|
|
import PageFooter from '@/components/PageFooter/PageFooter';
|
|
import './404.scss';
|
|
|
|
export default class NotFoundPage extends Component {
|
|
componentDidMount(): void {
|
|
Taro.setNavigationBarTitle({
|
|
title: pt.get().navBar.notFound,
|
|
});
|
|
}
|
|
render(): ReactNode {
|
|
return (
|
|
<View>
|
|
<View
|
|
className='page-title'
|
|
style={{ marginTop: '150rpx', marginBottom: '240rpx' }}
|
|
>
|
|
<View className='at-article__h1' style={{ fontWeight: 'bold' }}>
|
|
{pt.get().notFound.titleZhCn}
|
|
</View>
|
|
<View className='at-article__h2'>{pt.get().notFound.descZhCn}</View>
|
|
<View style={{ height: '150rpx' }}></View>
|
|
<View className='at-article__h1' style={{ fontWeight: 'bold' }}>
|
|
{pt.get().notFound.titleEnUs}
|
|
</View>
|
|
<View className='at-article__h2'>{pt.get().notFound.descEnUs}</View>
|
|
</View>
|
|
<PageFooter />
|
|
</View>
|
|
);
|
|
}
|
|
}
|