|
@@ -35,14 +35,8 @@ let resizeTimer = null;
|
|
|
|
|
|
function App() {
|
|
|
const container = useRef();
|
|
|
- const { debug, scrollSpeed } = useControls({
|
|
|
+ const { debug } = useControls({
|
|
|
debug: false,
|
|
|
- scrollSpeed: {
|
|
|
- value: 0.66,
|
|
|
- min: 0,
|
|
|
- max: 1,
|
|
|
- step: 0.01,
|
|
|
- },
|
|
|
});
|
|
|
const handlerResize = () => {
|
|
|
clearTimeout(resizeTimer);
|
|
@@ -76,29 +70,40 @@ function App() {
|
|
|
window.addEventListener("resize", handlerResize, false);
|
|
|
handlerResize();
|
|
|
document.documentElement.style.overflow = "auto";
|
|
|
+ var vConsole = new window.VConsole();
|
|
|
+ if (debug) {
|
|
|
+ vConsole.showSwitch()
|
|
|
+ } else {
|
|
|
+
|
|
|
+ vConsole.hideSwitch()
|
|
|
+ }
|
|
|
});
|
|
|
+ const props = {
|
|
|
+ // scrollSpeed: scrollSpeed,
|
|
|
+ debug: debug,
|
|
|
+ };
|
|
|
|
|
|
return (
|
|
|
<div ref={container}>
|
|
|
<Opening></Opening>
|
|
|
|
|
|
- <Section1 debug={debug} />
|
|
|
- <Section2 debug={debug} />
|
|
|
- <Section3 debug={debug} />
|
|
|
- <Section4 debug={debug} />
|
|
|
- <Section5 debug={debug} />
|
|
|
- <Section6 debug={debug} />
|
|
|
- <Section7 debug={debug} />
|
|
|
- <Section8 debug={debug} />
|
|
|
- <Section9 debug={debug} />
|
|
|
- <Section10 debug={debug} />
|
|
|
- <Section11 debug={debug} />
|
|
|
- <Section12 debug={debug} />
|
|
|
- <Section13 debug={debug} />
|
|
|
- <Section14 debug={debug} />
|
|
|
- <Section15 debug={debug} />
|
|
|
- <Section16 debug={debug} />
|
|
|
- <Section17 debug={debug} />
|
|
|
+ <Section1 {...props} />
|
|
|
+ <Section2 {...props} />
|
|
|
+ <Section3 {...props} />
|
|
|
+ <Section4 {...props} />
|
|
|
+ <Section5 {...props} />
|
|
|
+ <Section6 {...props} />
|
|
|
+ <Section7 {...props} />
|
|
|
+ <Section8 {...props} />
|
|
|
+ <Section9 {...props} />
|
|
|
+ <Section10 {...props} />
|
|
|
+ <Section11 {...props} />
|
|
|
+ <Section12 {...props} />
|
|
|
+ <Section13 {...props} />
|
|
|
+ <Section14 {...props} />
|
|
|
+ <Section15 {...props} />
|
|
|
+ <Section16 {...props} />
|
|
|
+ <Section17 {...props} />
|
|
|
</div>
|
|
|
);
|
|
|
}
|