Rebuild the site on the stack the other converted sites share: Vite 8, React 19, TypeScript 7, react-router 8, Biome and sanitize.css, with the site data moved out of the bundle into static-contents/. - base the database code on cerebellum.neuroinf.jp and keep the pupil platform's table layout, about page and menu - load the Flickr badge feed as JSONP without extra libraries - serve the XooNIps data from modules/xoonips/, redirecting the old download and /database/file URLs - restate the column widths as border-box totals and keep form controls on white - track page views with GA4
61 lines
1.8 KiB
TypeScript
61 lines
1.8 KiB
TypeScript
import { Link, Route, Routes } from 'react-router';
|
|
import type { MultiLang } from '../config';
|
|
import DatabaseTop from '../database/DatabaseTop';
|
|
import styles from './CenterColumn.module.css';
|
|
import MainContent from './MainContent';
|
|
|
|
interface Props {
|
|
lang: MultiLang;
|
|
}
|
|
|
|
const BreadCrumbs = () => {
|
|
return (
|
|
<div className={styles.breadclumbs}>
|
|
<Link to="/">Home</Link>
|
|
<Routes>
|
|
<Route path="/database/*" element={<> » Database</>} />
|
|
<Route path="/about" element={<> » About</>} />
|
|
<Route path="*" element={null} />
|
|
</Routes>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
const CenterBlocks = (props: Props) => {
|
|
const { lang } = props;
|
|
return (
|
|
<table className={styles.centerBlocks}>
|
|
<tbody>
|
|
<tr>
|
|
<td colSpan={2}>
|
|
<h2 className={styles.centerMainTitle}>Registered Itemtypes</h2>
|
|
<div className={styles.centerMainContent}>
|
|
<DatabaseTop lang={lang} />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td className={styles.centerLeftColumn}></td>
|
|
<td className={styles.centerRightColumn}></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
);
|
|
};
|
|
|
|
const CenterColumn = (props: Props) => {
|
|
const { lang } = props;
|
|
return (
|
|
<td className={styles.centerColumn}>
|
|
<BreadCrumbs />
|
|
<Routes>
|
|
<Route path="/" element={<CenterBlocks lang={lang} />} />
|
|
<Route path="*" element={null} />
|
|
</Routes>
|
|
<MainContent lang={lang} />
|
|
</td>
|
|
);
|
|
};
|
|
|
|
export default CenterColumn;
|