UNPKG

next-sanity

Version:
52 lines (51 loc) 1.27 kB
import { jsx, jsxs } from "react/jsx-runtime"; const style = { height: "100vh", maxHeight: "100dvh", overscrollBehavior: "none", WebkitFontSmoothing: "antialiased", overflow: "auto" }; const NextStudioLayout = ({ children }) => { return /* @__PURE__ */ jsx("div", { id: "sanity", "data-ui": "NextStudioLayout", style, children }); }; const styles = { outer: { position: "absolute", top: 0, right: 0, left: 0, bottom: 0, background: "#fff", zIndex: 1 }, inner: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", textAlign: "center", fontFamily: "helvetica, arial, sans-serif" } }; const NextStudioNoScript = () => /* @__PURE__ */ jsx("noscript", { children: /* @__PURE__ */ jsx("div", { style: styles.outer, children: /* @__PURE__ */ jsxs("div", { style: styles.inner, children: [/* @__PURE__ */ jsx("h1", { children: "JavaScript disabled" }), /* @__PURE__ */ jsxs("p", { children: [ "Please ", /* @__PURE__ */ jsx("a", { href: "https://www.enable-javascript.com/", children: "enable JavaScript" }), " in your browser and reload the page to proceed." ] })] }) }) }); export { NextStudioLayout, NextStudioNoScript }; //# sourceMappingURL=NextStudioNoScript.js.map