From 344fefd823981b45ba65fa4bf16d5c56038735a1 Mon Sep 17 00:00:00 2001 From: Giselle van Dongen Date: Wed, 27 Nov 2024 15:39:35 +0100 Subject: [PATCH] Add Slack icons (#487) * Add slack to header bar * Add slack to use case pages --- docs/use-cases/async-tasks.mdx | 7 +++++-- docs/use-cases/event-processing.mdx | 7 +++++-- docs/use-cases/microservice-orchestration.mdx | 7 +++++-- docs/use-cases/workflows.mdx | 7 +++++-- docusaurus.config.js | 18 +++++++++++++++-- src/components/FeatureWidget/index.tsx | 20 +++++++++++++++++++ static/img/slack.svg | 12 +++++++++++ 7 files changed, 68 insertions(+), 10 deletions(-) create mode 100644 static/img/slack.svg diff --git a/docs/use-cases/async-tasks.mdx b/docs/use-cases/async-tasks.mdx index 1f005095..b4718d06 100644 --- a/docs/use-cases/async-tasks.mdx +++ b/docs/use-cases/async-tasks.mdx @@ -567,7 +567,10 @@ Write flexible scheduling logic via durable building blocks. }, { title: 'Need help?', - description: "Join the Restate Discord channel", - link: {url: "https://discord.gg/skW3AZ6uGd", icon: "/img/discord-icon.svg"} + description: "Join the Restate Discord or Slack communities", + links: [ + {url: "https://discord.gg/skW3AZ6uGd", icon: "/img/discord-icon.svg"}, + {url: "https://join.slack.com/t/restatecommunity/shared_invite/zt-2v9gl005c-WBpr167o5XJZI1l7HWKImA", icon: "/img/slack.svg"} + ] } ]}/> \ No newline at end of file diff --git a/docs/use-cases/event-processing.mdx b/docs/use-cases/event-processing.mdx index af577799..8cb39244 100644 --- a/docs/use-cases/event-processing.mdx +++ b/docs/use-cases/event-processing.mdx @@ -588,7 +588,10 @@ CODE_LOAD::go/usecases/eventprocessing/eventsstate.go?2 }, { title: 'Need help?', - description: "Join the Restate Discord channel", - link: {url: "https://discord.gg/skW3AZ6uGd", icon: "/img/discord-icon.svg"} + description: "Join the Restate Discord or Slack communities", + links: [ + {url: "https://discord.gg/skW3AZ6uGd", icon: "/img/discord-icon.svg"}, + {url: "https://join.slack.com/t/restatecommunity/shared_invite/zt-2v9gl005c-WBpr167o5XJZI1l7HWKImA", icon: "/img/slack.svg"} + ] } ]}/> diff --git a/docs/use-cases/microservice-orchestration.mdx b/docs/use-cases/microservice-orchestration.mdx index 9eeb9a5b..ae61cda6 100644 --- a/docs/use-cases/microservice-orchestration.mdx +++ b/docs/use-cases/microservice-orchestration.mdx @@ -407,7 +407,10 @@ Turn functions into durable handlers with the Restate SDK. }, { title: 'Need help?', - description: "Join the Restate Discord channel", - link: {url: "https://discord.gg/skW3AZ6uGd", icon: "/img/discord-icon.svg"} + description: "Join the Restate Discord or Slack communities", + links: [ + {url: "https://discord.gg/skW3AZ6uGd", icon: "/img/discord-icon.svg"}, + {url: "https://join.slack.com/t/restatecommunity/shared_invite/zt-2v9gl005c-WBpr167o5XJZI1l7HWKImA", icon: "/img/slack.svg"} + ] } ]}/> diff --git a/docs/use-cases/workflows.mdx b/docs/use-cases/workflows.mdx index cbc1b157..3da2e2fd 100644 --- a/docs/use-cases/workflows.mdx +++ b/docs/use-cases/workflows.mdx @@ -396,7 +396,10 @@ Implement the `run` function of your workflow, using the Restate SDK. }, { title: 'Need help?', - description: "Join the Restate Discord channel", - link: {url: "https://discord.gg/skW3AZ6uGd", icon: "/img/discord-icon.svg"} + description: "Join the Restate Discord or Slack communities", + links: [ + {url: "https://discord.gg/skW3AZ6uGd", icon: "/img/discord-icon.svg"}, + {url: "https://join.slack.com/t/restatecommunity/shared_invite/zt-2v9gl005c-WBpr167o5XJZI1l7HWKImA", icon: "/img/slack.svg"} + ] } ]}/> \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index c77a157a..09cb7bff 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -150,6 +150,16 @@ const config = { `, position: "right", }, + { + href: "https://join.slack.com/t/restatecommunity/shared_invite/zt-2v9gl005c-WBpr167o5XJZI1l7HWKImA", + html: ` + + + + + `, + position: "right", + }, { to: "https://restate.dev/get-restate/", label: "Get Restate", @@ -172,13 +182,17 @@ const config = { { title: "Community", items: [ + { + label: "Twitter", + href: "https://twitter.com/restatedev", + }, { label: "Discord", href: "https://discord.gg/skW3AZ6uGd", }, { - label: "Twitter", - href: "https://twitter.com/restatedev", + label: "Slack", + href: "https://join.slack.com/t/restatecommunity/shared_invite/zt-2v9gl005c-WBpr167o5XJZI1l7HWKImA", }, ], }, diff --git a/src/components/FeatureWidget/index.tsx b/src/components/FeatureWidget/index.tsx index 4cdb368d..c28fa783 100644 --- a/src/components/FeatureWidget/index.tsx +++ b/src/components/FeatureWidget/index.tsx @@ -12,6 +12,7 @@ type FeatureItem = { kotlin: string; go: string; link: { icon: string; url: string }; + links: [{ icon: string; url: string }]; }; function Feature({ @@ -24,6 +25,7 @@ function Feature({ link, kotlin, go, + links, }: FeatureItem) { const colWidth = itemsPerRow ? Math.floor(12 / itemsPerRow) : 4; return ( @@ -105,6 +107,24 @@ function Feature({ ) : null} + {links ? ( +
+ {links.map((link) => ( + + + + ))} +
+ ) : null} diff --git a/static/img/slack.svg b/static/img/slack.svg new file mode 100644 index 00000000..8947cff5 --- /dev/null +++ b/static/img/slack.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file