diff --git a/package.json b/package.json index 26bb3965..1f63eb12 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@docsearch/css": "3.0.0-alpha.41", "@docsearch/react": "3.0.0-alpha.41", "@headlessui/react": "^1.7.0", + "@radix-ui/react-context-menu": "^2.1.5", "body-scroll-lock": "^3.1.3", "classnames": "^2.2.6", "date-fns": "^2.16.1", diff --git a/public/images/brand/logo_dark.svg b/public/images/brand/logo_dark.svg new file mode 100644 index 00000000..265777fa --- /dev/null +++ b/public/images/brand/logo_dark.svg @@ -0,0 +1,12 @@ + + + React-Logo-Filled (1) + + + + + + + + + \ No newline at end of file diff --git a/public/images/brand/logo_light.svg b/public/images/brand/logo_light.svg new file mode 100644 index 00000000..bbe5a899 --- /dev/null +++ b/public/images/brand/logo_light.svg @@ -0,0 +1,10 @@ + + + React-Logo-Filled (1) + + + + + + + \ No newline at end of file diff --git a/public/images/brand/wordmark_dark.svg b/public/images/brand/wordmark_dark.svg new file mode 100644 index 00000000..ec028ae2 --- /dev/null +++ b/public/images/brand/wordmark_dark.svg @@ -0,0 +1,15 @@ + + + Group + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/brand/wordmark_light.svg b/public/images/brand/wordmark_light.svg new file mode 100644 index 00000000..2de8f3cc --- /dev/null +++ b/public/images/brand/wordmark_light.svg @@ -0,0 +1,11 @@ + + + Group + + + + + + + + \ No newline at end of file diff --git a/public/rss.xml b/public/rss.xml new file mode 100644 index 00000000..869c2cfa --- /dev/null +++ b/public/rss.xml @@ -0,0 +1,116 @@ + + + <![CDATA[React Blog]]> + + https://react.dev/ + react.dev rss module + Mon, 19 Aug 2024 13:10:21 GMT + + Mon, 19 Aug 2024 13:10:21 GMT + + + <![CDATA[React Conf 2024 Recap]]> + + https://react.dev/blog/2024/05/22/react-conf-2024-recap + https://react.dev/blog/2024/05/22/react-conf-2024-recap + + Tue, 21 May 2024 19:00:00 GMT + + + <![CDATA[React 19 RC]]> + + https://react.dev/blog/2024/04/25/react-19 + https://react.dev/blog/2024/04/25/react-19 + + Wed, 24 Apr 2024 19:00:00 GMT + + + <![CDATA[React 19 RC Upgrade Guide]]> + + https://react.dev/blog/2024/04/25/react-19-upgrade-guide + https://react.dev/blog/2024/04/25/react-19-upgrade-guide + + Wed, 24 Apr 2024 19:00:00 GMT + + + <![CDATA[React Labs: What We've Been Working On – February 2024]]> + + https://react.dev/blog/2024/02/15/react-labs-what-we-have-been-working-on-february-2024 + https://react.dev/blog/2024/02/15/react-labs-what-we-have-been-working-on-february-2024 + + Wed, 14 Feb 2024 18:00:00 GMT + + + <![CDATA[React Canaries: Enabling Incremental Feature Rollout Outside Meta]]> + + https://react.dev/blog/2023/05/03/react-canaries + https://react.dev/blog/2023/05/03/react-canaries + + Tue, 02 May 2023 18:00:00 GMT + + + <![CDATA[React Labs: What We've Been Working On – March 2023]]> + + https://react.dev/blog/2023/03/22/react-labs-what-we-have-been-working-on-march-2023 + https://react.dev/blog/2023/03/22/react-labs-what-we-have-been-working-on-march-2023 + + Tue, 21 Mar 2023 18:00:00 GMT + + + <![CDATA[Introducing react.dev]]> + + https://react.dev/blog/2023/03/16/introducing-react-dev + https://react.dev/blog/2023/03/16/introducing-react-dev + + Wed, 15 Mar 2023 18:00:00 GMT + + + <![CDATA[React Labs: What We've Been Working On – June 2022]]> + + https://react.dev/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022 + https://react.dev/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022 + + Tue, 14 Jun 2022 18:00:00 GMT + + + <![CDATA[React v18.0]]> + + https://react.dev/blog/2022/03/29/react-v18 + https://react.dev/blog/2022/03/29/react-v18 + + Mon, 07 Mar 2022 18:00:00 GMT + + + <![CDATA[How to Upgrade to React 18]]> + + https://react.dev/blog/2022/03/08/react-18-upgrade-guide + https://react.dev/blog/2022/03/08/react-18-upgrade-guide + + Mon, 07 Mar 2022 18:00:00 GMT + + + <![CDATA[React Conf 2021 Recap]]> + + https://react.dev/blog/2021/12/17/react-conf-2021-recap + https://react.dev/blog/2021/12/17/react-conf-2021-recap + + Thu, 16 Dec 2021 18:00:00 GMT + + + <![CDATA[The Plan for React 18]]> + + https://react.dev/blog/2021/06/08/the-plan-for-react-18 + https://react.dev/blog/2021/06/08/the-plan-for-react-18 + + Mon, 07 Jun 2021 18:00:00 GMT + + + <![CDATA[Introducing Zero-Bundle-Size React Server Components]]> + + https://react.dev/blog/2020/12/21/data-fetching-with-react-server-components + https://react.dev/blog/2020/12/21/data-fetching-with-react-server-components + + Sun, 20 Dec 2020 18:00:00 GMT + + + \ No newline at end of file diff --git a/src/components/Layout/Page.tsx b/src/components/Layout/Page.tsx index 1040e1aa..24d37958 100644 --- a/src/components/Layout/Page.tsx +++ b/src/components/Layout/Page.tsx @@ -8,7 +8,7 @@ import {useRouter} from 'next/router'; import {SidebarNav} from './SidebarNav'; import {Footer} from './Footer'; import {Toc} from './Toc'; -import SocialBanner from '../SocialBanner'; +// import SocialBanner from '../SocialBanner'; import {DocsPageFooter} from 'components/DocsFooter'; import {Seo} from 'components/Seo'; import PageHeading from 'components/PageHeading'; @@ -137,7 +137,7 @@ export function Page({ /> )} - + {/**/} void; +}) { + return ( + + {children} + + ); +} + +function DownloadMenuItem({ + fileName, + href, + children, +}: { + fileName: string; + href: string; + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} + +export default function BrandMenu({children}: {children: React.ReactNode}) { + return ( + + + {children} + + + + + Dark Mode + + + + + + Logo SVG + + + + + + Wordmark SVG + + { + await navigator.clipboard.writeText('#58C4DC'); + }}> + + + + Copy dark mode color + + + Light Mode + + + + + + Logo SVG + + + + + + Wordmark SVG + + { + await navigator.clipboard.writeText('#087EA4'); + }}> + + + + Copy light mode color + +
+ + + uwu + + { + // @ts-ignore + window.__setUwu(false); + }}> + + + + Turn off + + + + + + Logo PNG + + + + + + + + Logo by @sawaratsuki1004 + + +
+
+
+
+ ); +} diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index 62f174ea..2c57bf80 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -26,6 +26,7 @@ import {Feedback} from '../Feedback'; import {SidebarRouteTree} from '../Sidebar'; import type {RouteItem} from '../getRouteMeta'; import {siteConfig} from 'siteConfig'; +import BrandMenu from './BrandMenu'; declare global { interface Window { @@ -125,7 +126,7 @@ function NavItem({url, isActive, children}: any) {