1
1
import { Link } from "react-router-dom" ;
2
2
3
3
import Button from "@mui/material/Button" ;
4
- import { Link as MuiLink } from "@mui/material" ;
4
+ import { Alert , Link as MuiLink } from "@mui/material" ;
5
5
import Box from "@mui/material/Box" ;
6
6
import Typography from "@mui/material/Typography" ;
7
7
import Stack from "@mui/material/Stack" ;
@@ -11,65 +11,86 @@ import classificationImgUrl from "@/assets/classification.png";
11
11
12
12
export const Home = ( ) => {
13
13
return (
14
- < Container component = "main" maxWidth = "md" >
15
- < Box
16
- sx = { {
17
- marginTop : 4 ,
18
- display : "flex" ,
19
- flexDirection : "column" ,
20
- alignItems : "center" ,
21
- } }
22
- >
23
- < Box
24
- component = "img"
25
- height = { 140 }
26
- width = { 700 }
27
- src = { logoUrl }
28
- alt = "Open Food Facts Logo"
29
- />
30
- < Box sx = { { mt : 1 } } />
14
+ < >
15
+ < Alert severity = "info" sx = { { } } >
16
+ You may want to learn more about{ " " }
17
+ < MuiLink
18
+ href = "https://wiki.openfoodfacts.org/Global_taxonomies"
19
+ target = "_blank"
20
+ rel = "noopener"
21
+ >
22
+ taxonomies
23
+ </ MuiLink > { " " }
24
+ or read this{ " " }
25
+ < MuiLink
26
+ href = "https://wiki.openfoodfacts.org/Taxonomy_editor"
27
+ target = "_blank"
28
+ rel = "noopener"
29
+ >
30
+ app's documentation
31
+ </ MuiLink > { " " }
32
+ before using the Taxonomy Editor.
33
+ </ Alert >
34
+ < Container component = "main" maxWidth = "md" >
31
35
< Box
32
- component = "img"
33
- width = { 128 }
34
- height = { 128 }
35
- src = { classificationImgUrl }
36
- alt = "Classification Logo"
37
- />
38
- < Typography sx = { { mt : 4 , mb : 6 } } variant = "h2" >
39
- Taxonomy Editor
36
+ sx = { {
37
+ marginTop : 4 ,
38
+ display : "flex" ,
39
+ flexDirection : "column" ,
40
+ alignItems : "center" ,
41
+ } }
42
+ >
43
+ < Box
44
+ component = "img"
45
+ height = { 140 }
46
+ width = { 700 }
47
+ src = { logoUrl }
48
+ alt = "Open Food Facts Logo"
49
+ />
50
+ < Box sx = { { mt : 1 } } />
51
+ < Box
52
+ component = "img"
53
+ width = { 128 }
54
+ height = { 128 }
55
+ src = { classificationImgUrl }
56
+ alt = "Classification Logo"
57
+ />
58
+ < Typography sx = { { mt : 4 , mb : 6 } } variant = "h2" >
59
+ Taxonomy Editor
60
+ </ Typography >
61
+ < Stack direction = "row" alignItems = "center" >
62
+ < Button
63
+ variant = "contained"
64
+ component = { Link }
65
+ to = "startproject"
66
+ sx = { { textDecoration : "none" , mb : 2 , mr : 4 } }
67
+ >
68
+ Create new project
69
+ </ Button >
70
+ < Button
71
+ variant = "contained"
72
+ component = { Link }
73
+ to = "gotoproject"
74
+ sx = { { textDecoration : "none" , mb : 2 } }
75
+ >
76
+ Open existing project
77
+ </ Button >
78
+ </ Stack >
79
+ </ Box >
80
+ < Typography
81
+ variant = "body2"
82
+ color = "text.secondary"
83
+ align = "center"
84
+ sx = { { mt : 8 , mb : 4 } }
85
+ >
86
+ { "Copyright © " }
87
+ < MuiLink color = "inherit" href = "https://world.openfoodfacts.org/" >
88
+ Open Food Facts
89
+ </ MuiLink > { " " }
90
+ { new Date ( ) . getFullYear ( ) }
91
+ { "." }
40
92
</ Typography >
41
- < Stack direction = "row" alignItems = "center" >
42
- < Button
43
- variant = "contained"
44
- component = { Link }
45
- to = "startproject"
46
- sx = { { textDecoration : "none" , mb : 2 , mr : 4 } }
47
- >
48
- Create new project
49
- </ Button >
50
- < Button
51
- variant = "contained"
52
- component = { Link }
53
- to = "gotoproject"
54
- sx = { { textDecoration : "none" , mb : 2 } }
55
- >
56
- Open existing project
57
- </ Button >
58
- </ Stack >
59
- </ Box >
60
- < Typography
61
- variant = "body2"
62
- color = "text.secondary"
63
- align = "center"
64
- sx = { { mt : 8 , mb : 4 } }
65
- >
66
- { "Copyright © " }
67
- < MuiLink color = "inherit" href = "https://world.openfoodfacts.org/" >
68
- Open Food Facts
69
- </ MuiLink > { " " }
70
- { new Date ( ) . getFullYear ( ) }
71
- { "." }
72
- </ Typography >
73
- </ Container >
93
+ </ Container >
94
+ </ >
74
95
) ;
75
96
} ;
0 commit comments