diff --git a/package.json b/package.json index 095d3e7..01c72bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "scripts": { - "dev": "SNOWPACK_PUBLIC_API_URL=http://localhost:5000 SNOWPACK_PUBLIC_BASE_URL=http://localhost:8080 snowpack dev", + "dev": "SNOWPACK_PUBLIC_API_URL=https://publitebackend.dmitriy.icu SNOWPACK_PUBLIC_BASE_URL=http://localhost:8080 snowpack dev", "build": "snowpack build", "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/src/App/App.module.css b/src/App/App.module.css index ed0c801..73c2411 100644 --- a/src/App/App.module.css +++ b/src/App/App.module.css @@ -3,3 +3,15 @@ width: 100vw; overflow: hidden; } + +.loadingIndicator { + position: fixed; + top: 0; + left: 0; + height: 100vh; + width: 100vw; + background-color: white; + display: flex; + align-items: center; + justify-content: center; +} diff --git a/src/App/index.tsx b/src/App/index.tsx index a333545..cb24e71 100644 --- a/src/App/index.tsx +++ b/src/App/index.tsx @@ -1,23 +1,42 @@ -import React from "react"; +import React, { useState } from "react"; import { Route, Switch } from "wouter"; import { BookListContextProvider } from "~/context"; import { Bookshelf } from "~/pages/Bookshelf"; import { BookView } from "~/pages/BookView"; import { UploadForm } from "~/pages/UploadForm"; +import { Dots } from "~/utils/Dots"; import styles from "./App.module.css"; -export const App = () => ( -