Skip to content

Commit 3ecc727

Browse files
authored
Adds OSS Friends link to the footer, but only on /graphql/hive pages (#1826)
1 parent aa672a9 commit 3ecc727

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.changeset/beige-cheetahs-hang.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@theguild/components': minor
3+
---
4+
5+
Adds OSS Friends link to the footer, but only on /graphql/hive pages

packages/components/src/components/hive-footer.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515

1616
export interface HiveFooterProps extends IFooterExtendedProps {
1717
description?: string;
18+
isHive?: boolean;
1819
}
1920

2021
export function HiveFooter({
@@ -23,6 +24,7 @@ export function HiveFooter({
2324
resources = [],
2425
sameSite,
2526
description,
27+
isHive = false,
2628
}: HiveFooterProps) {
2729
description ||= 'Open-source GraphQL management platform';
2830

@@ -49,6 +51,14 @@ export function HiveFooter({
4951
</div>
5052
<div className="flex flex-col gap-[inherit]">
5153
<List heading="Company" links={COMPANY} />
54+
{isHive ? (
55+
<a
56+
href="https://the-guild.dev/graphql/hive/oss-friends"
57+
className="hive-focus -m-2 rounded p-2 font-medium hover:text-blue-700 hover:underline dark:hover:text-blue-100"
58+
>
59+
OSS Friends
60+
</a>
61+
) : null}
5262
<a
5363
href="https://the-guild.dev/graphql/hive#pricing"
5464
className="hive-focus -m-2 rounded p-2 font-medium hover:text-blue-700 hover:underline dark:hover:text-blue-100"

0 commit comments

Comments
 (0)