This repository was archived by the owner on Nov 19, 2023. It is now read-only.
Commit fb8084e 1 parent 1fb6a8a commit fb8084e Copy full SHA for fb8084e
File tree 4 files changed +35
-14
lines changed
4 files changed +35
-14
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const CanvasSection = () => {
7
7
return (
8
8
< section id = 'canvas-section' className = 'm-4 absolute inset-0 flex justify-center items-center' >
9
9
< div className = 'relative w-full h-full max-w-[500px] max-h-[500px] flex justify-center items-center' >
10
- { ! wasm ? null : < Canvas wasm = { wasm } /> }
10
+ { /* { !wasm ? null : <Canvas wasm={wasm}/> } */ }
11
11
</ div >
12
12
</ section >
13
13
)
Original file line number Diff line number Diff line change 1
- export const Header = ( ) => {
1
+ interface HeaderProps {
2
+ className ?: string
3
+ }
4
+
5
+ export const Header : React . FC < HeaderProps > = ( {
6
+ className = ''
7
+ } ) => {
2
8
return (
3
- < header className = 'p-4 box-border' >
4
- < h1 className = 'text-center md:text-left text-lg' > DISPLACEMENT</ h1 >
9
+ < header className = { `bg-black/75 drop-shadow-2xl px-4 flex items-center justify-center md:justify-start ${ className } ` } >
10
+ < h1 className = 'md:text-left text-lg' > DISPLACEMENT</ h1 >
5
11
</ header >
6
12
)
7
13
}
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ export const Layout: React.FC<LayoutProps> = ({
9
9
children,
10
10
} ) => {
11
11
return (
12
- < div className = 'fixed inset-0 overflow-hidden flex flex-col' >
12
+ < >
13
13
< Header />
14
- < main className = 'flex-1 relative' >
14
+ < main >
15
15
{ children }
16
16
</ main >
17
- </ div >
17
+ </ >
18
18
)
19
19
}
Original file line number Diff line number Diff line change 1
1
import type { NextPage } from 'next'
2
2
import { BottomBarSection } from '../components/BottomBarSection' ;
3
3
import { CanvasSection } from '../components/CanvasSection'
4
+ import { Header } from '../components/Header' ;
4
5
import { Layout } from '../components/Layout' ;
5
6
import { SectionsContainer } from '../components/SectionsContainer' ;
6
7
import { SettingsSection } from '../components/SettingsSection' ;
7
8
8
9
const Home : NextPage = ( ) => {
9
10
return (
10
- < Layout >
11
- < SectionsContainer
12
- primary = { < CanvasSection /> }
13
- secondary = { < SettingsSection /> }
14
- bottomBar = { < BottomBarSection /> }
15
- />
16
- </ Layout >
11
+ < >
12
+ < header className = 'fixed top-0 inset-x-0 h-16 z-10 bg-black/75 drop-shadow-2xl px-4 flex items-center justify-center md:justify-start' >
13
+ < h1 className = 'text-2xl font-bold md:text-left' > DISPLACEMENT</ h1 >
14
+ </ header >
15
+ < div className = 'md:flex' >
16
+ < section className = 'mt-16 h-[calc(100vh-theme(spacing.16))] relative md:flex-1' >
17
+ < div className = 'absolute inset-4 overflow-y-auto' >
18
+ < div className = 'absolute inset-0 flex justify-center items-center bg-red-900' >
19
+ < div className = 'w-full h-full max-w-[500px] max-h-[500px] bg-red-500' >
20
+
21
+ </ div >
22
+ </ div >
23
+ </ div >
24
+ </ section >
25
+ < section className = 'mt-16 h-[calc(100vh-theme(spacing.16))] relative md:flex-1' >
26
+ < div className = 'absolute inset-4 overflow-y-auto bg-sky-700' >
27
+
28
+ </ div >
29
+ </ section >
30
+ </ div >
31
+ </ >
17
32
)
18
33
}
19
34
You can’t perform that action at this time.
0 commit comments