diff --git a/docs/README.md b/docs/README.md index 30d3e16..3ac1c36 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,6 +2,8 @@ ## Table of contents +- [Features](features) +- [Configurations](configurations) - [Contributing](contributing) - [React](react) @@ -41,4 +43,8 @@ - [docs](.) directory - You are here. This directory contains all documentation for this project. \ No newline at end of file + You are here. This directory contains all documentation for this project. + +- [build](../build) directory + + Contains the static build files after [building](#building--deploying) the application. \ No newline at end of file diff --git a/docs/configurations/README.md b/docs/configurations/README.md new file mode 100644 index 0000000..f4925c7 --- /dev/null +++ b/docs/configurations/README.md @@ -0,0 +1,7 @@ +# Configurations + +All configs can be found in the [src/config](../../src/config) directory. + +## Settings + +- `wallpaper` - The url of the image used as the wallpaper. \ No newline at end of file diff --git a/docs/features/README.md b/docs/features/README.md new file mode 100644 index 0000000..cda8643 --- /dev/null +++ b/docs/features/README.md @@ -0,0 +1,47 @@ +# Features + +Most code for features can be found in the [src/features](../../src/features) directory. This directory is a library that is mostly used by files in the [src/components](../../src/components) and [src/hooks](../../src/hooks) directory. + +## Applications + +There are several applications. + +### Terminal + +A command line tool. + +### Code Editor + +Coming soon. + +### File Explorer + +Coming soon. + +### Media Viewer + +Coming soon. + +## Desktop + +Coming soon. + +## Math + +The math folder contains util classes related to maths. + +## Storage + +Coming soon. + +## Taskbar + +Shows pinned applications, a search button, multiple control buttons and the time and date. + +## Virtual Drive + +The virtual drive is a drive that stores virtual files and folders. + +## Windows + +Each application opens in a window that can be dragged around and maximized/minimized. \ No newline at end of file diff --git a/src/App.css b/src/App.css index 93219b4..919d9db 100644 --- a/src/App.css +++ b/src/App.css @@ -4,7 +4,6 @@ left: 0; width: 100%; height: 100%; - background-image: url("/public/media/wallpapers/wallpaper1.png"); background-size: cover; text-align: center; } diff --git a/src/App.js b/src/App.js index 07549bb..9da8918 100644 --- a/src/App.js +++ b/src/App.js @@ -3,12 +3,13 @@ import { Taskbar } from "./components/TaskBar.js"; import { WindowsManagerProvider } from "./hooks/WindowsManagerContext.js"; import { WindowsView } from "./components/WindowsView.js"; import { VirtualRootProvider } from "./hooks/VirtualRootContext.js"; +import { SETTINGS } from "./config/settings.js"; function App() { return ( -
+
diff --git a/src/config/settings.js b/src/config/settings.js new file mode 100644 index 0000000..bbe9493 --- /dev/null +++ b/src/config/settings.js @@ -0,0 +1,3 @@ +export const SETTINGS = { + wallpaper: "/media/wallpapers/wallpaper1.png" +}; \ No newline at end of file diff --git a/src/index.css b/src/index.css index 0ca0d11..9db53a3 100644 --- a/src/index.css +++ b/src/index.css @@ -81,6 +81,16 @@ font-weight: 800; } +html, body, #root { + width: 100%; + height: 100%; +} + +html { + overflow: hidden; + background-color: var(--background-color-c); +} + body { margin: 0; font-family: var(--body-font-family); @@ -88,20 +98,6 @@ body { -moz-osx-font-smoothing: grayscale; } -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} - -html { - overflow: hidden; -} - -html, body, #root { - width: 100%; - height: 100%; -} - * { color: var(--foreground-color-a); box-sizing: border-box; @@ -110,4 +106,8 @@ html, body, #root { p, a, button, input, h1, h2, h3, h4, h5, h6 { font-family: var(--body-font-family); letter-spacing: 0.01rem; +} + +code { + font-family: var(--mono-font-family); } \ No newline at end of file