This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
β‘ π¨ β¨ add bundle anlyzer and home page content
add bundle anlyzer and home page content β‘ General update, π¨ Improve format/structure, β¨ New feature
- Loading branch information
1 parent
fa27b51
commit 1152e09
Showing
9 changed files
with
148 additions
and
27 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
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
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,12 @@ | ||
import { Toaster } from 'react-hot-toast'; | ||
|
||
const AppToaster = () => ( | ||
<Toaster | ||
position="bottom-center" | ||
containerStyle={{ | ||
zIndex: 99999, | ||
}} | ||
/> | ||
); | ||
|
||
export default AppToaster; |
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 |
---|---|---|
@@ -1,19 +1,29 @@ | ||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; | ||
import { GetServerSidePropsContext } from 'next'; | ||
import { Stack } from '@mui/joy'; | ||
import { GetStaticProps } from 'next'; | ||
import { Stack, Typography } from '@mui/joy'; | ||
import Link from 'next/link'; | ||
import { useTranslation } from 'next-i18next'; | ||
import { withTranslations } from '@/util/i18n/withTranslations'; | ||
|
||
const Landing = () => { | ||
return <Stack spacing={1}></Stack>; | ||
const Home = () => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<Stack spacing={1}> | ||
<Typography level="h5">{t(`helloThere`)}</Typography> | ||
<Typography level="body2"> | ||
<Link href="https://github.com/TimMikeladze/next-apollo-joy-starter"> | ||
{t(`learnMore`, { | ||
url: t(`learnMoreUrl`), | ||
})} | ||
</Link> | ||
</Typography> | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default Landing; | ||
export default Home; | ||
|
||
export const getServerSideProps = async ( | ||
context: GetServerSidePropsContext, | ||
) => { | ||
export const getStaticProps: GetStaticProps = withTranslations(() => { | ||
return { | ||
props: { | ||
...(await serverSideTranslations(context.locale as string, [`common`])), | ||
}, | ||
props: {}, | ||
}; | ||
}; | ||
}); |
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
1152e09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-apollo-joy-starter β ./
next-apollo-joy-starter-timmikeladze.vercel.app
next-apollo-joy-starter-git-master-timmikeladze.vercel.app
next-apollo-joy-starter.vercel.app