mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
feat: remove old seeds pages, set up new page
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import { EmbedContainer } from 'components/Container';
|
||||
import { descriptions } from 'utils/menuLinks';
|
||||
|
||||
const BecomeAPatronPage: React.FC = () => (
|
||||
<EmbedContainer
|
||||
title="MetaGame: Become a Patron"
|
||||
description={descriptions.becomeapatron}
|
||||
url="https://wiki.metagame.wtf/docs/enter-metagame/why-patron"
|
||||
/>
|
||||
);
|
||||
|
||||
export default BecomeAPatronPage;
|
||||
@@ -1,12 +0,0 @@
|
||||
import { EmbedContainer } from 'components/Container';
|
||||
import { descriptions } from 'utils/menuLinks';
|
||||
|
||||
const BuySeedsPage: React.FC = () => (
|
||||
<EmbedContainer
|
||||
title="MetaGame: Buy Seeds"
|
||||
description={descriptions.buyseeds}
|
||||
url="https://polygon.balancer.fi/#/trade"
|
||||
/>
|
||||
);
|
||||
|
||||
export default BuySeedsPage;
|
||||
@@ -1,12 +0,0 @@
|
||||
import { EmbedContainer } from 'components/Container';
|
||||
import { descriptions } from 'utils/menuLinks';
|
||||
|
||||
const GrantsPage: React.FC = () => (
|
||||
<EmbedContainer
|
||||
title="MetaGame: Support Grants"
|
||||
description={descriptions.grants}
|
||||
url="https://giveth.io/"
|
||||
/>
|
||||
);
|
||||
|
||||
export default GrantsPage;
|
||||
@@ -1,12 +0,0 @@
|
||||
import { EmbedContainer } from 'components/Container';
|
||||
import { descriptions } from 'utils/menuLinks';
|
||||
|
||||
const PlantSeedsPage: React.FC = () => (
|
||||
<EmbedContainer
|
||||
title="MetaGame: Plant Seeds"
|
||||
description={descriptions.plantseeds}
|
||||
url="https://polygon.balancer.fi/#/pool/0x8a8fcd351ed553fc75aecbc566a32f94471f302e000100000000000000000081/invest"
|
||||
/>
|
||||
);
|
||||
|
||||
export default PlantSeedsPage;
|
||||
38
packages/web/pages/seeds.tsx
Normal file
38
packages/web/pages/seeds.tsx
Normal file
@@ -0,0 +1,38 @@
|
||||
import { Flex, LoadingState } from '@metafam/ds';
|
||||
import { PageContainer } from 'components/Container';
|
||||
import { HeadComponent } from 'components/Seo';
|
||||
import { useRouter } from 'next/router';
|
||||
import React from 'react';
|
||||
|
||||
const SeedsPage: React.FC = () => {
|
||||
const router = useRouter();
|
||||
|
||||
if (router.isFallback) {
|
||||
return <LoadingState />;
|
||||
}
|
||||
|
||||
return (
|
||||
<PageContainer p={0}>
|
||||
<HeadComponent
|
||||
title="MetaGame Seeds Page"
|
||||
description="seed description"
|
||||
url="https://my.metagame.wtf/seeds"
|
||||
/>
|
||||
<Flex
|
||||
w="full"
|
||||
minH="100vh"
|
||||
pl={[4, 8, 12]}
|
||||
pr={[4, 8, 12]}
|
||||
pb={[4, 8, 12]}
|
||||
pt={200 - 72}
|
||||
direction="column"
|
||||
align="center"
|
||||
zIndex={1}
|
||||
>
|
||||
Seeds page
|
||||
</Flex>
|
||||
</PageContainer>
|
||||
);
|
||||
};
|
||||
|
||||
export default SeedsPage;
|
||||
@@ -159,35 +159,12 @@ export const MenuSectionLinks: MenuLinkSet[] = [
|
||||
url: '/quests',
|
||||
icon: 'quests',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'invest',
|
||||
menuItems: [
|
||||
{
|
||||
title: 'Become a Patron',
|
||||
explainerText: descriptions.becomeapatron,
|
||||
url: '/invest/becomeapatron',
|
||||
icon: 'becomeapatron',
|
||||
},
|
||||
{
|
||||
title: 'Buy Seeds',
|
||||
title: 'Seeds',
|
||||
explainerText: descriptions.buyseeds,
|
||||
url: '/invest/buyseeds',
|
||||
url: '/seeds',
|
||||
icon: 'seeds',
|
||||
},
|
||||
{
|
||||
title: 'Plant Seeds',
|
||||
explainerText: descriptions.plantseeds,
|
||||
url: '/invest/plantseeds',
|
||||
icon: 'invest',
|
||||
},
|
||||
{
|
||||
title: 'Support Grants',
|
||||
explainerText: descriptions.grants,
|
||||
url: '/invest/grants',
|
||||
icon: 'grants',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user