Add vertical prop to FitCenter. Add OxygenToolbox to home page. Add Indicator to home. #20

Merged
FatttSnake merged 4 commits from FatttSnake into dev 2023-09-14 23:42:56 +08:00
4 changed files with 19 additions and 22 deletions
Showing only changes of commit fd47be620d - Show all commits

View File

@@ -1,11 +0,0 @@
import React from 'react'
const Project: React.FC = () => {
return (
<>
<h1>App</h1>
</>
)
}
export default Project

View File

@@ -0,0 +1,17 @@
import React from 'react'
import FitCenter from '@/components/common/FitCenter.tsx'
const OxygenToolbox: React.FC = () => {
return (
<>
<FitCenter vertical>
<div>
<div style={{ fontSize: '4.5em', fontWeight: 'bold' }}>Oxygen Toolbox</div>
<div style={{ fontSize: '1.4em', textAlign: 'end' }}>is coming soon...</div>
</div>
</FitCenter>
</>
)
}
export default OxygenToolbox

View File

@@ -3,6 +3,7 @@ import FitFullScreen from '@/components/common/FitFullScreen'
import FitCenter from '@/components/common/FitCenter'
import { MainFrameworkContext } from '@/pages/MainFramework'
import Slogan from '@/components/home/Slogan'
import OxygenToolbox from '@/components/home/OxygenToolbox'
const Home: React.FC = () => {
const {
@@ -129,7 +130,7 @@ const Home: React.FC = () => {
ref: fitFullScreenRef,
children: <Slogan onClickScrollDown={handleScrollDown} />
},
{ children: <FitCenter>2</FitCenter> },
{ children: <OxygenToolbox /> },
{ children: <FitCenter>3</FitCenter> }
]

View File

@@ -38,16 +38,6 @@ const routes: RouteObject[] = [
menu: true,
auth: false
}
},
{
path: 'project',
id: 'project',
Component: React.lazy(() => import('@/components/Project')),
handle: {
name: '项目',
menu: true,
auth: false
}
}
]
},