diff --git a/src/components/App.css b/src/components/App.css new file mode 100644 index 0000000..22474cb --- /dev/null +++ b/src/components/App.css @@ -0,0 +1,38 @@ +@font-face { + font-family: "SpaceGrotesk"; + src: + local("SpaceGrotesk"), + url("../fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype"); +} + +@font-face { + font-family: "Inter"; + src: + local("Inter"), + url("../fonts/Inter-VariableFont_slnt,wght.ttf") format("truetype"); +} + +html, +body { + box-sizing: border-box; + height: 100%; + padding: 0; + margin: 0; +} + +#root { + box-sizing: border-box; + min-height: 100%; + display: flex; + flex-direction: column; +} + +#header, +#footer { + flex-grow: 0; + flex-shrink: 0; +} + +#body { + flex-grow: 1; +} diff --git a/src/components/App.tsx b/src/components/App.tsx index 0f15d79..5162423 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -5,6 +5,7 @@ import { Provider, type ProviderProps } from "react-redux" import { BrowserRouter, Routes as RouterRoutes } from "react-router-dom" import { type Action } from "redux" +import "./App.css" import { InactiveDialog, ScreenTimeDialog } from "../features" import { useCountdown, useEventListener, useLocation } from "../hooks" // import "../scripts" @@ -84,30 +85,6 @@ const App = ({ return ( -