Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/src/components/Card/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function Card({ item }) {
{item.link_text || "Learn more"}
</Link>
)}
{item.dateAdded && <div className={styles.dateAdded}>Added {item.dateAdded}</div>}
</div>
);
}
6 changes: 6 additions & 0 deletions docs/src/components/Card/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@
.link:hover {
text-decoration: underline;
}

.dateAdded {
margin-top: 0.75rem;
color: var(--ifm-color-emphasis-600);
font-size: 0.8rem;
}
12 changes: 10 additions & 2 deletions docs/src/pages/support/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,30 @@ const vendors = [
"Policy-as-Code Laboratories provides strategic planning and integration consulting for OPA and Rego across the PaC ecosystem (Cloud, Kubernetes, OpenShift, and legacy platforms).",
link: "https://paclabs.io/opa_support.html?utm_source=opa&utm_content=opa-support",
link_text: "Learn more",
dateAdded: "2023-08-25",
},
];

const sortedVendors = [...vendors].sort((a, b) => a.dateAdded.localeCompare(b.dateAdded));

export default function Support() {
return (
<StandaloneLayout
title="Support"
description="Commercial Support Options for Open Policy Agent"
>
<Heading as="h1">Open Policy Agent Support</Heading>
<p className="margin-bottom--lg">
<p>
Below is a list of companies that offer commercial support and other enterprise offerings for Open Policy Agent.
Companies add themselves via pull request and listings are ordered by the date they were added.
</p>
<p className="margin-bottom--lg">
This list is not vetted by the OPA project maintainers and inclusion is not an endorsement. Evaluate offerings
to find the right fit for your needs.
</p>

<CardGrid justifyCenter={false}>
{vendors.map((item, idx) => <Card key={idx} item={item} />)}
{sortedVendors.map((item, idx) => <Card key={idx} item={item} />)}
</CardGrid>
</StandaloneLayout>
);
Expand Down