Skip to content

Commit

Permalink
Update other panels
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszmigas committed Mar 2, 2024
1 parent b790504 commit 2a7ab29
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/web/src/components/appContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import {
} from "@/components/ui/resizable";
import { SelectToolPanel } from "./panels/selectToolPanel";
import { ColorsPanel } from "./panels/colorsPanel";
import { LayersPanel } from "./panels/layersPanel";
import { HistoryPanel } from "./panels/historyPanel";
import { MetadataPanel } from "./panels/metadataPanel";

const LeftContent = () => {
return (
Expand All @@ -28,15 +31,15 @@ const RightContent = () => {
return (
<ResizablePanelGroup direction="vertical">
<ResizablePanel>
<div className="p-2">Layers</div>
<LayersPanel />
</ResizablePanel>
<ResizableHandle />
<ResizablePanel>
<div className="p-2">History</div>
<HistoryPanel />
</ResizablePanel>
<ResizableHandle />
<ResizablePanel>
<div className="p-2">Metadata</div>
<MetadataPanel />
</ResizablePanel>
</ResizablePanelGroup>
);
Expand Down
12 changes: 12 additions & 0 deletions apps/web/src/components/panels/historyPanel.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { translations } from "@/translations";
import { PanelHeader } from "./panelHeader";

export const HistoryPanel = () => {
return (
<div className="flex flex-col gap-medium">
<PanelHeader title={translations.history} />
<div className="flex flex-wrap flex-row gap-small p-small"></div>
</div>
);
};

12 changes: 12 additions & 0 deletions apps/web/src/components/panels/layersPanel.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { translations } from "@/translations";
import { PanelHeader } from "./panelHeader";

export const LayersPanel = () => {
return (
<div className="flex flex-col gap-medium">
<PanelHeader title={translations.layers} />
<div className="flex flex-wrap flex-row gap-small p-small"></div>
</div>
);
};

12 changes: 12 additions & 0 deletions apps/web/src/components/panels/metadataPanel.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { translations } from "@/translations";
import { PanelHeader } from "./panelHeader";

export const MetadataPanel = () => {
return (
<div className="flex flex-col gap-medium">
<PanelHeader title={translations.metadata} />
<div className="flex flex-wrap flex-row gap-small p-small"></div>
</div>
);
};

3 changes: 3 additions & 0 deletions apps/web/src/translations.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export const translations = {
tools: "Tools",
colors: "Colors",
layers: "Layers",
history: "History",
metadata: "Metadata",
};

0 comments on commit 2a7ab29

Please sign in to comment.