import './App.css';
import DataCenter from "./dataCenter/Root";
import IndexAdmin from "./page/indexAdmin";
import Index from "./page/index";
import Login from "./page/login/login";
import {HashRouter as Router, Route, Switch} from "react-router-dom";
import {useEffect} from "react";

function App() {
    useEffect(() => {
        console.log("%c+",
            `font-size: 1px;
  padding: 122px 217px;
  background-image: url(https://yun.duiba.com.cn/spark/assets/cc8da992b527b3cd24da7df9a5be8b2361c2e549.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  color: transparent;`);
    }, [])
    return (
        <Router>
            <DataCenter>
                <Switch>
                    <Route exact path='/login' component={Login}/>
                    <Route exact path='/' component={Index}/>
                    <Route exact path='/admin' component={IndexAdmin}/>
                </Switch>
            </DataCenter>
        </Router>
    );
}

export default App;
