From 4118933639db387c43189abae7c334cca7d09e3e Mon Sep 17 00:00:00 2001 From: lideming Date: Wed, 29 Nov 2023 17:16:03 +0800 Subject: [PATCH] feat: improve app layout --- neetbox.code-workspace | 11 +++++ neetbox/frontend/src/App.tsx | 42 +------------------ neetbox/frontend/src/components/Footer.tsx | 12 ------ .../dashboard/project/logs/logs.tsx | 2 +- .../src/components/layout/AppFooter.tsx | 24 +++++++++++ .../src/components/layout/AppHeader.tsx | 28 +++++++++++++ .../src/components/layout/AppLayout.tsx | 15 +++++++ neetbox/frontend/src/components/loading.tsx | 13 +++++- .../frontend/src/components/logo.module.css | 6 ++- neetbox/frontend/src/main.tsx | 2 +- neetbox/frontend/src/pages/console/index.tsx | 6 ++- .../src/pages/console/proejctDashboard.tsx | 2 +- .../frontend/src/pages/console/sidebar.tsx | 6 ++- 13 files changed, 107 insertions(+), 62 deletions(-) create mode 100644 neetbox.code-workspace delete mode 100644 neetbox/frontend/src/components/Footer.tsx create mode 100644 neetbox/frontend/src/components/layout/AppFooter.tsx create mode 100644 neetbox/frontend/src/components/layout/AppHeader.tsx create mode 100644 neetbox/frontend/src/components/layout/AppLayout.tsx diff --git a/neetbox.code-workspace b/neetbox.code-workspace new file mode 100644 index 00000000..1b17355a --- /dev/null +++ b/neetbox.code-workspace @@ -0,0 +1,11 @@ +{ + "folders": [ + { + "path": "." + }, + { + "path": "neetbox/frontend" + } + ], + "settings": {} +} \ No newline at end of file diff --git a/neetbox/frontend/src/App.tsx b/neetbox/frontend/src/App.tsx index 5661e9bb..f77da0c7 100644 --- a/neetbox/frontend/src/App.tsx +++ b/neetbox/frontend/src/App.tsx @@ -1,43 +1,5 @@ -import { Layout, Button, Space, Typography } from "@douyinfe/semi-ui"; -import { Link, Outlet } from "react-router-dom"; -import SwitchColorMode from "./components/themeSwitcher"; -import "./styles/global.css"; -import FooterContent from "./components/Footer"; - -const { Header, Footer, Content } = Layout; - -export default function AppLayout() { - return ( - -
- - NEET Center - -
- - - - - - -
-
- - - - - -