2022-06-19 02:33:05 +00:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom/client';
|
2022-06-19 20:09:46 +00:00
|
|
|
// import App from './App';
|
|
|
|
import { Button, Nav, Navbar, NavLink } from "react-bootstrap";
|
|
|
|
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
|
|
|
import HomePage from "./pages/HomePage";
|
|
|
|
import DownloadPage from "./pages/DownloadPage";
|
2022-06-19 02:33:05 +00:00
|
|
|
|
|
|
|
const root = ReactDOM.createRoot(
|
2022-06-19 18:33:14 +00:00
|
|
|
document.getElementById('root') as HTMLElement
|
2022-06-19 02:33:05 +00:00
|
|
|
);
|
|
|
|
root.render(
|
2022-06-19 20:09:46 +00:00
|
|
|
<BrowserRouter>
|
|
|
|
<Navbar bg={"dark"} variant={"dark"}>
|
|
|
|
<Navbar.Brand className={"ms-5"} href={"/"}>SCISSORS</Navbar.Brand>
|
|
|
|
<Nav className={"me-auto"}>
|
|
|
|
<NavLink href={"https://github.com/AtlasMediaGroup/Scissors"}>Source</NavLink>
|
|
|
|
<NavLink href={"https://status.scissors.gg"}>Status</NavLink>
|
|
|
|
</Nav>
|
|
|
|
<Button variant={"light"} className={"me-5 download-button"} href={"/downloads"} style={{borderRadius: "2vh"}}><img src={"https://cdn3.iconfinder.com/data/icons/download-buttons-outline-collection/70/Download-13-512.png"} width={"50px"} alt={"download"}/> DOWNLOAD</Button>
|
|
|
|
</Navbar>
|
|
|
|
<Routes>
|
|
|
|
<Route path={"/"} element={<HomePage/>}/>
|
|
|
|
<Route path={"/downloads"} element={<DownloadPage/>}/>
|
|
|
|
</Routes>
|
|
|
|
</BrowserRouter>
|
2022-06-19 02:33:05 +00:00
|
|
|
);
|