Skip to content

Commit

Permalink
Improvements to resources page (#1937)
Browse files Browse the repository at this point in the history
* use unicode for X logo

* make logos bit bigger

* feat: add bluesky logo

* reorder and add more links

* prettier

* add talks channel

* prettier
  • Loading branch information
saihaj authored Jan 15, 2025
1 parent 7330db7 commit ccfd300
Show file tree
Hide file tree
Showing 6 changed files with 178 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/components/cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function Cards({
)}
>
{/* @ts-expect-error */}
{typeof Icon === "function" ? <Icon className="h-6" /> : Icon}
{typeof Icon === "function" ? <Icon className="h-12" /> : Icon}
<b className="mb-2 mt-4 text-center text-lg">{title}</b>
<span
className={`text-xs md:text-sm text-center${description ? "" : "break-all"}`}
Expand Down
5 changes: 5 additions & 0 deletions src/icons/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions src/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ export { default as AroundIcon } from "./around.svg"
export { default as BusIcon } from "./bus.svg"
export { default as ParkingIcon } from "./parking.svg"
export { default as TrainIcon } from "./train.svg"
export { default as BlueskyIcon } from "./bluesky.svg"
export { default as FoundationTalksChannel } from "./talks-channel.svg"
131 changes: 131 additions & 0 deletions src/icons/talks-channel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 38 additions & 17 deletions src/pages/community/resources/official-channels.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import {
DiscordIcon,
GoogleCalendarIcon,
Facebook2Icon,
LinkedInIcon,
BlueskyIcon,
FileTextIcon,
CodeIcon,
GraphQLLogo,
FoundationTalksChannel
} from "../../../icons"
import { Cards } from "../../../components/cards"

Expand All @@ -18,17 +21,17 @@ Please follow these channels for updates and information:

<Cards
items={[
{
icon: TwitterIcon,
title: "X",
link: "https://x.com/graphql",
description: "@graphql",
},
{
icon: GitHubIcon,
title: "GitHub",
link: "https://github.com/graphql",
},
{
icon: FileTextIcon,
title: "Blog",
link: "/blog",
description: "graphql.org/blog",
},
{
icon: GoogleCalendarIcon,
title: "Google Calendar",
Expand All @@ -39,28 +42,46 @@ Please follow these channels for updates and information:
title: "Discord",
link: "https://discord.graphql.org",
},
{
icon: Facebook2Icon,
title: "Facebook Group",
link: "https://fb.com/groups/graphql.community",
},
{
icon: FileTextIcon,
title: "Blog",
link: "/blog",
description: "graphql.org/blog",
},
{
icon: CodeIcon,
title: "Tools and libraries",
link: "/code",
description: "graphql.org/code",
},
{
icon: FoundationTalksChannel,
title: "Talks",
link: "https://www.youtube.com/@GraphQLFoundationTalks",
description: "GraphQL Foundation Talks",
},
{
icon: GraphQLLogo,
title: "Shop",
link: "https://store.graphql.org/",
description: "store.graphql.org",
},
{
icon: LinkedInIcon,
title: "LinkedIn",
link: "https://www.linkedin.com/company/graphql-foundation/",
description: "GraphQL Foundation",
},
{
icon: TwitterIcon,
title: "𝕏",
link: "https://x.com/graphql",
description: "@graphql",
},
{
icon: BlueskyIcon,
title: "Bluesky",
link: "https://bsky.app/profile/graphql.org",
description: "@graphql.org",
},
{
icon: Facebook2Icon,
title: "Facebook Group",
link: "https://fb.com/groups/graphql.community",
},
]}
/>

0 comments on commit ccfd300

Please sign in to comment.