mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
make space for the control buttons
This commit is contained in:
1 parent
57c1538269
commit
de00cdd76e
7 files changed
+39
-7
No files matched your search
@@ -10,12 +10,16 @@ import {
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
|
||||
import { Button } from '~/components/Button';
|
||||
import { ButtonLink } from '~/components/ButtonLink';
|
||||
import {
|
||||
Button,
|
||||
ButtonLink,
|
||||
} from '~/components';
|
||||
import { ButtonDialogue } from '~/modules/ButtonDialogue';
|
||||
import { TopBarHelmet } from '~/modules/TopBarHelmet/TopBarHelmet';
|
||||
import { SidePanel } from '~/modules/SidePanel';
|
||||
import { LowerPanel } from '~/modules/LowerPanel';
|
||||
import { Controls3D } from './comps/Controls3D';
|
||||
import { ControlsVideo } from './comps/ControlsVideo';
|
||||
import { Timeline } from './comps/Timeline';
|
||||
|
||||
import Editor from './js/editor';
|
||||
|
||||
@@ -96,6 +100,8 @@ export const PageEnigma = () => {
|
||||
<p>Ask Miles about ThreeJS</p>
|
||||
<p>Ask Wil about React</p>
|
||||
</ButtonDialogue>
|
||||
<Controls3D/>
|
||||
<ControlsVideo/>
|
||||
</div>
|
||||
</div>
|
||||
<SidePanel>
|
||||
@@ -103,10 +109,7 @@ export const PageEnigma = () => {
|
||||
<Button onClick={handleButtonRender}>Render</Button>
|
||||
<Button onClick={handleButtonPlay}>Play</Button>
|
||||
</SidePanel>
|
||||
<LowerPanel>
|
||||
<div className='h-10 w-full border-b border-ui-panel-border'></div>
|
||||
<input style={{ display: 'none' }} type="file" id="load-upload" name="load-upload"></input>
|
||||
</LowerPanel>
|
||||
<Timeline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
export const Controls3D = ()=>{
|
||||
return(
|
||||
<div
|
||||
className="fixed left-1/2 -translate-x-1/2 bg-ui-panel border-b border-x border-ui-panel-border rounded-b-md p-2 text-white"
|
||||
style={{top: "72px"}}
|
||||
>
|
||||
Controls for the 3D scene
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export { Controls3D } from './Controls3D';
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
export const ControlsVideo = ()=>{
|
||||
return(
|
||||
<div className="fixed top-3/4 left-1/2 -translate-x-1/2 -mt-10 bg-ui-panel border-t border-x border-ui-panel-border rounded-t-md p-2 text-white">Video Controls</div>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
export { ControlsVideo } from './ControlsVideo';
|
||||
@@ -0,0 +1,10 @@
|
||||
import { LowerPanel } from "~/modules/LowerPanel";
|
||||
|
||||
export const Timeline = ()=>{
|
||||
return(
|
||||
<LowerPanel>
|
||||
<div className='h-10 w-full border-b border-ui-panel-border'></div>
|
||||
<input style={{ display: 'none' }} type="file" id="load-upload" name="load-upload"></input>
|
||||
</LowerPanel>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export { Timeline } from './Timeline';
|
||||
Reference in new issue
Block a user