Skip to content

Commit c46777f

Browse files
authored
Add Vercel Callout (#130)
1 parent da36175 commit c46777f

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# xarray landing page
22

3-
![GitHub deployments](https://img.shields.io/github/deployments/andersy005/xarray-website/Production?label=vercel&logo=vercel&style=for-the-badge)
3+
![Vercel Deployment](https://img.shields.io/github/deployments/xarray-contrib/xarray.dev/Production?label=vercel&logo=vercel&style=for-the-badge)
44

55
Landing Page for xarray project.
66

@@ -21,7 +21,7 @@ This project is built using the following tools/technologies:
2121
### 1. Clone the repository
2222

2323
```bash
24-
git clone `REPO_URL`
24+
git clone https://github.com/xarray-contrib/xarray.dev
2525
```
2626

2727
### 2. Install dependencies
@@ -43,3 +43,9 @@ npm run dev
4343
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
4444

4545
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
46+
47+
<a href="https://vercel.com?utm_source=xarray&utm_campaign=oss">
48+
<p align="center">
49+
<img src="https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg">
50+
</p>
51+
</a>

src/components/Footer.js

+5
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ import {
1010
VisuallyHidden,
1111
Image,
1212
useColorModeValue,
13+
VStack,
1314
} from "@chakra-ui/react"
1415

1516
import { FaTwitter, FaGithub } from "react-icons/fa"
1617
import { footerItems } from "../data/footer-items"
18+
import { VercelCallout } from "./VercelCallout"
1719

1820
const SocialButton = ({ children, label, href }) => {
1921
return (
@@ -129,6 +131,9 @@ export const Footer = () => {
129131
})}
130132
</Stack>
131133
</SimpleGrid>
134+
<VStack as="footer" spacing={4} mt={12} textAlign="center">
135+
<VercelCallout />
136+
</VStack>
132137
</Container>
133138
</Box>
134139
)

src/components/VercelCallout.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { Box, Link } from "@chakra-ui/react"
2+
3+
export function VercelCallout() {
4+
return (
5+
<Box
6+
mt="6"
7+
fontSize="sm"
8+
fontWeight="semibold"
9+
display="inline-block"
10+
bg="black"
11+
color="white"
12+
px="4"
13+
py="2"
14+
rounded="lg"
15+
>
16+
{" "}
17+
<Link href="https://vercel.com?utm_source=xarray&utm_campaign=oss">
18+
{"Powered by"}{" "}
19+
<span role="img" aria-label="Vercel logo">
20+
21+
</span>{" "}
22+
Vercel
23+
</Link>
24+
</Box>
25+
)
26+
}

0 commit comments

Comments
 (0)