Skip to content

Commit

Permalink
docs: remove Twitter reference or replace by X
Browse files Browse the repository at this point in the history
Twitter references are removed or replaced by X references. The reason behind the removal of the Twitter reference is that the Twitter profile is outdated. All functions related to the Github contributors fetching are excluded from this change.
  • Loading branch information
sarkaaa committed Oct 5, 2024
1 parent 22874ce commit 0d4b5a0
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 28 deletions.
2 changes: 1 addition & 1 deletion docs/src/__examples__/SocialButton/DEFAULT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
name: "type",
type: "select",
defaultValue: "apple",
options: ["apple", "facebook", "twitter", "google"],
options: ["apple", "facebook", "X", "google"],
},
{
name: "fullWidth",
Expand Down
4 changes: 2 additions & 2 deletions docs/src/__examples__/SocialButton/services.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default {
code: `() => <SocialButton type="google">Sign in with Google</SocialButton>`,
},
{
name: "twitter",
code: `() => <SocialButton type="twitter">Sign in with Twitter</SocialButton>`,
name: "X",
code: `() => <SocialButton type="X">Sign in with X</SocialButton>`,
},
],
};
4 changes: 0 additions & 4 deletions docs/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Link, useStaticQuery, graphql } from "gatsby";
import mediaQueries from "./MediaQueries";
import Switch from "./Switch";
import GitHub from "../images/logos/github-circle.svg";
import Twitter from "../images/logos/twitter-circle.svg";
import orbitHeart from "../images/orbit-heart.png";
import { MAX_CONTENT_WIDTH, CONTENT_PADDING } from "../consts";
import useDevMode from "../hooks/useDevMode";
Expand Down Expand Up @@ -127,9 +126,6 @@ export default function Footer() {
<StyledIconLink href="https://github.com/kiwicom/orbit" aria-label="GitHub">
<GitHub />
</StyledIconLink>
<StyledIconLink href="https://twitter.com/OrbitKiwi" aria-label="Twitter">
<Twitter />
</StyledIconLink>
</Stack>
</Stack>
</StyledInner>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/Head/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export default function Head({ title, hasSiteName, description, path }: Props) {
<meta property="og:title" content={pageTitle} />
<meta property="og:description" content={description} />
<meta property="og:url" content={url} />
{/* Twitter Card */}
{/* https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary */}
{/* X Card */}
{/* https://developer.x.com/en/docs/x-for-websites/cards/overview/summary */}
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@OrbitKiwi" />
<meta name="twitter:title" content={pageTitle} />
Expand Down
1 change: 0 additions & 1 deletion docs/src/images/logos/twitter-circle.svg

This file was deleted.

1 change: 0 additions & 1 deletion docs/src/images/streamline-light/love-bird.svg

This file was deleted.

1 change: 0 additions & 1 deletion docs/src/images/twitter.svg

This file was deleted.

16 changes: 0 additions & 16 deletions docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { WindowLocation } from "@reach/router";

import { RecentBookmarks } from "../components/Bookmarks";
// temporarily extract images from @streamlinehq/streamlinehq until they fix the install script
import LoveBirdIcon from "../images/streamline-light/love-bird.svg";
import StartupLaunchIcon from "../images/streamline-light/startup-launch-1.svg";
import ReadArt from "../images/streamline-light/read-art.svg";
import SearchButton from "../components/Search/SearchButton";
Expand All @@ -22,7 +21,6 @@ import HeaderBox from "../components/HeaderBox";
import BrandedTile from "../components/BrandedTile";
import GitHubLogo from "../images/github-full.svg";
import FigmaLogo from "../images/figma-logo.svg";
import TwitterLogo from "../images/twitter.svg";
import srcTequila from "../images/tequila.png";
import { MAX_CONTENT_WIDTH } from "../consts";
import ScreenReaderText from "../components/ScreenReaderText";
Expand Down Expand Up @@ -272,20 +270,6 @@ export default function Home({ location, path }: Props) {
Visit our community profile and download all of our libraries and resources for
free.
</BrandedTile>
<BrandedTile
title="Follow us on Twitter"
icon={<LoveBirdIcon />}
href="https://twitter.com/OrbitKiwi"
linkContent="Follow Orbit on Twitter"
logo={<TwitterLogo />}
color={{
primary: "#0989CF",
secondary: "#179CE3",
}}
>
Twitter is one of our main platforms for sharing. Everything important that is
happening around Orbit is published on Twitter.
</BrandedTile>
<BrandedTile
title="Connect Orbit to Tequila"
icon={<StartupLaunchIcon />}
Expand Down

0 comments on commit 0d4b5a0

Please sign in to comment.