nxtgauge-frontend-solid/src/entry-server.tsx

23 lines
775 B
TypeScript
Raw Normal View History

// @refresh reload
import { createHandler, StartServer } from '@solidjs/start/server';
export default createHandler(() => (
<StartServer
document={({ assets, children, scripts }) => (
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
<style>{`html,body,#app{min-height:100%;margin:0}body{background:#07051a} .dashboard-shell{background:#f6f8ff;min-height:100vh} .lp-main,.auth-page,.choose-role-page{background:#07051a;min-height:100vh}`}</style>
{assets}
</head>
<body>
<div id="app">{children}</div>
{scripts}
</body>
</html>
)}
/>
));