Skip to content

Commit acf5123

Browse files
committed
Add repo and marketplace links
1 parent 4a35262 commit acf5123

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/templates/action.tsx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { HeadFC, PageProps } from "gatsby";
22
import {
3+
Anchor,
34
Box,
45
Heading,
56
NameValueList,
@@ -8,6 +9,7 @@ import {
89
PageContent,
910
Paragraph,
1011
} from "grommet";
12+
import { Actions as ActionsIcon, Github as GithubIcon } from "grommet-icons";
1113
import { Layout } from "../components/layout";
1214
import type { ActionType } from "../types";
1315

@@ -24,10 +26,31 @@ const ActionPage: React.FC<PageProps & Props> = ({ pageContext }) => {
2426
<Layout>
2527
<Page kind="narrow" margin={{ vertical: "xlarge" }}>
2628
<PageContent>
29+
<Box direction="row" gap="medium" pad={{ bottom: "medium" }}>
30+
<Anchor
31+
href={`https://github.com/marketplace/actions/${name}`}
32+
target="_blank"
33+
rel="noopener noreferrer"
34+
as="a"
35+
label="View action on Marketplace"
36+
icon={<ActionsIcon />}
37+
size="small"
38+
/>
39+
<Anchor
40+
href={`https://github.com/browser-actions/${name}`}
41+
target="_blank"
42+
rel="noopener noreferrer"
43+
as="a"
44+
label="View action on GitHub"
45+
icon={<GithubIcon />}
46+
size="small"
47+
/>
48+
</Box>
49+
2750
<Heading level="1" margin="none">
2851
{name}
2952
</Heading>
30-
<Paragraph>{action.description}</Paragraph>
53+
<Paragraph size="large">{action.description}</Paragraph>
3154

3255
<Heading level="2">Inputs</Heading>
3356
{action.inputs ? (

0 commit comments

Comments
 (0)