Skip to content

Commit

Permalink
Adds OSS Friends link to the footer, but only on /graphql/hive pages (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored Nov 21, 2024
1 parent aa672a9 commit 3ecc727
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-cheetahs-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@theguild/components': minor
---

Adds OSS Friends link to the footer, but only on /graphql/hive pages
10 changes: 10 additions & 0 deletions packages/components/src/components/hive-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {

export interface HiveFooterProps extends IFooterExtendedProps {
description?: string;
isHive?: boolean;
}

export function HiveFooter({
Expand All @@ -23,6 +24,7 @@ export function HiveFooter({
resources = [],
sameSite,
description,
isHive = false,
}: HiveFooterProps) {
description ||= 'Open-source GraphQL management platform';

Expand All @@ -49,6 +51,14 @@ export function HiveFooter({
</div>
<div className="flex flex-col gap-[inherit]">
<List heading="Company" links={COMPANY} />
{isHive ? (
<a
href="https://the-guild.dev/graphql/hive/oss-friends"
className="hive-focus -m-2 rounded p-2 font-medium hover:text-blue-700 hover:underline dark:hover:text-blue-100"
>
OSS Friends
</a>
) : null}
<a
href="https://the-guild.dev/graphql/hive#pricing"
className="hive-focus -m-2 rounded p-2 font-medium hover:text-blue-700 hover:underline dark:hover:text-blue-100"
Expand Down

0 comments on commit 3ecc727

Please sign in to comment.