Skip to content

Commit 0439735

Browse files
merging all conflicts
2 parents f2d6bd8 + e548bd7 commit 0439735

File tree

12 files changed

+55
-16
lines changed

12 files changed

+55
-16
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/erbium
1+
12.16.1

content/blog/2013-10-16-react-v0.5.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ It's been awesome to see the things that people are building with React, and we
3434
* Added `React.version`.
3535
* Added `React.isValidClass` - Used to determine if a value is a valid component constructor.
3636
* Removed `React.autoBind` - This was deprecated in v0.4 and now properly removed.
37-
* Renamed `React.unmountAndReleaseReactRootNode` to `React.unmountComponentAtNode`.
37+
* Renamed `React.unmountAndReleaseReactRootNode` to `React.unmountComponentAtNode`.
3838
* Began laying down work for refined performance analysis.
3939
* Better support for server-side rendering - [react-page](https://github.com/facebook/react-page) has helped improve the stability for server-side rendering.
4040
* Made it possible to use React in environments enforcing a strict [Content Security Policy](https://developer.mozilla.org/en-US/docs/Security/CSP/Introducing_Content_Security_Policy). This also makes it possible to use React to build Chrome extensions.

content/docs/components-and-props.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,11 @@ function Comment(props) {
233233

234234
[](codepen://components-and-props/extracting-components-continued)
235235

236+
<<<<<<< HEAD
236237
A komponensek kivonása elsőre morgós munkának tűnhet, de nagyobb alkalmazások esetén gyorsan megtérül ha egy újrafelhasználható komponens palettával rendelkezünk. Egy jó ökölszabály ha a felhasználói kezelőfelületed valamelyik része többször fel van használva (`Button`, `Panel`, `Avatar`), vagy elég bonyolult saját magában is (`App`, `FeedStory`, `Comment`) akkor jó jelölt lehet egy újrafelhasználható komponensnek.
238+
=======
239+
Extracting components might seem like grunt work at first, but having a palette of reusable components pays off in larger apps. A good rule of thumb is that if a part of your UI is used several times (`Button`, `Panel`, `Avatar`), or is complex enough on its own (`App`, `FeedStory`, `Comment`), it is a good candidate to be extracted to a separate component.
240+
>>>>>>> e548bd7e65086a8206fee46bd9e24b18b68bf045
237241
238242
## A prop-ok csak olvashatók {#props-are-read-only}
239243

content/docs/faq-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ React doesn't have opinions on how you put files into folders. That said there a
1212

1313
#### Grouping by features or routes {#grouping-by-features-or-routes}
1414

15-
One common way to structure projects is locate CSS, JS, and tests together inside folders grouped by feature or route.
15+
One common way to structure projects is to locate CSS, JS, and tests together inside folders grouped by feature or route.
1616

1717
```
1818
common/

content/docs/optimizing-performance.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,16 @@ function updateColorMap(colormap) {
371371

372372
`updateColorMap` now returns a new object, rather than mutating the old one. `Object.assign` is in ES6 and requires a polyfill.
373373

374-
There is a JavaScript proposal to add [object spread properties](https://github.com/sebmarkbage/ecmascript-rest-spread) to make it easier to update objects without mutation as well:
374+
[Object spread syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax) makes it easier to update objects without mutation as well:
375375

376376
```js
377377
function updateColorMap(colormap) {
378378
return {...colormap, right: 'blue'};
379379
}
380380
```
381381

382+
This feature was added to JavaScript in ES2018.
383+
382384
If you're using Create React App, both `Object.assign` and the object spread syntax are available by default.
383385

384386
When you deal with deeply nested objects, updating them in an immutable way can feel convoluted. If you run into this problem, check out [Immer](https://github.com/mweststrate/immer) or [immutability-helper](https://github.com/kolodny/immutability-helper). These libraries let you write highly readable code without losing the benefits of immutability.

src/components/Container/Container.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const Container = ({children}: {children: Node}) => (
2222
paddingRight: 20,
2323
marginLeft: 'auto',
2424
marginRight: 'auto',
25-
2625
[media.greaterThan('medium')]: {
2726
width: '90%',
2827
},

src/components/LayoutHeader/Header.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,34 @@ const Header = ({location}: {location: Location}) => (
3333
display: 'none',
3434
},
3535
}}>
36+
<Container>
37+
<div
38+
css={{
39+
height: 60,
40+
fontSize: 20,
41+
padding: 20,
42+
textAlign: 'center',
43+
[media.between('small', 'large')]: {
44+
fontSize: 22,
45+
height: 60,
46+
},
47+
[media.lessThan('small')]: {
48+
height: 80,
49+
},
50+
[media.greaterThan('medium')]: {
51+
fontSize: 25,
52+
},
53+
}}>
54+
Black Lives Matter.{' '}
55+
<a
56+
style={{color: colors.brand}}
57+
target="_blank"
58+
rel="noopener"
59+
href="https://support.eji.org/give/153413/#!/donation/checkout">
60+
Support&nbsp;the&nbsp;Equal&nbsp;Justice&nbsp;Initiative.
61+
</a>
62+
</div>
63+
</Container>
3664
<Container>
3765
<div
3866
css={{

src/components/MarkdownHeader/MarkdownHeader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ const MarkdownHeader = ({title}: {title: string}) => (
1515
css={{
1616
color: colors.dark,
1717
marginBottom: 0,
18-
marginTop: 40,
18+
marginTop: 100, // BLM
1919
...fonts.header,
2020

2121
[media.size('medium')]: {
22-
marginTop: 60,
22+
marginTop: 100, // BLM
2323
},
2424

2525
[media.greaterThan('large')]: {
26-
marginTop: 80,
26+
marginTop: 100, // BLM
2727
},
2828
}}>
2929
{title}

src/components/MarkdownPage/MarkdownPage.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ const MarkdownPage = ({
8484
<MarkdownHeader title={titlePrefix} />
8585

8686
{(date || hasAuthors) && (
87-
<div css={{marginTop: 15}}>
87+
<div
88+
css={{
89+
marginTop: 15,
90+
}}>
8891
{date}{' '}
8992
{hasAuthors && (
9093
<span>

src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class StickyResponsiveSidebar extends Component<Props, State> {
4343
render() {
4444
const {open} = this.state;
4545
const smallScreenSidebarStyles = {
46-
top: 0,
46+
top: 60,
4747
left: 0,
4848
bottom: 0,
4949
right: 0,
@@ -117,18 +117,18 @@ class StickyResponsiveSidebar extends Component<Props, State> {
117117
transition: 'transform 0.5s ease',
118118
}}
119119
css={{
120-
marginTop: 60,
120+
marginTop: 80,
121121

122122
[media.size('xsmall')]: {
123-
marginTop: 40,
123+
marginTop: 60,
124124
},
125125

126126
[media.between('small', 'medium')]: {
127-
marginTop: 0,
127+
marginTop: 70,
128128
},
129129

130130
[media.between('medium', 'large')]: {
131-
marginTop: 50,
131+
marginTop: 70,
132132
},
133133

134134
[media.greaterThan('small')]: {

0 commit comments

Comments
 (0)