-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[website] Add buzzoid and twicsy as gold sponsors (#43368)
Signed-off-by: Raffaella Luzi Stoutland <[email protected]> Signed-off-by: Olivier Tassinari <[email protected]> Co-authored-by: zanivan <[email protected]> Co-authored-by: Olivier Tassinari <[email protected]>
- Loading branch information
1 parent
f01b8d0
commit f43f3d5
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import * as React from 'react'; | ||
import { Link } from '@mui/docs/Link'; | ||
import OpenInNewRoundedIcon from '@mui/icons-material/OpenInNewRounded'; | ||
|
||
export default function BacklinkSponsor(props: { | ||
item: { | ||
name: string; | ||
description: string; | ||
href: string; | ||
}; | ||
}) { | ||
const { item } = props; | ||
// Keep it under two rows maximum. | ||
if (item.description.length > 50) { | ||
throw new Error( | ||
`${item.name}'s description is too long (${item.description.length} characters). It must fit into two line, so under 50 characters.`, | ||
); | ||
} | ||
|
||
return ( | ||
<Link | ||
data-ga-event-category="sponsor" | ||
data-ga-event-action="homepage" | ||
data-ga-event-label={new URL(item.href).hostname} | ||
href={item.href} | ||
title={item.description} | ||
target="_blank" | ||
rel="sponsored noopener" | ||
sx={{ mr: { xs: 2, md: 3 }, mt: { xs: 2, md: 3 } }} | ||
> | ||
{item.name} | ||
<OpenInNewRoundedIcon sx={{ fontSize: 16, ml: 1, verticalAlign: 'middle' }} /> | ||
</Link> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters