fix: correct typo and extract shared Notice component

Fix typo "Arrangemtns" to "Arrangements" in figure captions
for all 16 TE*.json dataset files.

Extract a reusable Notice component from Contact and News pages
to avoid duplicated inline notice markup.

Replace react-helmet-async with @dr.pogodin/react-helmet.

Add VS Code workspace config and cspell dictionary.
This commit is contained in:
2026-06-11 00:59:27 +09:00
parent d73f4ef2b9
commit 3f684a90b4
32 changed files with 175 additions and 83 deletions
-4
View File
@@ -7,10 +7,6 @@
.contact p {
margin: 5px 0 15px 15px;
}
.notice {
margin: 10px 0 20px;
color: #ff0000;
}
.note {
margin-left: 15px;
font-style: italic;
+2 -3
View File
@@ -1,6 +1,7 @@
import type React from 'react';
import { useEffect } from 'react';
import { useAppDispatch } from '../../app/hooks';
import Notice from '../notice/Notice';
import { setTitle } from '../page-title/pageTitleSlice';
import styles from './Contact.module.css';
@@ -11,9 +12,7 @@ const Contact: React.FC = () => {
}, [dispatch]);
return (
<div className={styles.contact}>
<section className={styles.notice}>
Notice: This site has been archived since May 2019 and is no longer updated.
</section>
<Notice />
<h4>CelLoc-3D is managed by Teppei Ebina and Tadaharu Tsumoto</h4>
<p>
Laboratory for cortical circuit plasticity
+2 -2
View File
@@ -1,8 +1,8 @@
.news {
margin: 10px;
margin: 20px;
}
.item {
margin: 0 10px 10px 10px;
margin: 0 0 10px 0;
}
.item:after {
content: ".";
+2
View File
@@ -3,6 +3,7 @@ import { useEffect } from 'react';
import { useAppDispatch } from '../../app/hooks';
import JsonNews_ from '../../assets/news.json';
import nl2br from '../../utils/nl2br';
import Notice from '../notice/Notice';
import { setTitle } from '../page-title/pageTitleSlice';
import styles from './News.module.css';
@@ -23,6 +24,7 @@ const News: React.FC = () => {
return (
<div className={styles.news}>
<Notice />
{JsonNews.map((item, key) => {
return (
// biome-ignore lint/suspicious/noArrayIndexKey: static JSON data
+4
View File
@@ -0,0 +1,4 @@
.notice {
margin: 10px 0 20px;
color: #ff0000;
}
+10
View File
@@ -0,0 +1,10 @@
import type React from 'react';
import styles from './Notice.module.css';
const Notice: React.FC = () => {
return (
<section className={styles.notice}>This site has been archived since May 2019 and is no longer updated.</section>
);
};
export default Notice;
+1 -1
View File
@@ -1,5 +1,5 @@
import { Helmet } from '@dr.pogodin/react-helmet';
import type React from 'react';
import { Helmet } from 'react-helmet-async';
import { useAppSelector } from '../../app/hooks';
import styles from './PageTitle.module.css';
import { selectPageTitle } from './pageTitleSlice';
+1 -1
View File
@@ -1,6 +1,6 @@
import { HelmetProvider } from '@dr.pogodin/react-helmet';
import React from 'react';
import ReactDOM from 'react-dom/client';
import { HelmetProvider } from 'react-helmet-async';
import { Provider } from 'react-redux';
import App from './App';
import { store } from './app/store';