Skip to content

Commit

Permalink
fix: remove forbole academy (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaCat authored Nov 14, 2023
1 parent eaed196 commit dda2eb9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
3 changes: 0 additions & 3 deletions public/locales/en/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"New_Chains_on_boarded_item_2": "KYVE",
"New_Chains_on_boarded_item_3": "Piccaso",
"New_Chains_on_boarded_title": "New Chains on boarded",
"Open_for_registration_now_item_1": "Demystifying DeFi on Aug 22 & 29, 2023",
"Open_for_registration_now_item_2": "Demystifying DeFi on Sep 9, 2023",
"Open_for_registration_now_title": "Open for registration now",
"Validator_Infrastructure_desc": "Is very important to ensure a secure and efficient infrastructure for blockchain projects. We never stop to provide validating services for different chains.",
"Validator_Infrastructure_title": "Validator Infrastructure",
"What_is_New?": "What’s New?",
Expand Down
3 changes: 0 additions & 3 deletions public/locales/zh-CN/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"New_Chains_on_boarded_item_2": "KYVE",
"New_Chains_on_boarded_item_3": "Piccaso",
"New_Chains_on_boarded_title": "新加入的区块链,欢迎质押给Forbole",
"Open_for_registration_now_item_1": "「去中心化金融解密」于2023年8月22日及29日",
"Open_for_registration_now_item_2": "「去中心化金融解密」于2023年9月9日",
"Open_for_registration_now_title": "现已接受报名",
"Validator_Infrastructure_desc": "拥有安全和高效率的基础建设是相当重要,无间断为区块链项目提供验证服务。",
"Validator_Infrastructure_title": "验证人基础建设",
"What_is_New?": "最新动向",
Expand Down
3 changes: 0 additions & 3 deletions public/locales/zh-HK/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"New_Chains_on_boarded_item_2": "KYVE",
"New_Chains_on_boarded_item_3": "Piccaso",
"New_Chains_on_boarded_title": "新加入的區塊鏈,歡迎質押給Forbole",
"Open_for_registration_now_item_1": "「去中心化金融解密」於2023年8月22日及29日",
"Open_for_registration_now_item_2": "「去中心化金融解密」於2023年9月9日",
"Open_for_registration_now_title": "現已接受報名",
"Validator_Infrastructure_desc": "擁有安全和高效率的基礎建設是相當重要,無間斷為區塊鏈項目提供驗證服務。",
"Validator_Infrastructure_title": "驗證人基礎建設",
"What_is_New?": "最新動向",
Expand Down
4 changes: 0 additions & 4 deletions src/components/nav/components/products_menu_button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ const ProductsMenuButton = () => {
name: "enterprise-solution",
link: "/enterprise-solution",
},
{
name: "forbole-academy",
link: "#!",
},
];

return onlyLargeScreen ? (
Expand Down
22 changes: 20 additions & 2 deletions src/screens/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ const Home: FC<Props> = ({ pages }) => {
const bottomRef = useRef(null);
const router = useRouter();
const { isMobile, isTablet } = useWindowDimensions();
const filteredPages = pages.reduce((pageList: Page[], current) => {
// filter out forbole academy page
if (
current.btnClick !==
"https://www.eventbrite.hk/e/-aug-22-29-tickets-686420260477?ref=forbole"
) {
pageList.push(current);
}

return pageList;
}, []);

return (
<Layout
description={t("description")}
Expand Down Expand Up @@ -228,8 +240,14 @@ const Home: FC<Props> = ({ pages }) => {
>
{t("What_is_New?")}
</Typography>
<Grid container spacing={theme.spacing(2)}>
{pages.map(
<Grid
container
spacing={theme.spacing(2)}
sx={{
justifyContent: "center",
}}
>
{filteredPages.map(
({ title, list, imageHref, btnName, btnClick, id }, idx) => (
<Grid key={`${id}_${idx}`} item laptop={4} mobile={12}>
<IntroCard
Expand Down

0 comments on commit dda2eb9

Please sign in to comment.