Skip to content

Commit dd93efd

Browse files
Make header divider full width
Co-authored-by: me <me@kentcdodds.com>
1 parent eca4987 commit dd93efd

1 file changed

Lines changed: 33 additions & 31 deletions

File tree

app/routes/_app+/_layout.tsx

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -74,38 +74,40 @@ export default function Layout() {
7474
isRecipientsRoute ? 'bg-white' : 'bg-background'
7575
}`}
7676
>
77-
<header className="border-border container border-b py-5 md:py-6">
78-
<nav className="flex flex-wrap items-center justify-between gap-4 sm:flex-nowrap md:gap-8">
79-
<Logo />
80-
<div className="flex items-center gap-10">
81-
{user ? (
82-
<div className="flex gap-4">
83-
{data.isSubscribed ? null : (
84-
<Button variant="outline" asChild>
85-
<Link to="/settings/profile/subscription">
86-
Start your free trial
87-
</Link>
88-
</Button>
89-
)}
90-
<UserDropdown />
91-
</div>
92-
) : (
93-
<>
94-
<Button
95-
asChild
96-
variant="default"
97-
size="lg"
98-
className="hidden sm:inline-flex"
99-
>
100-
<Link to="/login">Log In</Link>
101-
</Button>
102-
<div className="sm:hidden">
103-
<MobileMenu />
77+
<header className="border-border border-b">
78+
<div className="container py-5 md:py-6">
79+
<nav className="flex flex-wrap items-center justify-between gap-4 sm:flex-nowrap md:gap-8">
80+
<Logo />
81+
<div className="flex items-center gap-10">
82+
{user ? (
83+
<div className="flex gap-4">
84+
{data.isSubscribed ? null : (
85+
<Button variant="outline" asChild>
86+
<Link to="/settings/profile/subscription">
87+
Start your free trial
88+
</Link>
89+
</Button>
90+
)}
91+
<UserDropdown />
10492
</div>
105-
</>
106-
)}
107-
</div>
108-
</nav>
93+
) : (
94+
<>
95+
<Button
96+
asChild
97+
variant="default"
98+
size="lg"
99+
className="hidden sm:inline-flex"
100+
>
101+
<Link to="/login">Log In</Link>
102+
</Button>
103+
<div className="sm:hidden">
104+
<MobileMenu />
105+
</div>
106+
</>
107+
)}
108+
</div>
109+
</nav>
110+
</div>
109111
</header>
110112
<div className="flex-1">
111113
<Outlet />

0 commit comments

Comments
 (0)