Skip to content

Commit e3c50a9

Browse files
authoredApr 27, 2023
docs(nx-dev): add ProductHunt banner (#16607)
1 parent 5e2bf07 commit e3c50a9

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed
 

‎nx-dev/nx-dev/pages/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Footer, Header } from '@nx/nx-dev/ui-common';
1+
import { AnnouncementBanner, Footer, Header } from '@nx/nx-dev/ui-common';
22
import {
33
ExtensibleAndIntegrated,
44
GettingStarted,
@@ -39,6 +39,7 @@ export default function Index(): JSX.Element {
3939
}}
4040
/>
4141
<h1 className="sr-only">Next generation monorepo tool</h1>
42+
<AnnouncementBanner />
4243
<Header />
4344
<main id="main" role="main">
4445
<div className="w-full">

‎nx-dev/ui-common/src/lib/announcement-banner.tsx

+8-5
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,27 @@ export function AnnouncementBanner(): JSX.Element {
77
<div className="text-center sm:px-16 sm:pr-16">
88
<p className="text-sm font-medium">
99
<span className="md:hidden">
10-
<Link href="https://stateofjs.com/en-us/" className="underline">
11-
State of JS survey:
10+
<Link
11+
href="https://www.producthunt.com/posts/nx-cloud#nx-cloud"
12+
className="underline"
13+
>
14+
Nx Cloud is on Product Hunt!
1215
</Link>
1316
</span>
1417
<span className="hidden md:inline">
1518
<span className="font-semibold">
16-
State of JS survey is online!
19+
Nx Cloud is on Product Hunt today!
1720
</span>
1821
</span>
1922
<span className="ml-2 inline-block">
2023
<Link
21-
href="https://stateofjs.com/en-us/"
24+
href="https://www.producthunt.com/posts/nx-cloud#nx-cloud"
2225
rel="noreferrer"
2326
target="_blank"
2427
className="font-semibold text-blue-500 underline dark:text-sky-500"
2528
>
2629
<span className="absolute inset-0" aria-hidden="true" />
27-
Give Nx & Lerna a thumbs up
30+
Leave us a review
2831
<span aria-hidden="true">&rarr;</span>
2932
</Link>
3033
</span>

‎nx-dev/ui-common/src/lib/documentation-header.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ThemeSwitcher } from '@nx/nx-dev/ui-theme';
44
import cx from 'classnames';
55
import Link from 'next/link';
66
import { useRouter } from 'next/router';
7+
import { AnnouncementBanner } from './announcement-banner';
78

89
function Menu({ tabs }: { tabs: any[] }): JSX.Element {
910
return (
@@ -191,6 +192,9 @@ export function DocumentationHeader({
191192
</div>
192193
{/*NAVIGATION*/}
193194
<div className="hidden flex-grow lg:flex">{/* SPACER */}</div>
195+
<div className="hidden lg:flex">
196+
<AnnouncementBanner />
197+
</div>
194198
<div className="hidden flex-shrink-0 lg:flex">
195199
<nav
196200
role="accessory-nav"

1 commit comments

Comments
 (1)

vercel[bot] commented on Apr 27, 2023

@vercel[bot]

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.