Skip to content

Commit 020b596

Browse files
authored
Merge pull request #25 from lottie/kn/contrib-page
docs: Introduce a `contribute` and update navigation. changes the "community" header and footer nav to "contribute" introduces a dedicated page for contribution navigation added links to repo and google group
2 parents 9cd5b43 + 239f275 commit 020b596

File tree

6 files changed

+98
-9
lines changed

6 files changed

+98
-9
lines changed

content/templates/contribute.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Contributing to LAC
3+
date: "2025-05-14T12:01:05.284Z"
4+
description: "On this page you will find information on how to engage with the Lottie Animation Community and how to contribute to the project."
5+
image: null
6+
---
7+
8+
### Contributing to the specification
9+
10+
LAC welcomes contributions and proposals to the specifications from the community.
11+
The primary place for contributions is the [lottie-spec](https://github.com/lottie/lottie-spec) repository, where the specification is hosted.
12+
13+
The steps to contribute are as follows:
14+
15+
* [Familiarize yourself with our Contributing Guidelines](https://github.com/lottie/lottie-spec/blob/main/CONTRIBUTING.md).
16+
* [Open an issue or pull request in the Specifications Repository](https://github.com/lottie/lottie-spec).
17+
18+
### Engaging in Discussions
19+
20+
LAC engages with the community through a variety of channels. Information about these are listed below:
21+
22+
* [As an issue on the specifications repository](https://github.com/lottie/lottie-spec)
23+
* [LAC Google Group](https://groups.google.com/g/lottie-dev)

src/components/footer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export const Footer = () => {
7474
</Nav.Link>
7575
</Nav.Item>
7676
<Nav.Item>
77-
<Nav.Link as={Link} to={ROUTES.community.route} target="_blank">
78-
{ROUTES.community.text}
77+
<Nav.Link as={Link} to={ROUTES.contribute.route} target="_blank">
78+
{ROUTES.contribute.text}
7979
</Nav.Link>
8080
</Nav.Item>
8181
<Nav.Item>

src/components/header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ export const Header = () => {
9090
</Nav.Link>
9191
</Nav.Item>
9292
<Nav.Item>
93-
<Nav.Link as={Link} to={ROUTES.community.route} target="_blank">
94-
{ROUTES.community.text}
93+
<Nav.Link as={Link} to={ROUTES.contribute.route} target="_blank">
94+
{ROUTES.contribute.text}
9595
</Nav.Link>
9696
</Nav.Item>
9797
<Nav.Item>

src/constants/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const ROUTES = {
2121
text: "Roadmap",
2222
},
2323
contribute: {
24-
// route: "contribute",
24+
route: "/contribute",
2525
text: "Contribute",
2626
},
2727
buttons: {

src/pages/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ const Home = ({ data }) => {
9191
size="lg"
9292
variant="link"
9393
className="mt-4 py-0 fw-semibold text-decoration-none text-primary"
94-
target="_blank"
95-
href={urls?.specRepo || ""}
94+
href={ROUTES.contribute.route || ""}
9695
>
9796
{ROUTES.contribute.text}
9897
</Button>
@@ -151,8 +150,7 @@ const Home = ({ data }) => {
151150
as="a"
152151
size="lg"
153152
className="mt-4"
154-
href={urls?.specRepo || ""}
155-
target="_blank"
153+
href={ROUTES.contribute.route || ""}
156154
>
157155
{ROUTES.contribute.text}
158156
</Button>

src/templates/contribute.js

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import * as React from "react"
2+
3+
import { graphql } from "gatsby"
4+
5+
import Container from "react-bootstrap/Container"
6+
import Row from "react-bootstrap/Row"
7+
import Col from "react-bootstrap/Col"
8+
9+
import Layout from "../components/layout"
10+
import Seo from "../components/seo"
11+
12+
const Contribute = ({ data }) => {
13+
const { page } = data
14+
const { html, frontmatter } = page
15+
16+
return (
17+
<Layout>
18+
<section className="bg-primary-subtle">
19+
<Container className="py-5">
20+
<Row>
21+
<Col className="py-5">
22+
<h1 className="mb-3 h2">{frontmatter.title || ""}</h1>
23+
<h5 className="fw-normal">{frontmatter.description || ""}</h5>
24+
</Col>
25+
</Row>
26+
</Container>
27+
</section>
28+
<Container>
29+
<Row>
30+
<Col>
31+
<section
32+
className="py-5"
33+
dangerouslySetInnerHTML={{ __html: html }}
34+
itemProp="articleBody"
35+
/>
36+
</Col>
37+
</Row>
38+
</Container>
39+
</Layout>
40+
)
41+
}
42+
43+
export default Contribute
44+
45+
/**
46+
* Head export to define metadata for the page
47+
*
48+
* See: https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-head/
49+
*/
50+
export const Head = () => (
51+
<Seo
52+
title="Contribute"
53+
description="Contribute to Lottie Animation Community"
54+
/>
55+
)
56+
57+
export const pageQuery = graphql`
58+
query ImplementationsPage($id: String!) {
59+
page: markdownRemark(id: { eq: $id }) {
60+
html
61+
frontmatter {
62+
title
63+
date(formatString: "MMMM DD, YYYY")
64+
description
65+
}
66+
}
67+
}
68+
`

0 commit comments

Comments
 (0)