feat: add footer

This commit is contained in:
vidvidvid
2022-02-14 11:28:22 +01:00
committed by Scott Stevenson
parent a2385a525b
commit bfda1f74d8
3 changed files with 24 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ export {
AddIcon,
ArrowBackIcon,
ArrowForwardIcon,
ArrowUpIcon,
CalendarIcon,
CheckIcon,
ChevronDownIcon,

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -1,4 +1,5 @@
import {
ArrowUpIcon,
Box,
Button,
Flex,
@@ -9,15 +10,21 @@ import {
VStack,
} from '@metafam/ds';
import Seeds from 'assets/menuIcon/seeds.svg';
import Octopus from 'assets/octopus.png';
import SeedCardBg from 'assets/seed-card-bg.png';
import SeedsFlowChart from 'assets/seeds-flowchart.png';
import { PageContainer } from 'components/Container';
import { HeadComponent } from 'components/Seo';
import { useRouter } from 'next/router';
import React from 'react';
import React, { useRef } from 'react';
const SeedsPage: React.FC = () => {
const router = useRouter();
const topRef = useRef<HTMLDivElement>(null);
function handleBackClick() {
topRef?.current?.scrollIntoView({ behavior: 'smooth' });
}
if (router.isFallback) {
return <LoadingState />;
@@ -39,6 +46,7 @@ const SeedsPage: React.FC = () => {
pb={4}
display="flex"
flexDir="row"
ref={topRef}
>
Seeds{' '}
<Image height={10} width={10} src={Seeds} alignSelf="end" ml={2} />
@@ -57,6 +65,20 @@ const SeedsPage: React.FC = () => {
{cardsData.map(({ title, description }) => (
<Card title={title} description={description} />
))}
<Image src={Octopus} pt={8} />
<Box pb={4}>
<Button
leftIcon={<ArrowUpIcon />}
variant="ghost"
color="whiteAlpha.700"
bgColor="whiteAlpha.50"
_hover={{ bg: 'whiteAlpha.200' }}
_active={{ bg: 'whiteAlpha.200' }}
onClick={handleBackClick}
>
Back to top
</Button>
</Box>
</VStack>
</PageContainer>
);