Skip to content

Commit

Permalink
Merge pull request #9 from lottie/work/buttons
Browse files Browse the repository at this point in the history
Compliance buttons page
  • Loading branch information
b-wils authored Sep 17, 2024
2 parents 5e00f39 + 5861ae5 commit 0245b41
Show file tree
Hide file tree
Showing 15 changed files with 1,680 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The official website for [Lottie Animation Community][lac]
### Features:

> This boilerplate [gatsby-starter-blog](https://www.gatsbyjs.com/starters/gatsbyjs/gatsby-starter-blog/) has been used as the base
- Basic setup for a full-featured blog for news page
- Support for an RSS feed
- Automatic optimization of images in Markdown posts
Expand Down Expand Up @@ -81,5 +82,4 @@ Any contributions are welcome.
[MIT](license) @ Lottie Animation Community
[lac]: https://github.com/lottie
[lottie-spec]: https://github.com/lottie/lottie-spec
[lottie-spec]: https://github.com/lottie/lottie-spec
1,462 changes: 1,461 additions & 1 deletion src/assets/lottie-logo.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ export const Header = () => {
{ROUTES.implementations.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link
as={Link}
className="text-capitalize"
to={ROUTES.buttons.route}
>
{ROUTES.buttons.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link
as={Link}
Expand Down
4 changes: 4 additions & 0 deletions src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ export const ROUTES = {
// route: "contribute",
text: "Contribute",
},
buttons: {
route: "/compliance-buttons",
text: "Compliance Buttons",
},
}
170 changes: 170 additions & 0 deletions src/pages/compliance-buttons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
import * as React from "react"

import Container from "react-bootstrap/Container"
import Row from "react-bootstrap/Row"
import Col from "react-bootstrap/Col"
import Table from "react-bootstrap/Table"

import Layout from "../components/layout"
import Seo from "../components/seo"

const ComplianceButtonsPage = () => {
return (
<Layout>
<section className="bg-primary-subtle">
<Container className="py-5">
<Row>
<Col className="py-5">
<h1 className="mb-3 h2">Compliance Buttons</h1>
<div className="fw-normal h5">
Buttons to represent compliance with the lottie specs
</div>
</Col>
</Row>
</Container>
</section>
<Container className="py-5">
<Row>
<Col>
<h2>Disclaimer</h2>
<p>
Permission is granted to use the buttons on this page to represent
compliance with the lottie specs. This does not grant permission
to use the Lottie Animation Community logo in unauthorized ways.
</p>
<p>
Use of these buttons does not indicate endorsement from the Lottie
Animation Community.
</p>
<h2>1.0</h2>
<Table striped bordered hover responsive size="sm">
<thead>
<tr>
<th>Size</th>
<th>Light</th>
<th>Dark</th>
</tr>
</thead>
<tbody>
<tr>
<th>Small</th>
<td>
<a
href="/compliance-buttons/lottie-1.0-light-28.png"
target="_blank"
>
<img
src="/compliance-buttons/lottie-1.0-light-28.png"
alt="lottie-1.0-light-28.png"
/>
</a>
</td>
<td>
<a
href="/compliance-buttons/lottie-1.0-dark-28.png"
target="_blank"
>
<img
src="/compliance-buttons/lottie-1.0-dark-28.png"
alt="lottie-1.0-dark-28.png"
/>
</a>
</td>
</tr>
<tr>
<th>Medium</th>
<td>
<a
href="/compliance-buttons/lottie-1.0-light-56.png"
target="_blank"
>
<img
src="/compliance-buttons/lottie-1.0-light-56.png"
alt="lottie-1.0-light-56.png"
/>
</a>
</td>
<td>
<a
href="/compliance-buttons/lottie-1.0-dark-56.png"
target="_blank"
>
<img
src="/compliance-buttons/lottie-1.0-dark-56.png"
alt="lottie-1.0-dark-56.png"
/>
</a>
</td>
</tr>
<tr>
<th>Large</th>
<td>
<a
href="/compliance-buttons/lottie-1.0-light-112.png"
target="_blank"
>
<img
src="/compliance-buttons/lottie-1.0-light-112.png"
alt="lottie-1.0-light-112.png"
/>
</a>
</td>
<td>
<a
href="/compliance-buttons/lottie-1.0-dark-112.png"
target="_blank"
>
<img
src="/compliance-buttons/lottie-1.0-dark-112.png"
alt="lottie-1.0-dark-112.png"
/>
</a>
</td>
</tr>
<tr className="iframe-row">
<th>Scalable</th>
<td className="position-relative">
<a
href="/compliance-buttons/lottie-1.0-light.svg"
target="_blank"
className="stretched-link"
>
<iframe
src="/compliance-buttons/lottie-1.0-light.svg"
title="lottie-1.0-light.svg"
></iframe></a>
</td>
<td className="position-relative">
<a
href="/compliance-buttons/lottie-1.0-dark.svg"
target="_blank"
className="stretched-link"
>
<iframe
src="/compliance-buttons/lottie-1.0-dark.svg"
title="lottie-1.0-dark.svg"
></iframe></a>
</td>
</tr>
</tbody>
</Table>
</Col>
</Row>
</Container>
</Layout>
)
}

export default ComplianceButtonsPage

/**
* Head export to define metadata for the page
*
* See: https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-head/
*/
export const Head = () => (
<Seo
title="Compliance Buttons"
description="Buttons to represent compliance with the lottie specs"
/>
)
2 changes: 1 addition & 1 deletion src/styles/bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@import "bootstrap/scss/containers";
@import "bootstrap/scss/grid";

// @import 'bootstrap/scss/tables';
@import 'bootstrap/scss/tables';
// @import 'bootstrap/scss/forms';
@import "bootstrap/scss/buttons";
@import "bootstrap/scss/transitions";
Expand Down
6 changes: 6 additions & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
.page-thumbnail-image {
margin-top: -6.625rem;
}

#compliance-buttons-content {
.gatsby-resp-image-wrapper {
margin: unset !important;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/compliance-buttons/lottie-1.0-dark-28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/compliance-buttons/lottie-1.0-dark-56.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions static/compliance-buttons/lottie-1.0-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/compliance-buttons/lottie-1.0-light-28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/compliance-buttons/lottie-1.0-light-56.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions static/compliance-buttons/lottie-1.0-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0245b41

Please sign in to comment.