|
3 | 3 | */ |
4 | 4 |
|
5 | 5 | import { |
| 6 | + Fragment, |
| 7 | + Suspense, |
6 | 8 | createContext, |
7 | 9 | memo, |
8 | | - useState, |
9 | 10 | useContext, |
10 | | - useId, |
11 | | - Fragment, |
12 | | - Suspense, |
13 | 11 | useEffect, |
| 12 | + useId, |
| 13 | + useReducer, |
14 | 14 | useRef, |
| 15 | + useState, |
15 | 16 | useTransition, |
16 | | - useReducer, |
17 | 17 | } from 'react'; |
18 | | -import cn from 'classnames'; |
19 | | -import NextLink from 'next/link'; |
20 | 18 |
|
21 | | -import ButtonLink from '../ButtonLink'; |
22 | | -import {IconRestart} from '../Icon/IconRestart'; |
23 | 19 | import BlogCard from 'components/MDX/BlogCard'; |
| 20 | +import ButtonLink from '../ButtonLink'; |
| 21 | +import CodeBlock from 'components/MDX/CodeBlock'; |
| 22 | +import {ExternalLink} from 'components/ExternalLink'; |
24 | 23 | import {IconChevron} from 'components/Icon/IconChevron'; |
| 24 | +import {IconNavArrow} from 'components/Icon/IconNavArrow'; |
| 25 | +import {IconRestart} from '../Icon/IconRestart'; |
25 | 26 | import {IconSearch} from 'components/Icon/IconSearch'; |
26 | | -import {Logo} from 'components/Logo'; |
27 | 27 | import Link from 'components/MDX/Link'; |
28 | | -import CodeBlock from 'components/MDX/CodeBlock'; |
29 | | -import {IconNavArrow} from 'components/Icon/IconNavArrow'; |
30 | | -import {ExternalLink} from 'components/ExternalLink'; |
| 28 | +import {Logo} from 'components/Logo'; |
| 29 | +import NextLink from 'next/link'; |
| 30 | +import cn from 'classnames'; |
31 | 31 | import sidebarBlog from '../../sidebarBlog.json'; |
32 | 32 |
|
33 | 33 | function Section({children, background = null}) { |
@@ -131,48 +131,51 @@ export function HomeContent() { |
131 | 131 | React |
132 | 132 | </h1> |
133 | 133 | <p className="text-4xl font-display max-w-lg md:max-w-full py-1 text-center text-secondary dark:text-primary-dark leading-snug self-center"> |
134 | | - The library for web and native user interfaces |
| 134 | + La bibliothèque pour des interfaces utilisateurs web et natives |
135 | 135 | </p> |
136 | 136 | <div className="mt-5 self-center flex gap-2 w-full sm:w-auto flex-col sm:flex-row"> |
137 | 137 | <ButtonLink |
138 | 138 | href={'/learn'} |
139 | 139 | type="primary" |
140 | 140 | size="lg" |
141 | 141 | className="w-full sm:w-auto justify-center" |
142 | | - label="Learn React"> |
143 | | - Learn React |
| 142 | + label="Apprenez React"> |
| 143 | + Apprenez React |
144 | 144 | </ButtonLink> |
145 | 145 | <ButtonLink |
146 | 146 | href={'/reference/react'} |
147 | 147 | type="secondary" |
148 | 148 | size="lg" |
149 | 149 | className="w-full sm:w-auto justify-center" |
150 | | - label="API Reference"> |
151 | | - API Reference |
| 150 | + label="Référence de l’API"> |
| 151 | + Référence de l’API |
152 | 152 | </ButtonLink> |
153 | 153 | </div> |
154 | 154 | </div> |
155 | 155 |
|
156 | 156 | <Section background="left-card"> |
157 | 157 | <Center> |
158 | | - <Header>Create user interfaces from components</Header> |
| 158 | + <Header> |
| 159 | + Créez des interfaces utilisateurs à l’aide de composants |
| 160 | + </Header> |
159 | 161 | <Para> |
160 | | - React lets you build user interfaces out of individual pieces |
161 | | - called components. Create your own React components like{' '} |
162 | | - <Code>Thumbnail</Code>, <Code>LikeButton</Code>, and{' '} |
163 | | - <Code>Video</Code>. Then combine them into entire screens, pages, |
164 | | - and apps. |
| 162 | + React vous permet de construire des interfaces utilisateurs à |
| 163 | + partir de briques individuelles appelées composants. Créez vos |
| 164 | + propres composants tels que <Code>Thumbnail</Code>,{' '} |
| 165 | + <Code>LikeButton</Code>, et <Code>Video</Code>. Puis combinez-les |
| 166 | + pour produire des écrans, pages et applis entières. |
165 | 167 | </Para> |
166 | 168 | </Center> |
167 | 169 | <FullBleed> |
168 | 170 | <Example1 /> |
169 | 171 | </FullBleed> |
170 | 172 | <Center> |
171 | 173 | <Para> |
172 | | - Whether you work on your own or with thousands of other |
173 | | - developers, using React feels the same. It is designed to let you |
174 | | - seamlessly combine components written by independent people, |
175 | | - teams, and organizations. |
| 174 | + Que vous travailliez dans votre coin ou avec des milliers d’autres |
| 175 | + développeur·se·s, l’utilisation de React est la même. React est |
| 176 | + conçu pour vous permettre de combiner sans effort des composants |
| 177 | + produits par des acteurs distincts, qu’il s’agisse de personnes, |
| 178 | + d’équipes ou d’organisations entières. |
176 | 179 | </Para> |
177 | 180 | </Center> |
178 | 181 | </Section> |
@@ -922,8 +925,8 @@ function Example1() { |
922 | 925 | <Video |
923 | 926 | video={{ |
924 | 927 | id: 'ex1-0', |
925 | | - title: 'My video', |
926 | | - description: 'Video description', |
| 928 | + title: 'Ma vidéo', |
| 929 | + description: 'Description de la vidéo', |
927 | 930 | image: 'blue', |
928 | 931 | url: null, |
929 | 932 | }} |
|
0 commit comments