Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jbilcke-hf committed Oct 18, 2024
1 parent c1240dc commit 0e2a66c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 24 deletions.
23 changes: 17 additions & 6 deletions client/src/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,24 @@ export function Layout({ children }: { children: ReactNode }) {
}, []);

return (
<div className="fixed min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-gray-300 to-stone-300"
style={{ boxShadow: "inset 0 0 10vh 0 rgb(0 0 0 / 30%)" }}>
<div className="min-h-screen w-full flex flex-col justify-center">
<div className="flex flex-col items-center justify-center p-2 sm:max-w-5xl sm:mx-auto">
{children}
<>
<style>{`
html, body {
position: fixed;
overflow: hidden;
width: 100%;
height: 100%;
overscroll-behavior: none;
}
`}</style>
<div className="fixed min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-gray-300 to-stone-300"
style={{ boxShadow: "inset 0 0 10vh 0 rgb(0 0 0 / 30%)" }}>
<div className="min-h-screen w-full flex flex-col justify-center">
<div className="flex flex-col items-center justify-center p-2 sm:max-w-5xl sm:mx-auto">
{children}
</div>
</div>
</div>
</div>
</>
);
}
8 changes: 0 additions & 8 deletions client/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,4 @@
@apply bg-background text-foreground;
font-feature-settings: "rlig" 1, "calt" 1;
}

html, body {
position: fixed;
overflow: hidden;
width: 100%;
height: 100%;
overscroll-behavior: none;
}
}
35 changes: 25 additions & 10 deletions public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33483,17 +33483,32 @@ function Layout({ children }) {
document.body.removeEventListener("touchmove", preventDefaultTouchBehavior);
};
}, []);
return jsx_dev_runtime3.jsxDEV("div", {
className: "fixed min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-gray-300 to-stone-300",
style: { boxShadow: "inset 0 0 10vh 0 rgb(0 0 0 / 30%)" },
children: jsx_dev_runtime3.jsxDEV("div", {
className: "min-h-screen w-full flex flex-col justify-center",
children: jsx_dev_runtime3.jsxDEV("div", {
className: "flex flex-col items-center justify-center p-2 sm:max-w-5xl sm:mx-auto",
children
return jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
children: [
jsx_dev_runtime3.jsxDEV("style", {
children: `
html, body {
position: fixed;
overflow: hidden;
width: 100%;
height: 100%;
overscroll-behavior: none;
}
`
}, undefined, false, undefined, this),
jsx_dev_runtime3.jsxDEV("div", {
className: "fixed min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-gray-300 to-stone-300",
style: { boxShadow: "inset 0 0 10vh 0 rgb(0 0 0 / 30%)" },
children: jsx_dev_runtime3.jsxDEV("div", {
className: "min-h-screen w-full flex flex-col justify-center",
children: jsx_dev_runtime3.jsxDEV("div", {
className: "flex flex-col items-center justify-center p-2 sm:max-w-5xl sm:mx-auto",
children
}, undefined, false, undefined, this)
}, undefined, false, undefined, this)
}, undefined, false, undefined, this)
}, undefined, false, undefined, this)
}, undefined, false, undefined, this);
]
}, undefined, true, undefined, this);
}

// src/app.tsx
Expand Down

0 comments on commit 0e2a66c

Please sign in to comment.