1
1
import Layout from "@components/Layout" ;
2
+ import Page from "@components/Page" ;
2
3
import { useTheme } from "@hooks/useTheme" ;
3
4
import { Box , Button , Card , Divider , Typography } from "@mui/material" ;
4
5
@@ -11,67 +12,62 @@ export default function Plugins() {
11
12
12
13
return (
13
14
< Layout >
14
- < Box
15
- sx = { {
16
- textAlign : "left" ,
17
- px : { xs : 2 , sm : 4 , md : 16 } ,
18
- maxWidth : 800 ,
19
- height : "100vh" ,
20
- } }
21
- >
22
- < Typography variant = "h4" sx = { { fontWeight : "600" } } >
23
- Plugins
24
- </ Typography >
25
- < Typography sx = { { mt : 2 } } >
26
- By default, < b > LNReader</ b > comes without any plugins. You can choose
27
- to read local content or include an external repository.
28
- </ Typography >
29
- < Typography sx = { { mt : 2 } } >
30
- < b > LNReader</ b > maintains only one official repository; any other
31
- repositories are unofficial and have no affiliation with us.
32
- </ Typography >
33
- { isAndroid ? (
34
- < Box sx = { { my : 2 , textAlign : "center" } } >
35
- < Button
36
- variant = "contained"
37
- sx = { {
38
- borderRadius : 12 ,
39
- background : theme . primaryContainer ,
40
- color : theme . onPrimaryContainer ,
41
- textTransform : "none" ,
42
- } }
43
- href = {
44
- "lnreader://repo/add?url=" +
45
- encodeURIComponent ( lnreaderPluginsRepo )
46
- }
47
- >
48
- Add repository
49
- </ Button >
15
+ < Page
16
+ title = "Plugins"
17
+ content = {
18
+ < Box >
50
19
< Typography sx = { { mt : 2 } } >
51
- Requires < b > LNReader 2.0.0</ b > or newer.
20
+ By default, < b > LNReader</ b > comes without any plugins. You can
21
+ choose to read local content or include an external repository.
52
22
</ Typography >
53
- </ Box >
54
- ) : (
55
- < Card
56
- sx = { {
57
- bgcolor : theme . tertiaryContainer ,
58
- my : 2 ,
59
- p : 2 ,
60
- borderRadius : 2 ,
61
- } }
62
- >
63
- < Typography sx = { { mb : 2 , fontWeight : "600" } } >
64
- Unsupported operating system
65
- </ Typography >
66
- < Typography sx = { { fontSize : 16 } } >
67
- < b > LNReader</ b > is an < b > Android app</ b > only. Use an{ " " }
68
- < b > Android</ b > device with < b > LNReader</ b > installed to add this
69
- extension repo.
23
+ < Typography sx = { { mt : 2 } } >
24
+ < b > LNReader</ b > maintains only one official repository; any other
25
+ repositories are unofficial and have no affiliation with us.
70
26
</ Typography >
71
- </ Card >
72
- ) }
73
- < Divider />
74
- </ Box >
27
+ { isAndroid ? (
28
+ < Box sx = { { my : 2 , textAlign : "center" } } >
29
+ < Button
30
+ variant = "contained"
31
+ sx = { {
32
+ borderRadius : 12 ,
33
+ background : theme . primaryContainer ,
34
+ color : theme . onPrimaryContainer ,
35
+ textTransform : "none" ,
36
+ } }
37
+ href = {
38
+ "lnreader://repo/add?url=" +
39
+ encodeURIComponent ( lnreaderPluginsRepo )
40
+ }
41
+ >
42
+ Add repository
43
+ </ Button >
44
+ < Typography sx = { { mt : 2 } } >
45
+ Requires < b > LNReader 2.0.0</ b > or newer.
46
+ </ Typography >
47
+ </ Box >
48
+ ) : (
49
+ < Card
50
+ sx = { {
51
+ bgcolor : theme . tertiaryContainer ,
52
+ my : 2 ,
53
+ p : 2 ,
54
+ borderRadius : 2 ,
55
+ } }
56
+ >
57
+ < Typography sx = { { mb : 2 , fontWeight : "600" } } >
58
+ Unsupported operating system
59
+ </ Typography >
60
+ < Typography sx = { { fontSize : 16 } } >
61
+ < b > LNReader</ b > is an < b > Android app</ b > only. Use an{ " " }
62
+ < b > Android</ b > device with < b > LNReader</ b > installed to add
63
+ this extension repo.
64
+ </ Typography >
65
+ </ Card >
66
+ ) }
67
+ < Divider />
68
+ </ Box >
69
+ }
70
+ />
75
71
</ Layout >
76
72
) ;
77
73
}
0 commit comments