Ricky
a08e1fd4b5
Fixes for banner on beta ( #4435 )
2022-03-06 10:43:05 -05:00
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
Sha Mwe La
6c95de96f7
[Beta] Delete unused variables ( #4379 )
...
* Delete unused variables
* Change event to e
* Change e to evt
2022-03-01 13:36:37 +05:30
Ricky
ac9a984a5b
Add diagrams to Quick Start ( #4377 )
...
* Add diagrams to Quick Start
* Switch to svg
* Switch dark mode image
* Rework file names, minor dark mode updates
* Update alt tags and descriptions
2022-02-24 11:29:38 -05:00
Sha Mwe La
1b05b11188
Remove transform ( #4375 )
2022-02-23 16:08:10 +00:00
Anjorin Damilare
9bcbe7ba5f
[beta] bump tailwind to v3 and update config ( #4366 )
...
* [beta] bump tailwind to v3 and update config
* fix widget wrong position
* fix content tailwind config
2022-02-21 21:40:33 +00:00
Sha Mwe La
2310e15532
Add ARIA labels on the navigation buttons ( #4363 )
2022-02-19 23:00:54 +00:00
Strek
5b8a720ece
Initial Commit ( #4358 )
2022-02-18 18:05:22 +00:00
Dan Abramov
6c855f7f98
Remember whether downloads are supported
2022-02-18 16:25:38 +00:00
Dan Abramov
ab648df861
Consolidate and preload fonts
2022-02-18 04:55:36 +00:00
Dan Abramov
753c4fc571
Delete dead code
2022-02-18 04:23:00 +00:00
dan
0883863c67
[Beta] Use a light GA client ( #4355 )
...
* [Beta] Use a light GA client
* oopsie
2022-02-18 03:56:41 +00:00
dan
c8ec9d841a
[Beta] Replace Hotjar with GA buttons ( #4275 )
...
* Replace Hotjar with GA buttons
* initial styles for GA buttons
* Add feedback popover
* style fixes + adding SVGs
* dark mode fix
* Maintain state
* Click outside
* Fix TS
* Oops
Co-authored-by: Dan Lebowitz <dan.lebo@me.com >
2022-02-18 00:28:01 +00:00
Sha Mwe La
3d6081f65f
[Beta] Add aria-label and title to permalinks ( #4344 )
...
* Add tab index -1
* Improve accessibility
2022-02-18 00:01:02 +00:00
Sha Mwe La
aa4bb4197b
Cache a font file ( #4350 )
...
* Cache a font file
* Fix vercel.json syntax
* Improve
* Fix fonts
Co-authored-by: dan <dan.abramov@gmail.com >
2022-02-17 23:59:06 +00:00
dan
4ed4fb7415
[Beta] Change highlight styles ( #4348 )
2022-02-17 03:13:51 +00:00
dan
a2138f2e63
Nitpicks for code splitting ( #4346 )
2022-02-16 18:51:15 +00:00
Strek
2979d0c967
Splitting sandpack from main bundle ( #4256 )
...
* Initial Commit
* play with it
* oops
* easier repro
* import type
* remove `suspense: true`
* Add patch for next
* Patch package
* Add fallback
* Enable flag
* Fixes local dev env and adds better fallback for codeblock
* Adds fallback for sandpack (should work fine)
* turn off concurrentFeatures
* Revert "turn off concurrentFeatures"
This reverts commit 50158ecbd33969e707a2a91a54e822e90c2ebfde.
* Update SandpackWrapper.tsx
* Removed flags and setTimeouts
* add timeouts and promise again
* Adds bottom bezel and scroll to sandpack fallback
* tinker bottombezel and remove console
* Update CodeBlock.tsx
* Update SandpackWrapper.tsx
* removing overflows to avoid explicit scrolls
* upgrade nextjs to canary
* Rm patch
* Fix TS
* Bump Next
* No more CSS jumping
* Reverts the canary to use the latest Next.js `12.0.10`
Co-authored-by: Dan Abramov <dan.abramov@gmail.com >
Co-authored-by: Dan Abramov <dan.abramov@me.com >
2022-02-16 23:06:04 +05:30
dan
0209e1b5be
[Beta] Reorder API sections ( #4328 )
...
* Reorder API pages
* Tweaks
2022-02-16 00:28:25 +00:00
Sha Mwe La
b4de7008f3
[Beta] Add ARIA labels ( #4335 )
...
* Add ARIA labels
* Remove unnecessary ARIA label
* Add Facebook and Twitter ARIA labels
2022-02-15 16:30:11 +00:00
Danilo Woznica
b10ae600dc
sandpack: bring back init mode ( #4337 )
...
* sandpack: bring back init mode
* upgrade sandpack
2022-02-15 16:18:59 +00:00
dan
3ccb538942
[Beta] Fix layout shift from previews ( #4322 )
...
* [Beta] Fix layout shift from previews
* Arbitrary values
* Fix borked style
* Remove custom styles and start again
* Recreate existing layout
* Try to make it work
* Fix TS
Co-authored-by: Dan Lebowitz <dan.lebo@me.com >
2022-02-12 01:32:53 +00:00
dan
7d615adec3
[Beta] useState Troubleshooting ( #4309 )
...
* [Beta] useState Troubleshooting
* Tweaks
* tweak
2022-02-07 20:50:48 +00:00
dan
73d7d13446
[Beta] Move /reference -> /apis ( #4294 )
...
* [Beta] Move /reference -> /apis
* come on
* Update CONTRIBUTING.md
* Update sidebarReference.json
2022-02-04 17:42:27 +00:00
Danilo Woznica
4d005ad7e0
fix(sandpack): disable init-mode ( #4278 )
2022-02-04 16:33:35 +05:30
Danilo Woznica
52393daffe
fix(useMediaQuery): adds fallback to matchMedia ( #4289 )
2022-02-04 16:31:44 +05:30
dan
001b1f021b
[Beta] useState API: Best of the both words? Haha just kidding... Unless?... ( #4284 )
...
* Dry version
* Here we go again
* Recreation lol
* Some tweaks (#4285 )
* tweaks
* edit
Co-authored-by: Sophie Alpert <git@sophiebits.com >
2022-02-04 05:37:56 +00:00
dan
e6b843bb84
[Beta] Change useState structure, add examples ( #4276 )
...
* [Beta] Change useState structure, add examples
* Simpler language
* Nix when not to use it
2022-02-03 00:29:33 +00:00
Danilo Woznica
626f957364
fix(sandpack): improve memory usage ( #4126 )
...
* fix(sandpack): init mode
* init mode tweaks
* sandpack preview: keep loading state while preview is still working
* prettify it
* fix: renew client listener on remount
2022-02-02 11:44:26 +00:00
Dan Abramov
c8ad67d379
Fix deps
2022-02-01 13:53:34 +00:00
dan
abca1f4495
Use MDXContext directly ( #4267 )
...
* Use MDXContext directly
* yolo
2022-02-01 13:19:17 +00:00
dan
58d6f3f9fc
Prevent nav context re-renders ( #4266 )
2022-02-01 12:51:14 +00:00
dan
1c355ab630
[Beta] Change "You will learn" for chapters ( #4239 )
2022-01-28 18:55:27 +00:00
Dan Abramov
2b2ac5c3bf
Fix download label
2022-01-28 00:42:59 +00:00
Ben Rogers-McKee
53d279e370
fix: challenges navigation ( #4123 )
...
* fix: challenges navigation
* fix: challenges navigation alternate solution
* fix: challenges navigation assert non null on find
* refactor: unnecessary default value
2022-01-27 21:06:51 +00:00
Mark R. Florkowski
ec65cc000c
Add "click to copy" to TerminalBlock ( #4025 )
...
* add click to copy to TerminalBlock
* rebase + changes
* fix 'Not all code paths return a value.'
* fix svg jsx
* fix lint errors
2022-01-27 21:06:39 +00:00
Danilo Woznica
d80ef566a3
Sandpack: upgrade dependencies and adds ReactDevtools ( #4161 )
...
* upgrade sandpack dependencies
* update csb button
* remove unnecessary ref
* add react dev tools
* remove duplicated/unnecessary element
* fix: codemirror gutter
* fix codemirror gutter
* make devtools optional
* bump sandpack version
* fix: add website theme to the react devtools
* fix: react devtools ui tweaks
* devtools: custom theme
* refactor: reset sandbox
* fix sandpack
* fix: devtools style
* fix: tweaks on mobile version
* fix: soft refresh when module is loaded
* bump sandpack version
* update color
* remove demo
* remove inspect button
* bring back key logic
* refactor: icon align
* update sandpack
* logic to keep the content synced
2022-01-24 16:28:52 +00:00
CatsAndDogs123
86eb509781
[fix]: add-listner is deprecated, switched those to add-event-listner ( #4093 )
2021-12-03 17:30:05 +05:30
Strek
01afd01325
[Beta]Move all possible style to tailwind classes ( #4054 )
...
* Move all possible style to tailwind classes
* Update Sidebar.tsx
* fix-collapsable-color
* dry run and commit
* Update SidebarLink.tsx
* Fixes review comments for aria tags
* Remove extended tailwind configs
* Update tailwind.config.js
* Update Sidebar.tsx
2021-11-29 23:17:46 +05:30
Strek
17ad2cbc71
Fixes unwanted scrolls in mobile ( #4114 )
...
* added word break
* Update PageHeading.tsx
2021-11-18 21:17:15 +00:00
Strek
49a552c1c1
Fix prettier CI and add it to pre commit ( #4100 )
...
* Add prettier before commit and during CI
* Add workflow
* Reverse merge main to branch
* dry run prettier
* dry run prettier
* [warn] jsxBracketSameLine is deprecated so replaced it to bracketSameLine
* Revert "[warn] jsxBracketSameLine is deprecated so replaced it to bracketSameLine"
This reverts commit 43dbe9ed3f .
* Revert "dry run prettier"
This reverts commit b62948042c .
* Revert "dry run prettier"
This reverts commit 382f9a4691 .
* Revert "Reverse merge main to branch"
This reverts commit 43667eaf29 .
* [warn] jsxBracketSameLine is deprecated so replaced it to bracketSameLine
2021-11-15 18:23:25 +00:00
Strek
ea086bd312
Fixing Eslint configuration ( #4087 )
...
* fix-collapsable-color
* Made Eslint work and added next's eslint config
* Add lint:fix to pre commit rule
* Reverts older anchor links
* Fixed review comments
* Replace with spaces like before
* Update DocsFooter.tsx
* Update arrow function
* Update CodeBlock.tsx
* Update MDXComponents.tsx
* Update SidebarLink.tsx
2021-11-15 15:33:15 +00:00
Alexey Pyltsyn
719aa3c377
Allow page zooming/scaling ( #4082 )
...
* Allow page zooming/scaling
* Fix for iOS
2021-11-11 16:50:49 +00:00
harish-sethuraman
8333b6d127
Fixes wrong breadcrumb for 404 page ( #4074 )
...
* Fixes wrong breadcrumb for 404 page
* Change Home as default layout
* Add layout Learn to the pages inside learn
2021-11-10 18:10:20 +00:00
Dan Lebowitz
29fbe65acb
fix safari bug
2021-11-10 17:50:07 +00:00
Dan Lebowitz
23c09e0072
polish dark mode illustrations
2021-11-09 23:07:39 +00:00
Dan Abramov
075b786344
Restore scroll after 'show less' ( #4056 )
...
* Restore scroll after 'show less'
* Get the whole sandbox into view
2021-11-06 14:44:15 +00:00
Alexey Pyltsyn
22f4595dac
Fix scroll to last scroll position after close modal search ( #4057 )
2021-11-06 14:30:12 +00:00
Dan Lebowitz
e915345e61
add additional bottom padding to mobile sidebar
2021-11-06 12:42:40 +00:00
Dan Abramov
9affdc9a5a
Only show sidebar scrollbars when needed ( #4052 )
...
* Adjust sidebar scrollbars
* thinner
2021-11-06 01:12:57 +00:00