From b8bb7de4e2a3daef8da5d530edc29f4cba96afce Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sat, 11 Feb 2023 05:03:23 +0000 Subject: [PATCH] tweka --- beta/src/components/Layout/HomeContent.js | 88 ++++++++++++----------- beta/src/styles/index.css | 2 +- 2 files changed, 49 insertions(+), 41 deletions(-) diff --git a/beta/src/components/Layout/HomeContent.js b/beta/src/components/Layout/HomeContent.js index 9be69e2df..f3f7323fe 100644 --- a/beta/src/components/Layout/HomeContent.js +++ b/beta/src/components/Layout/HomeContent.js @@ -30,7 +30,7 @@ export function HomeContent() { type="primary" size="lg" className="w-full sm:w-auto justify-center" - label="Take the Tutorial"> + label="Learn React"> Learn React + label="API Reference"> API Reference @@ -136,7 +136,7 @@ export function HomeContent() {

- Use the best from every platform + Get the best from every platform

People love web and native apps for different reasons. React @@ -194,23 +194,10 @@ export function HomeContent() {

- Use as little or as much React as you need + Use as little or as much as you need

-

- Many teams build their entire user interface with React. For - example, the web experiences of - Facebook, - Instagram, - TikTok, - Twitter, - Airbnb, - Spotify, - Trello, and - - {' '} - The New York Times - {' '} - are fully powered by React. +

+ TODO

@@ -224,8 +211,9 @@ export function HomeContent() {

Stability without stagnation

-

- React approaches changes with care. Every React commit is +

+ TODO + {/*React approaches changes with care. Every React commit is tested on business-critical surfaces with hundreds of millions of users. When an API is deprecated, we add warnings and publish automatic scripts to assist with the migration. The @@ -246,13 +234,13 @@ export function HomeContent() { displayDirection="right" className="inline ml-1" /> - + */}

-
+ {/*
@@ -324,19 +312,38 @@ export function HomeContent() {

+
*/} + +
+
+
+
+

+ Join a community of millions +

+

+ TODO +

+
+
+
-
-
- -
-
-

- Welcome to the React community -

-

- Get started today. -

+
+
+
+
+ +

+ Welcome to the React community! +

+ + Get Started +
@@ -661,22 +668,23 @@ function Example3() {
{`import { db } from './database.js'; import { Suspense } from 'react'; -async function ConferencePage({ slug }) { - const conf = await db.Conferences.find({ slug }); +async function Conference({ slug }) { + const conf = await db.Confs.find({ slug }); return (

{conf.name}

- }> - + }> +
); } -async function Playlist({ playlistId }) { - const videos = await db.Videos.findMany({ playlistId }); +async function Talks({ confId }) { + const talks = await db.Talks.findAll({ confId }); + const videos = talks.map(talk => talk.video); return ; }`}
diff --git a/beta/src/styles/index.css b/beta/src/styles/index.css index 5e564e62b..14502b084 100644 --- a/beta/src/styles/index.css +++ b/beta/src/styles/index.css @@ -344,7 +344,7 @@ ol.mdx-illustration-block { 70% { transform: scale(1); - box-shadow: 0 0 0 4px rgba(0, 0, 0, 0); + box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); } 100% {