Skip to content

Commit bacca00

Browse files
committed
Small improvement in page layout.
1 parent cf17a9c commit bacca00

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

pages/newsletter/index.page.tsx

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
import React from 'react';
2+
import Head from 'next/head';
3+
import { getLayout } from '~/components/SiteLayout';
24
import NewsletterForm from '~/components/Newsletter';
3-
import Layout from '~/components/Layout';
5+
import { SectionContext } from '~/context';
46

5-
const index = () => {
7+
export default function StaticMarkdownPage() {
8+
const newTitle = 'JSON Schema Newsletter';
69
return (
7-
<>
8-
<Layout>
9-
<NewsletterForm
10-
className='pt-[100px] bg-white text-black'
11-
wrapperClassName='h-full sm:h-[calc(100vh-100px)] bg-white py-[50px] sm:py-0 px-5 sm:px-10 lg:w-full'
12-
/>
13-
</Layout>
14-
</>
10+
<SectionContext.Provider value={null}>
11+
<Head>
12+
<title>{newTitle}</title>
13+
</Head>
14+
<div className='flex flex-col items-center justify-center'>
15+
<div className='max-w-[1400px] mx-auto'>
16+
<NewsletterForm
17+
className='pt-[100px] bg-white text-black'
18+
wrapperClassName='h-full sm:h-[calc(100vh-312px)] py-[50px] sm:py-0 px-5 sm:px-10 lg:w-full'
19+
/>
20+
</div>
21+
</div>
22+
</SectionContext.Provider>
1523
);
16-
};
17-
18-
export default index;
24+
}
25+
StaticMarkdownPage.getLayout = getLayout;

0 commit comments

Comments
 (0)