diff --git a/eslint.config.js b/eslint.config.js index 5e6b472..bf25826 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,7 +6,7 @@ import tseslint from 'typescript-eslint' import { defineConfig, globalIgnores } from 'eslint/config' export default defineConfig([ - globalIgnores(['dist']), + globalIgnores(['dist', 'src/clientsdk/**']), { files: ['**/*.{ts,tsx}'], extends: [ diff --git a/index.html b/index.html index 9958f76..d0bbfcf 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,40 @@ - + - react-template + + Xiang Hunan Kitchen | อาหารหูหนานแท้ในไทย + + + + + + + +
diff --git a/src/App.tsx b/src/App.tsx index 257538e..1e5b473 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,17 +1,23 @@ import { BrowserRouter as Router, Routes, Route } from 'react-router-dom' import { Home } from './pages/Home' +import { Menu } from './pages/Menu' +import { About } from './pages/About' +import { Contact } from './pages/Contact' +import { News } from './pages/News' import { PostDetail } from './pages/PostDetail' -import { CategoriesPage } from './pages/Categories' -import { CategoryDetail } from './pages/CategoryDetail' +import { NotFound } from './pages/NotFound' function App() { return ( } /> - } /> - } /> - } /> + } /> + } /> + } /> + } /> + } /> + } /> ) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index fffde69..b6cc250 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,13 +1,57 @@ import React from 'react' +import { SITE } from '../site' +import { useI18n } from '../i18n/useI18n' export const Footer: React.FC = () => { + const { t, locale } = useI18n() + return ( -