Skip to content

Commit

Permalink
fix: update navigation bar (remove part of page content navigation)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljc1991 authored and ben196888 committed Sep 20, 2023
1 parent d039b2e commit 452fa52
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions homepage/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ import contentMapper from '../layouts/contentMapper';
* @type {import('next').GetStaticProps}
*/
export const getStaticProps = async ({ locale }) => {
const backToTop = {
en: 'Back to top',
'zh-tw': '回到頁首',
};
// const backToTop = {
// en: 'Back to top',
// 'zh-tw': '回到頁首',
// };

const projectIntroNav = {
en: 'Project Intro', // prefer Intro or Introduction?
'zh-tw': '專案介紹',
};
// const projectIntroNav = {
// en: 'Project Intro',
// 'zh-tw': '專案介紹',
// };

const gameIntroNav = {
en: 'Game Intro', // same as above
'zh-tw': '遊戲介紹',
};
// const gameIntroNav = {
// en: 'Game Intro',
// 'zh-tw': '遊戲介紹',
// };

const cardsPage = {
en: 'Cards',
Expand All @@ -34,9 +34,9 @@ export const getStaticProps = async ({ locale }) => {
};

const navigationList = [
{ link: `#page-top`, text: backToTop[locale] },
{ link: `#project-intro`, text: projectIntroNav[locale] },
{ link: `#game-intro`, text: gameIntroNav[locale] },
// { link: `#page-top`, text: backToTop[locale] },
// { link: `#project-intro`, text: projectIntroNav[locale] },
// { link: `#game-intro`, text: gameIntroNav[locale] },
{ link: `/cards`, text: cardsPage[locale] },
{ link: `/activities`, text: activitiesPage[locale] },
];
Expand Down

0 comments on commit 452fa52

Please sign in to comment.