Skip to content

Commit e8455f6

Browse files
authored
Merge pull request #129 from hackbg/feature/automation-page
feat: automation page
2 parents 25bb659 + e4fa491 commit e8455f6

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

packages/frontend/components/layout/Layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ export const Layout = ({ children, customMeta }: LayoutProps): JSX.Element => {
110110
External API
111111
</Link>
112112
</NextLink>
113+
<NextLink href="/automation" passHref>
114+
<Link px="4" py="1">
115+
Automation
116+
</Link>
117+
</NextLink>
113118
</Flex>
114119
{account ? (
115120
<Flex
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { Heading, Text, Link } from '@chakra-ui/react'
2+
import { ExternalLinkIcon } from '@chakra-ui/icons'
3+
import { Section } from '../components/layout'
4+
5+
function HomeIndex(): JSX.Element {
6+
return (
7+
<>
8+
<Heading as="h1" mb="4">
9+
Automation
10+
</Heading>
11+
<Text fontSize="xl">
12+
Reliably execute smart contract functions using a variety of triggers.
13+
</Text>
14+
<Section>
15+
<Heading as="h2" size="md" mb="2">
16+
Batch NFT Demo App
17+
</Heading>
18+
<Text mb="4">
19+
Create batch-revealed NFT collections powered by Chainlink Automation
20+
& VRF.
21+
</Text>
22+
<Link href="https://automation.chainlink-demo.app" isExternal>
23+
Go to Demo <ExternalLinkIcon mx="2px" />
24+
</Link>
25+
</Section>
26+
</>
27+
)
28+
}
29+
30+
export default HomeIndex

packages/frontend/pages/index.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@ function HomeIndex(): JSX.Element {
5454
</Link>
5555
</NextLink>
5656
</Section>
57+
<Section>
58+
<Heading as="h2" size="md" mb="2">
59+
Automation
60+
</Heading>
61+
<Text mb="4">
62+
Reliably execute smart contract functions using a variety of triggers.
63+
</Text>
64+
<NextLink href="/automation" passHref>
65+
<Link>
66+
Go to Demo <ArrowForwardIcon />
67+
</Link>
68+
</NextLink>
69+
</Section>
5770
</>
5871
)
5972
}

0 commit comments

Comments
 (0)