added : info panel

This commit is contained in:
bhushan6
2023-03-05 21:58:43 +05:30
parent 3e99b31e7e
commit 91c4d6aec0
3 changed files with 22 additions and 1 deletions
+2 -1
View File
@@ -3,7 +3,7 @@ import { OrbitControls } from "@react-three/drei";
import { Canvas } from "@react-three/fiber";
import { Suspense } from "react";
import { LinearToneMapping } from "three";
import { Scene } from "./components";
import { InfoPanel, Scene } from "./components";
function App() {
return (
@@ -29,6 +29,7 @@ function App() {
<OrbitControls />
</Suspense>
</Canvas>
<InfoPanel />
</div>
);
}
+19
View File
@@ -0,0 +1,19 @@
import React from "react";
export const InfoPanel = () => {
return (
<div
style={{
position: "absolute",
zIndex: "1000",
top: 0,
left: 0,
fontFamily: "sans-serif",
padding: "10px",
width: "200px",
}}
>
Use panel on right top corner to customize the Lego Bricks Properties
</div>
);
};
+1
View File
@@ -4,3 +4,4 @@ export * from "./Brick";
export * from "./BrickCursor";
export * from "./Lights";
export * from "./Workspace";
export * from "./InfoPanel";