diff --git a/website/pages/en/index.js b/website/pages/en/index.js index c8d5821f..4249825b 100755 --- a/website/pages/en/index.js +++ b/website/pages/en/index.js @@ -40,9 +40,18 @@ Button.propTypes = { children: PropTypes.any }; +function Tidelift() { + return ( + + GET PROFESSIONAL SUPPORT FOR PRETTIER + + ); +} + const HomeSplash = props => { return (
+
diff --git a/website/siteConfig.js b/website/siteConfig.js index 4da3185f..05b526f0 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -29,6 +29,8 @@ const siteConfig = { users, editors, supportedLanguages, + tideliftUrl: + "https://tidelift.com/subscription/pkg/npm-prettier?utm_source=npm-prettier&utm_medium=referral&utm_campaign=website", /* base url for editing docs, usage example: editUrl + 'en/doc1.md' */ editUrl: `${GITHUB_URL}/edit/master/docs/`, headerLinks: [ diff --git a/website/static/images/tidelift-small.png b/website/static/images/tidelift-small.png new file mode 100644 index 00000000..9c28518e Binary files /dev/null and b/website/static/images/tidelift-small.png differ diff --git a/website/static/overrides.css b/website/static/overrides.css index 1e6808d7..d1a92607 100644 --- a/website/static/overrides.css +++ b/website/static/overrides.css @@ -16,6 +16,20 @@ em { text-decoration: underline; } +.tidelift { + font-family: Avenir Next, Avenir, Helvetica Neue, Helvetica, Arial, sans-serif; + background: #f6914d url(/images/tidelift-small.png) 10px center no-repeat; + background-size: 24px; + color: #000000; + position: absolute; + margin-top: -15px; + right: 0; + font-size: 13px; + border-radius: 13px 0 0px 13px; + padding: 7px 15px 5px 45px; + z-index: 9999 !important; +} + /* Note: CSS on body bg-color for index page is set inside landing.js, not here */ .post p a { @@ -87,6 +101,7 @@ em { .homeContainer { background: #1a2b34; + padding-top: 30px; } .mainContainer.landingContainer { @@ -136,7 +151,7 @@ em { .mainContainer .tldrSection ul li { list-style: none; list-style-position: inside; - line-height: 1.0; + line-height: 1; } .mainContainer .tldrSection ul li a {