Skip to content

Commit 6714502

Browse files
committed
Background is constructed of 3 images
1 parent fc79965 commit 6714502

File tree

7 files changed

+55
-12
lines changed

7 files changed

+55
-12
lines changed
2.34 KB
Loading
20.3 KB
Loading
151 KB
Loading
-185 KB
Binary file not shown.
Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,48 @@
11
import { type ReactNode } from "react";
2-
import blurredDashboardBackground from "~/assets/images/blurred-dashboard-background.jpg";
2+
import blurredDashboardBackgroundMenuTop from "~/assets/images/blurred-dashboard-background-menu-top.jpg";
3+
import blurredDashboardBackgroundMenuBottom from "~/assets/images/blurred-dashboard-background-menu-bottom.jpg";
4+
import blurredDashboardBackgroundTable from "~/assets/images/blurred-dashboard-background-table.jpg";
35

46
export function BackgroundWrapper({ children }: { children: ReactNode }) {
57
return (
6-
<div
7-
className="h-full w-full bg-cover bg-left-top bg-no-repeat"
8-
style={{
9-
backgroundImage: `url(${blurredDashboardBackground})`,
10-
}}
11-
>
12-
{children}
8+
<div className="relative h-full w-full overflow-hidden">
9+
{/* Left menu top background - fixed width 260px, maintains aspect ratio */}
10+
<div
11+
className="absolute left-0 top-0 w-[260px] bg-contain bg-left-top bg-no-repeat"
12+
style={{
13+
backgroundImage: `url(${blurredDashboardBackgroundMenuTop})`,
14+
aspectRatio: "auto",
15+
height: "100vh",
16+
backgroundSize: "260px auto",
17+
}}
18+
/>
19+
20+
{/* Left menu bottom background - fixed width 260px, maintains aspect ratio */}
21+
<div
22+
className="absolute bottom-0 left-0 w-[260px] bg-contain bg-left-bottom bg-no-repeat"
23+
style={{
24+
backgroundImage: `url(${blurredDashboardBackgroundMenuBottom})`,
25+
aspectRatio: "auto",
26+
height: "100vh",
27+
backgroundSize: "260px auto",
28+
}}
29+
/>
30+
31+
{/* Right table background - fixed width 2000px, positioned next to menu */}
32+
<div
33+
className="absolute top-0 bg-left-top bg-no-repeat"
34+
style={{
35+
left: "260px",
36+
backgroundImage: `url(${blurredDashboardBackgroundTable})`,
37+
width: "100%",
38+
height: "100vh",
39+
backgroundSize: "1200px auto",
40+
backgroundColor: "#101214",
41+
}}
42+
/>
43+
44+
{/* Content layer */}
45+
<div className="relative z-10 h-full w-full">{children}</div>
1346
</div>
1447
);
1548
}

apps/webapp/app/components/layout/AppLayout.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
import { cn } from "~/utils/cn";
22

33
/** This container is used to surround the entire app, it correctly places the nav bar */
4-
export function AppContainer({ children }: { children: React.ReactNode }) {
5-
return <div className={cn("grid h-full w-full grid-rows-1 overflow-hidden")}>{children}</div>;
4+
export function AppContainer({
5+
children,
6+
className,
7+
}: {
8+
children: React.ReactNode;
9+
className?: string;
10+
}) {
11+
return (
12+
<div className={cn("grid h-full w-full grid-rows-1 overflow-hidden", className)}>
13+
{children}
14+
</div>
15+
);
616
}
717

818
export function MainBody({ children }: { children: React.ReactNode }) {

apps/webapp/app/routes/confirm-basic-details.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ export default function Page() {
139139
const shouldShowConfirm = user.email !== enteredEmail || user.email === "";
140140

141141
return (
142-
<AppContainer>
142+
<AppContainer className="bg-charcoal-900">
143143
<BackgroundWrapper>
144-
<MainCenteredContainer className="max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5">
144+
<MainCenteredContainer className="max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg">
145145
<Form method="post" {...form.props}>
146146
<FormTitle
147147
title="Welcome to Trigger.dev"

0 commit comments

Comments
 (0)