Commit Graph

61 Commits

Author SHA1 Message Date
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
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
Saswata Mukherjee
0ad7e3a1f9 Correct broken link in acknowledgements.html.js (#3111) 2020-07-16 15:49:49 +01: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
5eeb441074 Add a BLM banner 2020-06-01 17:04:53 +01:00
Joe Del
1695e26dc8 fix broken link to babel repl on jsx-compiler page (#2349) 2020-03-09 13:28:21 +00: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
Stepan
f0d1a01120 links Get started and Take the Tutorial have been relocated in mobile… (#1857) 2019-04-23 20:48:21 +03: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
Farhad Yasir
927a44a0b4 fix(remove-unused-var): Unused variable ReactDOM removed 2019-02-22 16:33:27 +11:00
Alexey Pyltsyn
1a625b7b69 Merge branch 'master' into httpsify 2019-02-22 00:12:48 +03:00
Farhad Yasir
cd7bfe7b2f fix(renderExamplePlaceholder): renderExamplePlaceholder removed as its never used 2019-02-18 11:55:05 +11:00
Michał Gołębiowski-Owczarek
7e4ac52af4 HTTPS-ify most insecure URLs in content/docs (& one in Acknowledgments)
This is a followup to #1157
2019-02-07 14:45:03 +01:00
Dan Abramov
ea03fe7163 Clarify DOM container in homepage examples (#1526) 2019-01-02 19:07:45 +00:00
Sophie Alpert
cd6950a718 Add information about versioning policy (#1403) 2018-11-16 17:07:48 -08:00
Sophie Alpert
40394f97a8 Feature headings easier to read 2018-10-17 12:56:47 -07: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
e855f5f503 chore: rearrange import order 2018-09-28 18:12:49 -05:00
Dustin Schau
fc0ef96fb6 chore: minor tweaks and run prettier 2018-09-28 14:29:44 -05:00
Dustin Schau
9d6015a871 fix: refactor plugin to use source-filesystem and onCreateNode 2018-09-28 14:25:10 -05:00
Dustin Schau
3ead525cf7 feat: refactor index page so hot reloading works for code examples 2018-09-28 14:17:15 -05:00
Alexander Nanberg
71b03486c0 Upgrade to Gatsby v2 (#1104)
* Upgrade to Gatsby v2

* Remove unnecessary polyfills since gatsby already provides them

* Move global styles to gatsby-browser

* Add fb comment and convert to cjs

* Revert to use pageQuery again

* Add back html.js

* Update dependencies

* Move TitleAndMetaTags

* Replace glamor/reset with normalize.css which fixes style order in prod

* Prettier formatting

* Remove unused types

* Remove old layout

* Fix versions link

* Update deps

* Update deps

* Remove hack since it's no longer needed

* Update dependencies

* Fix build error

* Fix prettier config resolution

* Update gatsby

* Remove custom onCreatePage logic

* Update dependencies

* Fix build

* Update dependencies

* prettier formatting

* update dependencies

* add custom babel config for flow

* upgrade dependencies

* update dependencies

* use stable gatsby release
2018-09-19 13:11:19 +01:00
Sophie Alpert
0e4f45fa24 &ndash; 2018-08-17 13:21:31 -07:00
Alex Krolick
d9cd3e311f upgrade some gatsby deps 2018-07-16 21:43:51 -07:00
Dan Abramov
623523131e Rewrite Installation and related docs (#996)
* Rewrite "adding React to existing app"

Fixes #988

* Some copy

* typo

* Update babel instructions

* Update umd link

* Add prod minification section

* Show "button" example in several targets

* wip

* More

* More

* tweak

* yas

* Multi root tip

* moaar

* alot

* Tweak links

* Explain better

* better lead

* tweaks

* tweaks

* wording

* More reassuring tone

* Grammar

* wording

* feedback from readers

* Use id, not class

* More nits

* Re-add a useful section
2018-06-26 01:24:56 +01:00
Dan Abramov
f461942615 Minor wording tweak for Versions page (#816) 2018-04-17 17:29:09 +01:00
Brian Vaughn
88bf29d3f3 Added 16.3 changelog to version links 2018-04-15 08:00:04 -07:00
Brian Vaughn
d184d0292f Added links to old release changelogs also 2018-04-14 08:08:16 -07:00
Brian Vaughn
48a92c592e Moved versions control into versions.yml and Gatsby plug-in 2018-04-13 13:42:50 -07:00
Brian Vaughn
8e45c4bd6a Added versions page with links to recent releases 2018-04-13 11:45:12 -07:00
Brian Vaughn
bb55d1083b Re-ran Prettier after version bump 2017-12-21 09:22:05 -08:00
Fredrik Forsmo
a970afa27e Remove "use strict" from source files 2017-12-02 15:25:17 +01:00
Sophie Alpert
33cfa5f6b8 Fix hero buttons to be clickable (#373) 2017-11-29 19:35:28 -08:00
Brian Vaughn
b8d13d5fe5 Merge pull request #205 from tricinel/feature/flow-types
Add flow types to components; realted to #24
2017-11-29 13:32:38 -08:00
Brian Vaughn
989cccee10 Prettier fix 2017-11-29 13:26:52 -08:00
Brian Vaughn
d2a9c9aed7 Removed unnecessary empty <div> from conditional 2017-11-29 13:26:06 -08:00
tricinel
990a13e2af Handle case when author does not exist
According to the Edge type in allMarkdownRemarkData, the author in
frontmatter could be undefined.

related to #24
2017-11-28 14:57:20 +01:00
Michael Mullins
1d7c1d4ad4 convert logo-large into a plain white version of the logo
logo-large was a custom version of the logo made just for the banner background. It was also scaled up manually rather than taking advantage of svg's inherit scaling. This change reduces its size, makes it just a plain white version of the react logo, and moves most of the custom stuff into css. It also moves it from the static folder, over to the icons folder where it can be imported as a url.
2017-11-27 12:25:50 -06:00
tricinel
03df4d4ab8 Merge branch 'master' into feature/flow-types 2017-11-21 18:59:27 +01:00
tricinel
232d15463d Add flow types; related to #24 2017-11-20 17:57:36 +01:00
Brian Vaughn
f5aaf4c1b4 Moved home page example code to /content/home
Now examples are trasnformed to GraphQL during build and assembled by the index template. This makes them easier to edit and tie in with their associated markdown description.
2017-11-06 13:01:13 +00:00
Tay Yang Shun
65f1ced297 Shift into home folder 2017-11-05 23:35:59 +08:00
Tay Yang Shun
57baeb1298 Shift out examples content 2017-10-24 04:05:40 +08:00
Yangshun Tay
405e7c5166 Fix for comments 2017-10-24 01:05:23 +08:00
Yangshun Tay
505efa09ee Fix styling 2017-10-24 01:05:23 +08:00