generated from aura-nw/aura-reactjs-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
411 additions
and
43 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,40 @@ | ||
import HeadComponent from 'components/Head' | ||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations' | ||
import Layout from 'components/Layout' | ||
import PageContent from './page' | ||
export default function Page(props) { | ||
if (props.justHead || props.pageProps?.justHead) { | ||
return <HeadComponent data={props.pageProps?.metadata || props.metadata} /> | ||
} | ||
return ( | ||
<> | ||
<HeadComponent data={props.pageProps?.metadata || props.metadata} /> | ||
<PageContent /> | ||
</> | ||
) | ||
} | ||
Page.getLayout = function getLayout(page) { | ||
return <Layout>{page}</Layout> | ||
} | ||
export const getServerSideProps = async (context) => { | ||
const props = { | ||
image: | ||
context.locale == 'vn' | ||
? 'https://punkga.me/assets/images/ava-thumb.png' | ||
: 'https://punkga.me/assets/images/ava-thumb.png', | ||
title: | ||
context.locale == 'vn' | ||
? `AVA Grand Contest 2024 - Find Your Artistic Voice` | ||
: `AVA Grand Contest 2024 - Find Your Artistic Voice`, | ||
description: | ||
context.locale == 'vn' | ||
? `Tham gia AVA Grand Contest 2024 trên PunkgaMe để chứng tỏ bản sắc nghệ thuật của riêng bạn và giành lấy phần thưởng lên tới 150 Triệu VNĐ!` | ||
: `Join the AVA Grand Contest 2024 on Punkga Me to showcase your talent and win prizes up to 6,000 USD. Prove the power of true art in an AI-driven world!`, | ||
} | ||
return { | ||
props: { | ||
metadata: props, | ||
...(await serverSideTranslations(context?.locale!, ['common'])), | ||
}, | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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