|
2 | 2 | * Copyright (c) Facebook, Inc. and its affiliates. |
3 | 3 | */ |
4 | 4 |
|
| 5 | +import cn from 'classnames'; |
| 6 | +import NextLink from 'next/link'; |
5 | 7 | import { |
| 8 | + Suspense, |
6 | 9 | createContext, |
7 | 10 | memo, |
8 | | - useState, |
9 | 11 | useContext, |
10 | | - useId, |
11 | | - Suspense, |
12 | 12 | useEffect, |
| 13 | + useId, |
13 | 14 | useRef, |
| 15 | + useState, |
14 | 16 | useTransition, |
15 | 17 | } from 'react'; |
16 | | -import cn from 'classnames'; |
17 | | -import NextLink from 'next/link'; |
18 | 18 |
|
19 | | -import ButtonLink from '../ButtonLink'; |
20 | | -import {IconRestart} from '../Icon/IconRestart'; |
21 | | -import BlogCard from 'components/MDX/BlogCard'; |
| 19 | +import {ExternalLink} from 'components/ExternalLink'; |
22 | 20 | import {IconChevron} from 'components/Icon/IconChevron'; |
23 | 21 | import {IconSearch} from 'components/Icon/IconSearch'; |
24 | 22 | import {Logo} from 'components/Logo'; |
25 | | -import Link from 'components/MDX/Link'; |
| 23 | +import BlogCard from 'components/MDX/BlogCard'; |
26 | 24 | import CodeBlock from 'components/MDX/CodeBlock'; |
27 | | -import {ExternalLink} from 'components/ExternalLink'; |
| 25 | +import Link from 'components/MDX/Link'; |
28 | 26 | import sidebarBlog from '../../sidebarBlog.json'; |
| 27 | +import ButtonLink from '../ButtonLink'; |
| 28 | +import {IconRestart} from '../Icon/IconRestart'; |
29 | 29 |
|
30 | 30 | function Section({children, background = null}) { |
31 | 31 | return ( |
@@ -383,20 +383,12 @@ export function HomeContent() { |
383 | 383 | </Link>{' '} |
384 | 384 | ja{' '} |
385 | 385 | <Link href="https://github.com/expo/expo">Expo</Link>{' '} |
386 | | -<<<<<<< HEAD |
387 | 386 | antavat sinun rakentaa sovelluksia Reactilla |
388 | | - Androidille, iOS:lle, ja enemmän. Ne näyttävät ja |
| 387 | + Androidille, iOS:lle, ja muille. Ne näyttävät ja |
389 | 388 | tuntuvat aidolta, koska niiden UI:t <i>ovat</i> täysin |
390 | | - natiiveja. Ne eivät ole web view elementtejä, |
391 | | - komponenttisi renderöi oikeita Android ja iOS ruutuja, |
392 | | - jotka alusta tarjoaa. |
393 | | -======= |
394 | | - let you build apps in React for Android, iOS, and |
395 | | - more. They look and feel native because their UIs{' '} |
396 | | - <i>are</i> truly native. It’s not a web view—your |
397 | | - React components render real Android and iOS views |
398 | | - provided by the platform. |
399 | | ->>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3 |
| 389 | + natiiveja. Ne eivät ole web-view elementtejä, |
| 390 | + komponenttisi renderöi oikeita alustan tarjoamia |
| 391 | + Android ja iOS ruutuja. |
400 | 392 | </p> |
401 | 393 | </div> |
402 | 394 | </div> |
@@ -424,13 +416,8 @@ export function HomeContent() { |
424 | 416 | <Section background="right-card"> |
425 | 417 | <div className="max-w-7xl mx-auto flex flex-col lg:flex-row px-5"> |
426 | 418 | <div className="max-w-3xl lg:max-w-7xl gap-5 flex flex-col lg:flex-row lg:px-5"> |
427 | | -<<<<<<< HEAD |
428 | | - <div className="w-full lg:w-6/12 max-w-3xl flex flex-col items-start justify-start lg:pl-5 lg:pr-10"> |
429 | | - <Header>Päivitä kun tulevaisuus on valmis</Header> |
430 | | -======= |
431 | 419 | <div className="w-full lg:w-6/12 max-w-3xl flex flex-col items-start justify-start lg:ps-5 lg:pe-10"> |
432 | | - <Header>Upgrade when the future is ready</Header> |
433 | | ->>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3 |
| 420 | + <Header>Päivitä kun tulevaisuus on valmis</Header> |
434 | 421 | <Para> |
435 | 422 | React lähestyy muutoksia huolella. Jokainen React commit |
436 | 423 | testataan bisneskriittisillä pinnoilla, yli miljardin |
@@ -515,13 +502,8 @@ export function HomeContent() { |
515 | 502 | <div className="mt-20 px-5 lg:px-0 mb-6 max-w-4xl text-center text-opacity-80"> |
516 | 503 | <Logo className="text-link dark:text-link-dark w-24 lg:w-28 mb-10 lg:mb-8 mt-12 h-auto mx-auto self-start" /> |
517 | 504 | <Header> |
518 | | -<<<<<<< HEAD |
519 | | - Tervetuloa React <br className="" /> |
| 505 | + Tervetuloa React <br className="hidden lg:inline" /> |
520 | 506 | yhteisöön |
521 | | -======= |
522 | | - Welcome to the <br className="hidden lg:inline" /> |
523 | | - React community |
524 | | ->>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3 |
525 | 507 | </Header> |
526 | 508 | <ButtonLink |
527 | 509 | href={'/learn'} |
@@ -1499,13 +1481,8 @@ function SearchInput({value, onChange}) { |
1499 | 1481 | <input |
1500 | 1482 | type="text" |
1501 | 1483 | id={id} |
1502 | | -<<<<<<< HEAD |
1503 | | - className="flex pl-11 py-4 h-10 w-full bg-secondary-button outline-none betterhover:hover:bg-opacity-80 pointer items-center text-left text-primary rounded-full align-middle text-base" |
1504 | | - placeholder="Haku" |
1505 | | -======= |
1506 | 1484 | className="flex ps-11 py-4 h-10 w-full text-start bg-secondary-button outline-none betterhover:hover:bg-opacity-80 pointer items-center text-primary rounded-full align-middle text-base" |
1507 | | - placeholder="Search" |
1508 | | ->>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3 |
| 1485 | + placeholder="Haku" |
1509 | 1486 | value={value} |
1510 | 1487 | onChange={(e) => onChange(e.target.value)} |
1511 | 1488 | /> |
|
0 commit comments