Commit Graph

129 Commits

Author SHA1 Message Date
Dan Abramov
2e5738251d Bolder CTA 2022-09-29 07:01:52 +01:00
dan
fd81031d10 Point old site banner at Beta docs (#5134)
* Point old site banner at Beta docs

* lint
2022-09-29 06:49:46 +01:00
kasahala
b8c439495e fix: css variables and layout of header and banner (#4966)
Some css variables such as banner were defined, but header css variables
were not, and layout margins were written solidly without css variables.
The layout was broken (to the extent that it was not visible), so it was
corrected.
2022-09-07 21:43:40 +01:00
Ricky
74246c13b9 React 18 (#4499)
* [18] ReactDOM reference to createRoot/hydrateRoot (#4340)

* [18] ReactDOM reference to createRoot/hydrateRoot

* Update note about render and hydrate

* Match the warning text

* s/Render/render

* [18] Update ReactDOMClient docs (#4468)

* [18] Update ReactDOMClient docs

* Remove ReactDOMClient where it's obvious

* Update browser message

* Update browser message note

* Update based on feedback

* Add react-dom/client docs

* [18] Upgrade homepage examples (#4469)

* [18] Switch code samples to createRoot (#4470)

* [18] Switch code samples to createRoot

* Feedback fixes

* Feedback updates

* [18] Use hydrateRoot and root.unmount. (#4473)

* [18] Add docs for flushSync (#4474)

* [18] Add flushSync to ReactDOM docs

* Seb feedback

* More Seb feedback

* [18] Bump version to 18 (#4478)

* [18] Update browser requirements (#4476)

* [18] Update browser requirements

* Update based on feedback

* [18] Add stubs for new API references (#4477)

* [18] Add stubs for new API references

* Change order/grouping

* [18] Redirect outdated Concurrent Mode docs (#4481)

* [18] Redirect outdated Concurrent Mode docs

* Use Vercel redirects instead

* [18] Update versions page (#4482)

* [18] Update version page

* Fix prettier

* [18] Update React.lazy docs (#4483)

* [18] Add docs for useSyncExternalStore (#4487)

* [18] Add docs for useSyncExternalStore

* rm "optional"

* [18] Add docs for useInsertionEffect (#4486)

* [18] Add docs for useId (#4488)

* [18] Add docs for useId

* Update based on feedback

* Add Strict Effects to Strict Mode (#4362)

* Add Strict Effects to Strict Mode

* Update with new thinking

* [18] Update docs for useEffect timing (#4498)

* [18] Add docs for useDeferredValue (#4497)

* [18] Update suspense docs for unexpected fallbacks (#4500)

* [18] Update suspense docs for unexpected fallbacks

* Add inline code block

* Feedback fixes

* [18] Updated Suspense doc with behavior during SSR and Hydration (#4484)

* update wording

* wording

* update events

* Update content/docs/reference-react.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* add link to selective hydration

* remove some of the implementation details

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* [18] renderToPipeableStream doc (#4485)

* new streaming ssr api

* add readable stream

* code snippets

* Rename strict effects / unsafe effects to use the reusable state terminology (#4505)

* Add draft of 18 release post

* Add links to speaker Twitter profiles

* [18] Update upgrade guide

* Fix typo in blog title

* [18] Blog - add note for react native

* [18] Add changelog info to blog posts

* Edit Suspense for data fetching section

* Update date

* [18] Add links

* Consistent title case

* Update link to merged RFC

* [18] Update APIs and links

* [18] Add start/useTransition docs (#4479)

* [18] Add start/useTransition docs

* Updates based on feedback

* [18] Generate heading IDs

* Add note about Strict Mode

* Just frameworks

* Reorder, fix content

* Typos

* Clarify Suspense frameworks section

* Revert lost changes that happened when I undo-ed in my editor

Co-authored-by: salazarm <salazarm@users.noreply.github.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
Co-authored-by: Sebastian Markbåge <sebastian@calyptus.eu>
Co-authored-by: Andrew Clark <git@andrewclark.io>
Co-authored-by: dan <dan.abramov@gmail.com>
2022-03-29 12:03:23 -04:00
Strek
d3b66f5e4c Fixes linting issues (#4452) 2022-03-11 10:56:22 +05:30
Dmitry Vinnik | Meta
d90fd21fdb docs: Adding Social Banner in Support of Ukraine (#4397)
* Adding Social Banner with Support for Ukraine

* Changing spacing the social banner

* Fixing lint errors

* Remove external link icon from social banner

* Add banner for beta site

* Add todo

* Fix centering on mobile in old site

Co-authored-by: Rick Hanlon <rickhanlonii@gmail.com>
2022-03-02 11:07:19 -05:00
Paul O’Shannessy
e3ba7fe205 Update copyright on website (#4193)
This should be Meta now
2021-12-21 00:58:04 +00:00
Christine Abernathy
075b69cd6b Activate banner for 2021 survey (#3854) 2021-08-16 18:26:16 +01:00
Brian Vaughn
620d360621 Updated master -> main references (#3769) 2021-07-06 14:17:34 -04:00
Sanket Shah
89f3470e82 Fix broken link in the MarkdownPage.js file (#3764) 2021-07-04 10:31:38 +02:00
Brian Vaughn
d456dfbd29 Update docs and config to replace "master" with "main" branch
https://github.com/facebook/react/issues/21767
2021-06-29 13:35:55 -04:00
Andrew Clark
7b0aecbe6d New post: The Plan for React 18 (#3729)
* New post: The Plan for React 18

* Mark CM docs as stale

* Update content/blog/2021-06-08-the-plan-for-react-18.md

Co-authored-by: Ricky <rickhanlonii@gmail.com>

* Simplify

Co-authored-by: Dan Abramov <dan.abramov@me.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Co-authored-by: Ricky <rickhanlonii@gmail.com>
2021-06-08 10:25:54 -07:00
Swapnal Shahil
7a11d71b38 Fix UI feedback when downvoting a page (#3459) 2020-12-22 11:14:37 +01:00
R Nabors
aef8fb3566 2020 Community survey banner (#3289)
* Adding survey banner for community

* fixing up a kludge for the banner, making the graphic look less like swearing

* updating banner start date

* make the banner smaller

* Close as a button

* fixes

* Remove the arrow

* Updating image sizes, making the arrow do a little slide

* Revert "Remove the arrow"

This reverts commit 3dddae8108.

* Remove extra space

* Legibility tweaks

* Fixing border radius

* Making close button a real button

* Remove trailing space, plz don't re-add, Prettier

* Centering that banner

* Modified Survey header styles

* Inline Banner content at the usage site

* Fix flash by using CSS variables

Co-authored-by: Dan Abramov <dan.abramov@me.com>
Co-authored-by: Brian Vaughn <bvaughn@fb.com>
2020-10-01 20:44:50 +01:00
R Nabors
32e3c7a6f9 Banner scheduling and snooze functionality (#3283)
Co-authored-by: Ricky <rickhanlonii@gmail.com>
2020-09-28 12:01:56 +01:00
Dan Abramov
2e02d9caf6 Add generic banner infrastructure (#3274) 2020-09-25 13:17:56 +01:00
Dan Abramov
1becaff62a End the banner campaign (#3275) 2020-09-21 15:51:11 +01:00
R Nabors
dbed3cf411 Removing those darn quotes. (#3172) 2020-08-04 19:58:42 +01:00
R Nabors
64c51d419f Adding a little feedback form to the bottom of each page using GA (#3170) 2020-08-04 17:16:25 +01:00
David Barratt
08503a8318 Make og:type article for markdown pages (#3146) (#3147) 2020-08-04 11:07:56 +01:00
Rusimbi Patrick
bb8b0147a8 Fix community anchor link to make it clear on all desktop/laptop screens (#3134) 2020-07-25 23:47:58 -04:00
Brian Vaughn
72b9b1aab8 Added Privacy and Terms footer links (#3087) 2020-07-07 11:32:39 -04:00
Brian Vaughn
3e4f2687c6 Update copyright headers (#3086)
Added and updated copyright headers.

Added some missing Flow types.

Removed an invalid prop-types import.
2020-07-07 10:35:57 -04:00
Sunil Pai
c9b990070f remove grayscale treatment (#3024)
As per https://twitter.com/sliminality/status/1269033413488459776, there's feedback that the contrast isn't great for reading. I myself have trouble with low contrast text, (and long sightedness), and I thought it was fine. I was clearly mistaken. Removing this for now to get back to a non harmful position, and we can decide later what to do instead.
2020-06-05 18:55:25 -07:00
Dan Abramov
7aace64d6a Fix flow 2020-06-03 15:53:59 +01:00
Dan Abramov
76f696dc8c CSS fixes for BLM styling 2020-06-03 15:43:38 +01:00
Dan Abramov
5eeb441074 Add a BLM banner 2020-06-01 17:04:53 +01:00
Vlad Denisov
1c71049cfb Update Footer link href (#2950) 2020-05-09 22:46:51 +03:00
Fran Zekan
91ffdb0812 Upgrade to Node 12 LTS (#2831)
* Upgrade to node 12 LTS

* Run prettier
2020-03-14 13:24:39 +00:00
38elements
b39931e98a Fix og:image (#2745) 2020-03-09 12:01:49 +00:00
Phil Marshall
566a36e2c4 media query to hide header on print (#2409)
* media query to hide header on print

* add media query to hide footer on print
2019-10-10 07:52:44 -07:00
Dan Abramov
182c3a4928 Link to Code of Conduct in the footer (#2313) 2019-08-30 17:56:35 +01:00
Gasim Gasimzada
da869abbb0 Extracting Header and Footer Links from source into content (#2270)
* Move footer and header links into a YAML file

* Import header and footer nav YAML files directly

- Remove them from section list
- Add keys to nav array items when mapping

* Add flow error supression for YAML imports
2019-08-27 17:08:51 -07:00
정윤재(JungYunJae)
f4325d05a6 Change variable declaration of ‘newState’ in CodeEditor.js (#2241) 2019-08-14 10:04:33 +03:00
Sunil Pai
ccdcf455e7 Update Footer link to 2019-08-08 20:53:40 +01:00
Monica Powell
6e79d0882a Add lang and hreflang to language pages for screen reader UX (#2033)
* Add lang and hreflang for screen reader UX

I wanted to add `lang` and `hreflang` to the link element for translated languages.  `Lang` is used by screen readers to switch language profiles to provide the correct accent and pronunciation.

>If you have multiple versions of a page for different languages or regions, tell Google about these different variations. Doing so will help Google Search point users to the most appropriate version of your page by language or region.
> Note that even without taking action, Google might still find alternate language versions of your page, but it is usually best for you to explicitly indicate your language- or region-specific pages.

Source: https://support.google.com/webmasters/answer/189077?hl=en

* add hrefLang and Lang attributes

* add alternate pages to head

* Apply suggestions from code review

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

* mark english hreflang as x-default

* make english the default on the languages page

* rethink default-x
2019-05-29 21:30:56 +03:00
George Véras Valentim
dd79941caf Add canonical url to the head section (#1987) 2019-05-15 18:24:20 -07:00
Farhad Yasir
b50fe64c1e fix(unicode-to-char): Replaced other languages unicode to text (#1780)
* fix(unicode-to-char): Replaced other languages unicode to text

* fix(unicode-to-char): run prettier to fix lint error

* feat(unicode-to-char): modified the replace function with p1 parameter
2019-03-06 11:31:15 -08:00
Nat Alison
c792f7d29f Fix eslint errors (#1734) 2019-02-25 15:56:53 -08:00
Dan Abramov
bab2a3491a Hide horizontal scrollbar in header and tweak breakpoitns (#1749)
* Hide horizontal scrollbar in header

* Tweak topbar breakpoints

* Simplify breakpoints to fix animation
2019-02-24 14:27:31 +00:00
Dan Abramov
ef81426b06 Put Blog in top bar before Community (#1741) 2019-02-23 22:17:16 +00:00
Brian Vaughn
07253c8209 Add "Languages" page (#1691)
* Added language selector page

* PR nits

* Fix typo in variable name

* Added language icon. Show search icon in mobile.

* Tweaked header alignment

* Split languages into 3 categories based on progress:
complete, partially translated, and needs contributors

* Lower-cased pt-* language codes

* Re-added locale sort

* Renamed 'Partially Translated' header to 'In Progress'
2019-02-23 19:42:52 +00:00
Saransh Kataria
cbe648ede3 updated footer to get year based on current date 2019-02-16 14:35:03 -08:00
Nurul Sundarani
bbf2cb1d6f Updated Copyright Year 2019-02-13 16:08:25 +05:30
Dan Abramov
ea03fe7163 Clarify DOM container in homepage examples (#1526) 2019-01-02 19:07:45 +00:00
Michał Gołębiowski-Owczarek
06a8850b2f HTTPS-ify lots of URLs, update some to their newer homes (#1157)
This matters for user security.

I didn't touch blog posts & pages related to past conferences.

The `content/docs` could be HTTPS-ified as well but it contains lots of HTTP
links so maybe that'd be best done in a separate PR.
2018-10-05 14:39:12 -07:00
Dustin Schau
7d12082d8b fix: prevent gatsby file detection from breaking path field (#1226)
Fixes #1088

This should fix the path issues that people intermittently run into.
Gatsby sees the relative path (and the parent node with an absolute
path), joins on the parent path and the relative path, and presumes it's
a file... which is normally good, but which here is not what we want
beacuse then we're getting a resolver of type file instead of type
string referring to the relative path of the document.

This seems to fix a (long standing?) bug where the "Edit this Page"
button is broken, as well. e.g. see [this page](https://reactjs.org/community/support.html) which _should_ have an Edit this Page button

I'd need to think more as to whether there's a cleaner fix here, but
this seems to work pretty well!
2018-10-03 15:02:44 -07:00
Dustin Schau
3954cfe6f3 fix: address PR feedback (thanks @bvaughn!) 2018-09-28 20:39:43 -05:00
Dustin Schau
6e2340d141 style: run prettier 2018-09-28 18:07:01 -05:00
Dustin Schau
12c43455e7 chore: add prop-types validation to code example 2018-09-28 18:04:02 -05:00