mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 17:28:37 +00:00
• Added read-only Base URL input that shows `status.server_address` (fallback `window.location.origin`) and copies value on click. • Embedded `ScrollList` as input `suffix`; auto-cycles common endpoints every 3 s and allows manual selection. • Introduced `API_ENDPOINTS` array in `web/src/constants/common.constant.js` for centralized endpoint management. • Implemented custom CSS to hide ScrollList wheel indicators / scrollbars for a cleaner look. • Created two blurred colour spheres behind the banner (`blur-ball-indigo`, `blur-ball-teal`) with light-/dark-mode opacity tweaks and lower vertical placement. • Increased letter-spacing for Chinese heading via conditional `tracking-wide` / `md:tracking-wider` classes to improve readability. • Misc: updated imports, helper functions, and responsive sizes to keep UI consistent across devices.
20 lines
683 B
JavaScript
20 lines
683 B
JavaScript
import React from 'react';
|
|
import { Empty } from '@douyinfe/semi-ui';
|
|
import { IllustrationNotFound, IllustrationNotFoundDark } from '@douyinfe/semi-illustrations';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
const NotFound = () => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<div className="flex justify-center items-center h-screen p-8 mt-[64px]">
|
|
<Empty
|
|
image={<IllustrationNotFound style={{ width: 250, height: 250 }} />}
|
|
darkModeImage={<IllustrationNotFoundDark style={{ width: 250, height: 250 }} />}
|
|
description={t('页面未找到,请检查您的浏览器地址是否正确')}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default NotFound;
|