Skip to content

Commit

Permalink
Fix expired discord link
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmar committed Nov 13, 2023
1 parent 585e343 commit 1e3c6d6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion pages/community.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import EventsSection from '@src/components/page-sections/EventsSection'
import FeaturedContributorsSection from '@src/components/page-sections/FeaturedContributorsSection'
import { ScrollToLink } from '@src/components/ScrollToLink'
import { ResponsiveText } from '@src/components/Typography'
import { DISCORD_LINK } from '@src/consts'
import {
type Callouts,
getCommunityPageData,
Expand Down Expand Up @@ -84,7 +85,7 @@ export default function Community({
target="_blank"
rel="noopener noreferrer"
startIcon={<DiscordIcon size={20} />}
href="https://discord.gg/pluralsh"
href={DISCORD_LINK}
>
Discord
</Button>
Expand Down
3 changes: 2 additions & 1 deletion src/components/BasicFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { DiscordIcon } from '@pluralsh/design-system'
import styled from 'styled-components'

import { mqs } from '@src/breakpoints'
import { DISCORD_LINK } from '@src/consts'

import GithubStars from './GithubStars'
import { FullPageWidth } from './layout/LayoutHelpers'
Expand All @@ -15,7 +16,7 @@ export function BasicFooter({ className }: { className?: string }) {
<div className="socialIcons">
<SocialLink
className="discordIcon"
href="https://discord.gg/pluralsh"
href={DISCORD_LINK}
target="_blank"
rel="noopener noreferrer"
tabIndex={0}
Expand Down
3 changes: 2 additions & 1 deletion src/components/FooterNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import styled from 'styled-components'
import { type ReadonlyDeep } from 'type-fest'

import { mqs } from '@src/breakpoints'
import { DISCORD_LINK } from '@src/consts'

import { FullPageWidth } from './layout/LayoutHelpers'
import { NewsletterSignupForm } from './NewsletterSignupForm'
Expand Down Expand Up @@ -90,7 +91,7 @@ const navItems = [
links: [
{
children: 'Discord',
href: 'https://discord.gg/pluralsh',
href: DISCORD_LINK,
target: '_blank',
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/components/NavigationMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { isEmpty } from 'lodash-es'
import styled from 'styled-components'
import { useIsomorphicLayoutEffect } from 'usehooks-ts'

import { DISCORD_LINK } from '@src/consts'
import { useNavData } from '@src/contexts/NavDataContext'
import { type NavListFragment } from '@src/generated/graphqlDirectus'

Expand Down Expand Up @@ -98,7 +99,7 @@ function PluralMenuContent({
<NavList navData={navData} />
<SocialIcons>
<SocialLink
href="https://discord.gg/pluralsh"
href={DISCORD_LINK}
target="_blank"
rel="noopener noreferrer"
tabIndex={0}
Expand Down
4 changes: 3 additions & 1 deletion src/components/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { useKey } from 'rooks'
import styled, { StyleSheetManager, useTheme } from 'styled-components'
import { type Merge } from 'type-fest'

import { DISCORD_LINK } from '@src/consts'

import { breakpointIsGreaterOrEqual, mqs } from '../breakpoints'

import { useBreakpoint } from './contexts/BreakpointProvider'
Expand Down Expand Up @@ -95,7 +97,7 @@ export function PageHeader({
<div className="socialIcons">
<SocialLink
className="discordIcon"
href="https://discord.gg/pluralsh"
href={DISCORD_LINK}
target="_blank"
rel="noopener noreferrer"
tabIndex={0}
Expand Down
3 changes: 2 additions & 1 deletion src/components/page-sections/CommunityResourcesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { isEmpty } from 'lodash-es'
import styled, { useTheme } from 'styled-components'

import { mqs } from '@src/breakpoints'
import { DISCORD_LINK } from '@src/consts'
import { mShadows } from '@src/styles/extraStyles'

import DocumentFilledIcon from '../icons/DocumentFilledIcon'
Expand Down Expand Up @@ -178,7 +179,7 @@ export default function ResourcesSection() {
<ResourceIconCard
icon={<DiscordIcon />}
label="Discord"
href="https://discord.gg/pluralsh"
href={DISCORD_LINK}
/>
<ResourceIconCard
icon={<GitHubLogoIcon />}
Expand Down
1 change: 1 addition & 0 deletions src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const ROOT_TITLE =
'Plural | Open-source application deployment, faster than ever without sacrificing compliance.'
export const PAGE_TITLE_PREFIX = 'Plural | '
export const PAGE_TITLE_SUFFIX = ''
export const DISCORD_LINK = 'https://discord.com/invite/bEBAMXV64s'

export const getAppMeta = (repo: BasicRepo): GlobalPageProps => {
const displayName = repo.displayName || repo.name
Expand Down

0 comments on commit 1e3c6d6

Please sign in to comment.