Merge branch 'main' of github.com:hainatravel/GHHub
commit
b9938d2c19
@ -0,0 +1,57 @@
|
|||||||
|
import { Outlet, Link, useHref, useLocation } from "react-router-dom";
|
||||||
|
import { useEffect } from "react";
|
||||||
|
import { observer } from "mobx-react";
|
||||||
|
import { Layout, Menu, ConfigProvider, theme, Typography, Space, Row, Col, Alert, App as AntApp } from "antd";
|
||||||
|
import { DownOutlined } from "@ant-design/icons";
|
||||||
|
import "antd/dist/reset.css";
|
||||||
|
import AppLogo from "@/assets/logo-gh.png";
|
||||||
|
import { useStore } from "@/stores/StoreContext.js";
|
||||||
|
|
||||||
|
const { Title } = Typography;
|
||||||
|
const { Header, Content, Footer } = Layout;
|
||||||
|
|
||||||
|
function Standlone() {
|
||||||
|
const { authStore } = useStore();
|
||||||
|
|
||||||
|
const {
|
||||||
|
token: { colorBgContainer },
|
||||||
|
} = theme.useToken();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ConfigProvider
|
||||||
|
theme={{
|
||||||
|
token: {
|
||||||
|
colorPrimary: "#00b96b",
|
||||||
|
},
|
||||||
|
algorithm: theme.defaultAlgorithm,
|
||||||
|
}}>
|
||||||
|
<AntApp>
|
||||||
|
<Layout
|
||||||
|
style={{
|
||||||
|
minHeight: "100vh",
|
||||||
|
}}>
|
||||||
|
<Header className="header" style={{ position: "sticky", top: 0, zIndex: 1, width: "100%" }}>
|
||||||
|
<Row gutter={{ md: 24 }} justify="center">
|
||||||
|
<Col span={4}>
|
||||||
|
<img src={AppLogo} className="logo" alt="App logo" />
|
||||||
|
</Col>
|
||||||
|
<Col span={20}><Title style={{ color: "white", marginTop: "3.5px" }}>Global Highlights Hub</Title></Col>
|
||||||
|
</Row>
|
||||||
|
</Header>
|
||||||
|
<Content
|
||||||
|
style={{
|
||||||
|
padding: 24,
|
||||||
|
margin: 0,
|
||||||
|
minHeight: 280,
|
||||||
|
background: colorBgContainer,
|
||||||
|
}}>
|
||||||
|
<Outlet />
|
||||||
|
</Content>
|
||||||
|
<Footer></Footer>
|
||||||
|
</Layout>
|
||||||
|
</AntApp>
|
||||||
|
</ConfigProvider>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default observer(Standlone);
|
Loading…
Reference in New Issue