feat: add new components and layouts for news and dashboard pages

This commit is contained in:
Ardeman
2025-01-31 19:34:22 +08:00
parent 005e72798c
commit f8a87019af
14 changed files with 83 additions and 9 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { Welcome } from '~/layouts/home/welcome'
import { Welcome } from '~/pages/welcome'
import type { Route } from './+types/_layout._index'
+5
View File
@@ -0,0 +1,5 @@
const DashboardLayout = () => {
return <div>Dashboard</div>
}
export default DashboardLayout
+5
View File
@@ -0,0 +1,5 @@
const NewsIndexLayout = () => {
return <div>News</div>
}
export default NewsIndexLayout
+13
View File
@@ -0,0 +1,13 @@
import { Outlet } from 'react-router'
import { NewsPage } from '~/pages/news'
const NewsLayout = () => {
return (
<NewsPage>
<Outlet />
</NewsPage>
)
}
export default NewsLayout