-
-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make i18n work for newsletter page
- Loading branch information
1 parent
bb69a47
commit b995b17
Showing
4 changed files
with
49 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
|
||
import Head from '@/components/Head'; | ||
import Container from '@/components/layout/Container'; | ||
import NewsletterSubscribe from '@/components/NewsletterSubscribe'; | ||
import { getStaticPaths, makeStaticProps } from '@/utils/getStatic'; | ||
|
||
const getStaticProps = makeStaticProps(['common']); | ||
|
||
export { getStaticPaths, getStaticProps }; | ||
|
||
/** | ||
* @description component that is used on landing page to embed newsletter and subscription option. | ||
*/ | ||
export default function NewsletterIndexPage() { | ||
return ( | ||
<div> | ||
<Head title='Newsletter' /> | ||
<div className='mt-12 py-12'> | ||
<Container wide> | ||
<NewsletterSubscribe /> | ||
</Container> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters