// @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" type="image/png" href="/nxtgauge-icon.png" />
          <style>{`html,body,#app{min-height:100%;margin:0}body{background:#F4F2EC} .dashboard-shell{background:#ffffff;min-height:100vh} .lp-main,.auth-page,.choose-role-page{background:#F4F2EC;min-height:100vh}`}</style>
          {assets}
        </head>
        <body>
          <div id="app">{children}</div>
          {scripts}
        </body>
      </html>
    )}
  />
));
