Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replace Twitter reference by X #4490

Merged
merged 2 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/streamline-light/startup-launch-1.svg

This file was deleted.

Binary file removed docs/src/images/tequila.png
Binary file not shown.
1 change: 0 additions & 1 deletion docs/src/images/twitter.svg

This file was deleted.

29 changes: 0 additions & 29 deletions docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +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";
sarkaaa marked this conversation as resolved.
Show resolved Hide resolved
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";
import FigmaIcon from "../components/icons/Figma";
Expand All @@ -22,8 +20,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";
import { useKeyboard } from "../services/KeyboardProvider";
Expand Down Expand Up @@ -272,31 +268,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 />}
href="https://partners.kiwi.com"
linkContent="Explore Tequila possibilities"
logo={<img alt="Tequila logo" src={srcTequila} width={144} height={64} />}
color="product"
>
Tequila is an online B2B platform powered by Kiwi.com that allows anyone to access
our content, technology, and services.
</BrandedTile>
</Grid>
</div>

Expand Down
Loading