An open-source, self-hosted system for apps built with web technologies.
Build View2 desktop layout skeleton
zohayrslileh97f9cae1d249
diff --git a/source/client/view2/appearance/appearance.css b/source/client/view2/appearance/appearance.cssindex 52aa285..bbcf9ee 100644--- a/source/client/view2/appearance/appearance.css+++ b/source/client/view2/appearance/appearance.css@@ -4,7 +4,7 @@@import "@fontsource/roboto";-@theme {+@theme inline {--font-roboto: "Roboto", sans-serif;}diff --git a/source/client/view2/structure/desktop/desktop.tsx b/source/client/view2/structure/desktop/desktop.tsxindex 24f5409..c6540e6 100644--- a/source/client/view2/structure/desktop/desktop.tsx+++ b/source/client/view2/structure/desktop/desktop.tsx@@ -6,7 +6,7 @@ import Taskbar from "./taskbar/taskbar"export default function () {- return <div className="grid grid-rows-5 p-3">+ return <div className="relative isolate grid min-h-0 grid-cols-1 grid-rows-[minmax(0,1fr)_auto] gap-2.5 p-2.5"><Wallpaper />diff --git a/source/client/view2/structure/desktop/over-windows/over-windows.tsx b/source/client/view2/structure/desktop/over-windows/over-windows.tsxindex c16079c..34a6c3b 100644--- a/source/client/view2/structure/desktop/over-windows/over-windows.tsx+++ b/source/client/view2/structure/desktop/over-windows/over-windows.tsx@@ -1,4 +1,4 @@export default function () {- return <div className="bg-warning/20" />+ return <div className="pointer-events-none absolute inset-0 z-3 overflow-hidden" />}diff --git a/source/client/view2/structure/desktop/taskbar/launcher/launcher.tsx b/source/client/view2/structure/desktop/taskbar/launcher/launcher.tsxnew file mode 100644index 0000000..d45307b--- /dev/null+++ b/source/client/view2/structure/desktop/taskbar/launcher/launcher.tsx@@ -0,0 +1,4 @@+export default function () {++ return <div className="h-full min-w-[2.2rem] bg-danger" />+}diff --git a/source/client/view2/structure/desktop/taskbar/programs/programs.tsx b/source/client/view2/structure/desktop/taskbar/programs/programs.tsxnew file mode 100644index 0000000..ed0c144--- /dev/null+++ b/source/client/view2/structure/desktop/taskbar/programs/programs.tsx@@ -0,0 +1,4 @@+export default function () {++ return <div className="min-w-0 bg-accent/20" />+}diff --git a/source/client/view2/structure/desktop/taskbar/system/system.tsx b/source/client/view2/structure/desktop/taskbar/system/system.tsxnew file mode 100644index 0000000..3095c3a--- /dev/null+++ b/source/client/view2/structure/desktop/taskbar/system/system.tsx@@ -0,0 +1,4 @@+export default function () {++ return <div className="h-full min-w-[2.2rem] bg-warning/20" />+}diff --git a/source/client/view2/structure/desktop/taskbar/taskbar.tsx b/source/client/view2/structure/desktop/taskbar/taskbar.tsxindex 496b4c2..64a7362 100644--- a/source/client/view2/structure/desktop/taskbar/taskbar.tsx+++ b/source/client/view2/structure/desktop/taskbar/taskbar.tsx@@ -1,4 +1,16 @@+import Launcher from "./launcher/launcher"+import Programs from "./programs/programs"+import System from "./system/system"+export default function () {- return <div className="bg-success/20" />+ return <div className="relative z-4 grid h-[2.2rem] grid-cols-[auto_1fr_auto] gap-1.25 overflow-hidden rounded-lg bg-success/20 p-1.25">++ <Launcher />++ <Programs />++ <System />++ </div>}diff --git a/source/client/view2/structure/desktop/under-windows/under-windows.tsx b/source/client/view2/structure/desktop/under-windows/under-windows.tsxindex 5b67d0f..ec4770e 100644--- a/source/client/view2/structure/desktop/under-windows/under-windows.tsx+++ b/source/client/view2/structure/desktop/under-windows/under-windows.tsx@@ -1,4 +1,4 @@export default function () {- return <div className="bg-surface/20" />+ return <div className="pointer-events-none absolute inset-0 z-1 overflow-hidden" />}diff --git a/source/client/view2/structure/desktop/wallpaper/wallpaper.tsx b/source/client/view2/structure/desktop/wallpaper/wallpaper.tsxindex b6ae23f..2f94598 100644--- a/source/client/view2/structure/desktop/wallpaper/wallpaper.tsx+++ b/source/client/view2/structure/desktop/wallpaper/wallpaper.tsx@@ -1,4 +1,4 @@export default function () {- return <div className="bg-background" />+ return <div className="absolute inset-0 z-0 overflow-hidden" />}diff --git a/source/client/view2/structure/desktop/windows/windows.tsx b/source/client/view2/structure/desktop/windows/windows.tsxindex d53cd37..048142d 100644--- a/source/client/view2/structure/desktop/windows/windows.tsx+++ b/source/client/view2/structure/desktop/windows/windows.tsx@@ -1,4 +1,4 @@export default function () {- return <div className="bg-accent/20" />+ return <div className="pointer-events-none relative z-2 min-h-0 bg-accent/20" />}