Skip to content

Commit

Permalink
Merge pull request #129 from hackbg/feature/automation-page
Browse files Browse the repository at this point in the history
feat: automation page
  • Loading branch information
imollov authored Nov 1, 2022
2 parents 25bb659 + e4fa491 commit e8455f6
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/frontend/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ export const Layout = ({ children, customMeta }: LayoutProps): JSX.Element => {
External API
</Link>
</NextLink>
<NextLink href="/automation" passHref>
<Link px="4" py="1">
Automation
</Link>
</NextLink>
</Flex>
{account ? (
<Flex
Expand Down
30 changes: 30 additions & 0 deletions packages/frontend/pages/automation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { Heading, Text, Link } from '@chakra-ui/react'
import { ExternalLinkIcon } from '@chakra-ui/icons'
import { Section } from '../components/layout'

function HomeIndex(): JSX.Element {
return (
<>
<Heading as="h1" mb="4">
Automation
</Heading>
<Text fontSize="xl">
Reliably execute smart contract functions using a variety of triggers.
</Text>
<Section>
<Heading as="h2" size="md" mb="2">
Batch NFT Demo App
</Heading>
<Text mb="4">
Create batch-revealed NFT collections powered by Chainlink Automation
& VRF.
</Text>
<Link href="https://automation.chainlink-demo.app" isExternal>
Go to Demo <ExternalLinkIcon mx="2px" />
</Link>
</Section>
</>
)
}

export default HomeIndex
13 changes: 13 additions & 0 deletions packages/frontend/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@ function HomeIndex(): JSX.Element {
</Link>
</NextLink>
</Section>
<Section>
<Heading as="h2" size="md" mb="2">
Automation
</Heading>
<Text mb="4">
Reliably execute smart contract functions using a variety of triggers.
</Text>
<NextLink href="/automation" passHref>
<Link>
Go to Demo <ArrowForwardIcon />
</Link>
</NextLink>
</Section>
</>
)
}
Expand Down

1 comment on commit e8455f6

@vercel
Copy link

@vercel vercel bot commented on e8455f6 Nov 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chainlink-fullstack – ./

chainlink-fullstack.vercel.app
chainlink-fullstack-hackbg.vercel.app
chainlink-fullstack-git-main-hackbg.vercel.app

Please sign in to comment.