Skip to content

Commit 98edf75

Browse files
Fix safari mobile on jam pages (#368)
* Fix safari mobile style changes * tweak styles more * Cleanup the background styles
1 parent ff2042d commit 98edf75

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

app/routes/jam/jam.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ body {
1919
scrollbar-color: theme(colors.gray.300) theme(colors.gray.800);
2020
}
2121

22+
/* Overriding classname from root.tsx */
23+
body {
24+
background: radial-gradient(
25+
72% 63% at 50% 32.300000000000004%,
26+
#3b3b3b 0.036346160613726086%,
27+
rgb(26, 26, 26) 100%
28+
) !important;
29+
}
30+
2231
@media (prefers-reduced-motion: reduce) {
2332
html {
2433
scroll-behavior: auto;

app/routes/jam/pages/layout.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export function links() {
3131
];
3232
}
3333

34+
export let handle = {
35+
forceDark: true,
36+
};
37+
3438
export function loader({ request }: Route.LoaderArgs) {
3539
const url = new URL(request.url);
3640
// Only redirect if we're at the index path (/jam or /jam/)
@@ -44,7 +48,7 @@ export function loader({ request }: Route.LoaderArgs) {
4448

4549
export default function JamLayout() {
4650
return (
47-
<div className="relative overflow-x-hidden">
51+
<div className="relative overflow-hidden">
4852
<Background>
4953
<Navbar className="z-40" />
5054
<div className="px-6">
@@ -64,15 +68,6 @@ function Background({ children }: { children: React.ReactNode }) {
6468

6569
return (
6670
<>
67-
{/* Base radial gradient layer */}
68-
<div
69-
className="fixed -inset-11 z-0 select-none"
70-
style={{
71-
background:
72-
"radial-gradient(72% 63% at 50% 32.300000000000004%,#3b3b3b .036346160613726086%,rgb(26,26,26) 100%)",
73-
}}
74-
/>
75-
7671
<div className="isolate">
7772
{children}
7873

0 commit comments

Comments
 (0)