@@ -20,8 +20,8 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
20
20
const location = useLocation ( ) ;
21
21
const { notify } = useGlobalInfoStore ( ) ;
22
22
23
- const [ cloudModalOpen , setCloudModalOpen ] = useState ( false ) ;
24
23
const [ sponsorModalOpen , setSponsorModalOpen ] = useState ( false ) ;
24
+ const [ docModalOpen , setDocModalOpen ] = useState ( false ) ;
25
25
26
26
const ossDiscountCode = "MAXUNOSS8" ;
27
27
@@ -96,13 +96,44 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
96
96
</ Tabs >
97
97
< hr />
98
98
< Box sx = { { display : 'flex' , flexDirection : 'column' , textAlign : 'left' } } >
99
- < Button href = 'https://docs.maxun.dev' target = "_blank" rel = "noopener noreferrer" sx = { buttonStyles } startIcon = { < Description /> } >
99
+ < Button
100
+ onClick = { ( ) => setDocModalOpen ( true ) }
101
+ sx = { buttonStyles }
102
+ startIcon = { < Description /> }
103
+ >
100
104
Documentation
101
105
</ Button >
102
- < Button href = "https://www.youtube.com/@MaxunOSS/videos" target = "_blank" rel = "noopener noreferrer" sx = { buttonStyles } startIcon = { < SlowMotionVideo /> } >
103
- Tutorials
104
- </ Button >
105
- < Button onClick = { ( ) => setCloudModalOpen ( true ) } sx = { buttonStyles } startIcon = { < CloudQueue /> } >
106
+ < Modal open = { docModalOpen ?? false } onClose = { ( ) => setDocModalOpen ( false ) } >
107
+ < Box sx = { { position : 'absolute' , top : '50%' , left : '50%' , transform : 'translate(-50%, -50%)' , bgcolor : 'background.paper' , borderRadius : 2 , p : 4 , width : 400 } } >
108
+ < Stack spacing = { 2 } >
109
+ < Button
110
+ href = "https://docs.maxun.dev"
111
+ target = "_blank"
112
+ rel = "noopener noreferrer"
113
+ variant = "outlined"
114
+ startIcon = { < Description /> }
115
+ fullWidth
116
+ >
117
+ Documentation
118
+ </ Button >
119
+ < Button
120
+ href = "https://www.youtube.com/@MaxunOSS/videos"
121
+ target = "_blank"
122
+ rel = "noopener noreferrer"
123
+ variant = "outlined"
124
+ startIcon = { < SlowMotionVideo /> }
125
+ fullWidth
126
+ >
127
+ Video Tutorials
128
+ </ Button >
129
+ </ Stack >
130
+ </ Box >
131
+ </ Modal >
132
+ < Button
133
+ href = 'https://app.maxun.dev/'
134
+ target = "_blank"
135
+ rel = "noopener noreferrer"
136
+ sx = { buttonStyles } startIcon = { < CloudQueue /> } >
106
137
Join Maxun Cloud
107
138
</ Button >
108
139
< Button onClick = { ( ) => setSponsorModalOpen ( true ) } sx = { buttonStyles } startIcon = { < Favorite /> } >
@@ -111,43 +142,6 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
111
142
</ Box >
112
143
</ Box >
113
144
</ Paper >
114
-
115
- < Modal open = { cloudModalOpen } onClose = { ( ) => setCloudModalOpen ( false ) } >
116
- < Box sx = { { position : 'absolute' , top : '50%' , left : '50%' , transform : 'translate(-50%, -50%)' , bgcolor : 'background.paper' , borderRadius : 2 , p : 4 , width : 600 } } >
117
- < Typography variant = "h6" marginBottom = { 4 } >
118
- Join Maxun Cloud
119
- </ Typography >
120
- < Typography variant = "body1" gutterBottom >
121
- Unlock reliable web data extraction. Maxun Cloud ensures you bypass blocks and scale with ease.
122
- </ Typography >
123
- < Typography variant = "body1" gutterBottom >
124
- As a thank-you to open source users, enjoy 8% off your subscription!
125
- </ Typography >
126
- < Typography variant = "body2" color = "text.secondary" sx = { { mt : 2 , mb : 0.5 , fontSize : 13 } } >
127
- Use the discount code
128
- </ Typography >
129
- < TextField
130
- size = "small"
131
- value = { ossDiscountCode }
132
- InputProps = { {
133
- readOnly : true ,
134
- endAdornment : (
135
- < InputAdornment position = "end" >
136
- < IconButton onClick = { copyDiscountCode } edge = "end" aria-label = "copy discount code" size = "small" >
137
- < ContentCopy fontSize = "small" />
138
- </ IconButton >
139
- </ InputAdornment >
140
- ) ,
141
- } }
142
- sx = { { mb : 2 , fontSize : 13 } }
143
- />
144
-
145
- < Button href = "https://app.maxun.dev/login" target = "_blank" fullWidth variant = "outlined" sx = { { mt : 2 } } >
146
- Go to Maxun Cloud
147
- </ Button >
148
- </ Box >
149
- </ Modal >
150
-
151
145
< Modal open = { sponsorModalOpen } onClose = { ( ) => setSponsorModalOpen ( false ) } >
152
146
< Box sx = { { position : 'absolute' , top : '50%' , left : '50%' , transform : 'translate(-50%, -50%)' , bgcolor : 'background.paper' , borderRadius : 2 , p : 4 , width : 600 } } >
153
147
< Typography variant = "h6" marginBottom = { 4 } >
0 commit comments