PadApp/pages/start.jsx

43 lines
1.2 KiB
React
Raw Normal View History

2022-12-11 22:23:21 +01:00
import { bg } from "../js/color.js";
2022-12-07 21:59:01 +01:00
import { Stear, SWindow, _,s } from "../stear/main.js";
import { fadein, fadeout, wait } from "../stear/utils.js";
2022-12-11 22:23:21 +01:00
import { LightMode } from "./elems/mode.jsx";
2022-12-07 21:59:01 +01:00
import menu from "./menu.jsx";
export const preRender = true;
var wobel = Stear.addAnimation({
"0%": {
transform: "translate(-50%, -50%) scale(100%)"
},
"50%": {
transform: "translate(-50%, -50%) scale(115%)"
},
"100%": {
transform: "translate(-50%, -50%) scale(100%)"
}
});
export default new SWindow({call: (stear, { find, resolve, render, call, event }, args) => {
event.onloaded = async ()=>{
await wait(Math.max(1, 1000 - performance.now()));
await fadeout(find.main);
call(menu);
2022-12-11 22:23:21 +01:00
stear.call(LightMode,{},1000);
2022-12-07 21:59:01 +01:00
resolve();
}
return <div style={{zIndex:1000}} find="main">
<img src="logo.png" style={{
width: "70vw",
maxWidth: "70vh",
maxHeight: "70vh",
position: "absolute",
left: "50%",
top: "50%",
transform: "translate(-50%, -50%)",
animation: `${wobel} 1s ease-in-out 0s infinite`,
}}/>
</div>;
2022-12-11 22:23:21 +01:00
}, preRender: true, backgroundColor:bg});