-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ashley Jelks
authored
May 27, 2021
1 parent
013bb36
commit 6107bdc
Showing
2 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
src/v2/Apps/BuyerGuarantee/Components/BuyerGuaranteeMeta.tsx
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,50 @@ | ||
import React from "react" | ||
import { Meta, Title, Link } from "react-head" | ||
import { getENV } from "v2/Utils/getENV" | ||
import { cropped } from "v2/Utils/resized" | ||
|
||
export const BuyerGuaranteeMeta: React.FC = () => { | ||
const title = "The Artsy Guarantee - Authenticity and Secure Payment" | ||
const href = `${getENV("APP_URL")}/buyer-guarantee` | ||
const description = | ||
" Artsy is the safest place to buy the art you love. Every purchase made exclusively with Artsy’s secure checkout benefits from our full suite of buyer protections." | ||
const src = cropped("http://files.artsy.net/buyerGuaranteeHeroImage.jpg", { | ||
width: 1600, | ||
height: 800, | ||
}) | ||
|
||
return ( | ||
<> | ||
<Title>{title}</Title> | ||
<Meta property="og:title" content={title} /> | ||
|
||
{description && ( | ||
<> | ||
<Meta name="description" content={description} /> | ||
<Meta property="og:description" content={description} /> | ||
<Meta property="twitter:description" content={description} /> | ||
</> | ||
)} | ||
|
||
{href && ( | ||
<> | ||
<Link rel="canonical" href={href} /> | ||
<Meta property="og:url" content={href} /> | ||
</> | ||
)} | ||
|
||
{src && ( | ||
<> | ||
<Meta property="twitter:card" content="summary_large_image" /> | ||
<Meta property="og:image" content={src} /> | ||
</> | ||
)} | ||
|
||
{!src && <Meta property="twitter:card" content="summary" />} | ||
|
||
<Meta property="twitter:site" content="@artsy" /> | ||
<Meta property="og:type" content="website" /> | ||
<Meta name="robots" content="noindex, nofollow" /> | ||
</> | ||
) | ||
} |
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