Skip to content

Commit 462c700

Browse files
committed
Set max width for pages layout
1 parent 0b66917 commit 462c700

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

index.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@
3939
}
4040

4141
@layer components {
42+
.outlet-container {
43+
@apply mt-14 sm:mt-18 md:mt-21 lg:mt-26 py-10 px-5 sm:px-10 md:px-20 lg:px-40 2xl:px-80 flex-1 flex bg-body;
44+
}
4245
.pages {
43-
@apply mt-14 sm:mt-18 md:mt-21 lg:mt-26 py-10 px-5 sm:px-10 md:px-20 lg:px-40 2xl:px-80 flex-1 space-y-4 md:space-y-8 bg-body;
46+
@apply max-w-7xl w-full mx-auto space-y-4 md:space-y-8 flex-1;
4447
}
4548
}
4649

src/layout/Layout.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ const Layout = () => {
66
return (
77
<main className={`min-h-screen w-screen flex flex-col`} >
88
<Header />
9-
<Outlet />
9+
<div className="outlet-container">
10+
<Outlet />
11+
</div>
1012
<Footer />
1113
</main>
1214
);

0 commit comments

Comments
 (0)