Skip to content

Commit e630278

Browse files
committed
Wrap blog routes in InteriorWrap for the parchment surface
The blog list and post pages were rendering directly over the body's back.jpg cover, leaving them unreadable when the hero image was busy. Wrap both /blog and /blog/p/:slug (plus their bare-path equivalents on the blog subdomain) in the same InteriorWrap that /admin, /account, and the legal pages use, and drop the now-duplicate inner padding so content sits on a parchment card matching the rest of the site.
1 parent 3c7a398 commit e630278

3 files changed

Lines changed: 21 additions & 14 deletions

File tree

src/web/components/ContentBox.tsx

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,20 @@ export default function ContentBox() {
123123
to the routes below. */}
124124
{onBlogHost && (
125125
<Route exact path="/">
126-
<Suspense fallback={<div />}>
127-
<BlogList />
128-
</Suspense>
126+
<InteriorWrap>
127+
<Suspense fallback={<div />}>
128+
<BlogList />
129+
</Suspense>
130+
</InteriorWrap>
129131
</Route>
130132
)}
131133
{onBlogHost && (
132134
<Route path="/p/:slug">
133-
<Suspense fallback={<div />}>
134-
<BlogPost />
135-
</Suspense>
135+
<InteriorWrap>
136+
<Suspense fallback={<div />}>
137+
<BlogPost />
138+
</Suspense>
139+
</InteriorWrap>
136140
</Route>
137141
)}
138142

@@ -184,14 +188,18 @@ export default function ContentBox() {
184188
also server-rendered with OG metadata in
185189
src/index.ts. */}
186190
<Route path="/blog/p/:slug">
187-
<Suspense fallback={<div />}>
188-
<BlogPost />
189-
</Suspense>
191+
<InteriorWrap>
192+
<Suspense fallback={<div />}>
193+
<BlogPost />
194+
</Suspense>
195+
</InteriorWrap>
190196
</Route>
191197
<Route path="/blog">
192-
<Suspense fallback={<div />}>
193-
<BlogList />
194-
</Suspense>
198+
<InteriorWrap>
199+
<Suspense fallback={<div />}>
200+
<BlogList />
201+
</Suspense>
202+
</InteriorWrap>
195203
</Route>
196204
<Route path="/terms">
197205
<InteriorWrap>

src/web/components/blog/BlogList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function BlogList() {
5252
}, [page, tagParam]);
5353

5454
return (
55-
<div style={{ maxWidth: 760, margin: '0 auto', padding: '32px 24px' }}>
55+
<div style={{ maxWidth: 760, margin: '0 auto' }}>
5656
<header style={{ marginBottom: 32 }}>
5757
<p className="bb-eyebrow" style={{ marginBottom: 8 }}>BentoBox Blog</p>
5858
<h1

src/web/components/blog/BlogPost.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,4 @@ export default function BlogPost() {
251251
const containerStyle: React.CSSProperties = {
252252
maxWidth: 720,
253253
margin: '0 auto',
254-
padding: '32px 24px',
255254
};

0 commit comments

Comments
 (0)