@@ -118,7 +118,9 @@ const Footer: React.FC = () => {
118
118
< br />
119
119
< p className = "text-sm text-gray-500 dark:text-gray-400" > 再次感谢您的支持和关注!</ p >
120
120
< br />
121
- < img className = "ml-1 w-2/6 " src = "https://qwerty.kaiyi.cool/weChat-group.png" alt = "weChat-group" />
121
+ < div className = "flex justify-center" >
122
+ < img className = "ml-1 w-40 " src = "https://qwerty.kaiyi.cool/weChat-group.png" alt = "weChat-group" />
123
+ </ div >
122
124
< br />
123
125
</ InfoPanel >
124
126
@@ -142,108 +144,119 @@ const Footer: React.FC = () => {
142
144
「Qwerty Learner」!
143
145
</ p >
144
146
< br />
145
- < img className = "ml-1 w-5/12 " src = { redBookCode } alt = "redBook" />
146
- < p className = "text-sm text-gray-500 dark:text-gray-400" > Tips: 从小红书“我”的左上角点击 三 找到 扫一扫</ p >
147
+ < div className = "flex flex-col items-center justify-center" >
148
+ < img className = "ml-1 w-40 " src = { redBookCode } alt = "redBook" />
149
+ < p className = "mt-2 text-sm text-gray-500 dark:text-gray-400" > Tips: 从小红书“我”的左上角点击 三 找到 扫一扫</ p >
150
+ </ div >
147
151
< br />
148
152
</ InfoPanel >
149
153
150
- < footer className = "mb-1 mt-4 flex w-full items-center justify-center gap-2.5 text-sm ease-in" onClick = { ( e ) => e . currentTarget . blur ( ) } >
151
- < a href = "https://github.com/Kaiyiwing/qwerty-learner" target = "_blank" rel = "noreferrer" aria-label = "前往 GitHub 项目主页" >
152
- < IconGithub fontSize = { 15 } className = "text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-100" />
153
- </ a >
154
+ < footer
155
+ className = "fixed bottom-4 flex w-full flex-col items-center justify-center gap-4 text-sm ease-in sm:flex-row"
156
+ onClick = { ( e ) => e . currentTarget . blur ( ) }
157
+ >
158
+ < div className = "flex gap-3" >
159
+ < a href = "https://github.com/Kaiyiwing/qwerty-learner" target = "_blank" rel = "noreferrer" aria-label = "前往 GitHub 项目主页" >
160
+ < IconGithub fontSize = { 15 } className = "text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-100" />
161
+ </ a >
154
162
155
- < button
156
- className = "cursor-pointer"
157
- type = "button"
158
- onClick = { ( e ) => {
159
- handleOpenInfoPanel ( 'redBook' )
160
- e . currentTarget . blur ( )
161
- } }
162
- aria-label = "加入我们的小红书社群"
163
- >
164
- < IconXiaoHongShu fontSize = { 14 } className = "text-gray-500 hover:text-red-500 dark:text-gray-400 dark:hover:text-red-500" />
165
- </ button >
166
-
167
- < button
168
- className = "cursor-pointer focus:outline-none"
169
- type = "button"
170
- onClick = { ( e ) => {
171
- handleOpenInfoPanel ( 'community' )
172
- e . currentTarget . blur ( )
173
- } }
174
- aria-label = "加入我们的微信用户群"
175
- >
176
- < IconWechat2 fontSize = { 16 } className = "text-gray-500 hover:text-green-500 dark:text-gray-400 dark:hover:text-green-500" />
177
- </ button >
178
-
179
- < a href = "https://twitter.com/real_kai42" target = "_blank" title = "x" rel = "noreferrer" >
180
- < IconTwitter fontSize = { 16 } className = "text-gray-500 hover:text-[#1DA1F2] dark:text-gray-400 dark:hover:text-[#1DA1F2]" />
181
- </ a >
182
- < button
183
- className = "cursor-pointer focus:outline-none "
184
- type = "button"
185
- onClick = { ( e ) => {
186
- handleOpenInfoPanel ( 'donate' )
187
- e . currentTarget . blur ( )
188
- } }
189
- aria-label = "考虑捐赠我们"
190
- >
191
- < IconCoffee2 fontSize = { 16 } className = "text-gray-500 hover:text-amber-500 dark:text-gray-400 dark:hover:text-amber-500" />
192
- </ button >
193
-
194
- < button
195
- className = "cursor-pointer focus:outline-none"
196
- type = "button"
197
- onClick = { ( e ) => {
198
- handleOpenInfoPanel ( 'vsc' )
199
- e . currentTarget . blur ( )
200
- } }
201
- aria-label = "使用 Visual Studio Code 插件版 Qwerty Learner"
202
- >
203
- < IconVisualstudiocode fontSize = { 14 } className = "text-gray-500 hover:text-sky-500 dark:text-gray-400 dark:hover:text-sky-500" />
204
- </ button >
205
-
206
- < a
207
-
208
- target = "_blank"
209
- rel = "noreferrer"
210
- onClick = { ( e ) => e . currentTarget . blur ( ) }
211
- aria-label = "发送邮件到 [email protected] "
212
- >
213
- < IconMail fontSize = { 16 } className = "text-gray-500 hover:text-indigo-400 dark:text-gray-400 dark:hover:text-indigo-400" />
214
- </ a >
215
- < a rel = "noreferrer" className = "cursor-pointer focus:outline-none" onClick = { ( ) => navigate ( '/friend-links' ) } aria-label = "查看友链" >
216
- < RiLinksLine fontSize = { 14 } className = "text-gray-500 hover:text-indigo-400 dark:text-gray-400 dark:hover:text-indigo-400" />
217
- </ a >
163
+ < button
164
+ className = "cursor-pointer"
165
+ type = "button"
166
+ onClick = { ( e ) => {
167
+ handleOpenInfoPanel ( 'redBook' )
168
+ e . currentTarget . blur ( )
169
+ } }
170
+ aria-label = "加入我们的小红书社群"
171
+ >
172
+ < IconXiaoHongShu fontSize = { 14 } className = "text-gray-500 hover:text-red-500 dark:text-gray-400 dark:hover:text-red-500" />
173
+ </ button >
218
174
219
- < Tooltip content = "中国大陆镜像" >
220
- < a href = "https://kaiyiwing.gitee.io/qwerty-learner" target = "_self" title = "前往中国大陆镜像" >
221
- < IconFlagChina fontSize = { 16 } />
175
+ < button
176
+ className = "cursor-pointer focus:outline-none"
177
+ type = "button"
178
+ onClick = { ( e ) => {
179
+ handleOpenInfoPanel ( 'community' )
180
+ e . currentTarget . blur ( )
181
+ } }
182
+ aria-label = "加入我们的微信用户群"
183
+ >
184
+ < IconWechat2 fontSize = { 16 } className = "text-gray-500 hover:text-green-500 dark:text-gray-400 dark:hover:text-green-500" />
185
+ </ button >
186
+
187
+ < a href = "https://twitter.com/real_kai42" target = "_blank" title = "x" rel = "noreferrer" >
188
+ < IconTwitter fontSize = { 16 } className = "text-gray-500 hover:text-[#1DA1F2] dark:text-gray-400 dark:hover:text-[#1DA1F2]" />
222
189
</ a >
223
- </ Tooltip >
224
-
225
- < button
226
- className = "cursor-pointer text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"
227
- type = "button"
228
- onClick = { ( e ) => {
229
- handleOpenInfoPanel ( 'donate' )
230
- e . currentTarget . blur ( )
231
- } }
232
- >
233
- @ Qwerty Learner
234
- </ button >
235
-
236
- < a
237
- className = "cursor-pointer text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"
238
- href = "https://beian.miit.gov.cn"
239
- target = "_blank"
240
- rel = "noreferrer"
241
- >
242
- 鲁ICP备2022030649号
243
- </ a >
244
- < span className = "select-none rounded bg-slate-200 px-1 text-xs text-slate-600 dark:bg-slate-800 dark:text-slate-400" >
245
- Build < span className = "select-all" > { LATEST_COMMIT_HASH } </ span >
246
- </ span >
190
+ < button
191
+ className = "cursor-pointer focus:outline-none "
192
+ type = "button"
193
+ onClick = { ( e ) => {
194
+ handleOpenInfoPanel ( 'donate' )
195
+ e . currentTarget . blur ( )
196
+ } }
197
+ aria-label = "考虑捐赠我们"
198
+ >
199
+ < IconCoffee2 fontSize = { 16 } className = "text-gray-500 hover:text-amber-500 dark:text-gray-400 dark:hover:text-amber-500" />
200
+ </ button >
201
+
202
+ < button
203
+ className = "cursor-pointer focus:outline-none"
204
+ type = "button"
205
+ onClick = { ( e ) => {
206
+ handleOpenInfoPanel ( 'vsc' )
207
+ e . currentTarget . blur ( )
208
+ } }
209
+ aria-label = "使用 Visual Studio Code 插件版 Qwerty Learner"
210
+ >
211
+ < IconVisualstudiocode fontSize = { 14 } className = "text-gray-500 hover:text-sky-500 dark:text-gray-400 dark:hover:text-sky-500" />
212
+ </ button >
213
+
214
+ < a
215
+
216
+ target = "_blank"
217
+ rel = "noreferrer"
218
+ onClick = { ( e ) => e . currentTarget . blur ( ) }
219
+ aria-label = "发送邮件到 [email protected] "
220
+ >
221
+ < IconMail fontSize = { 16 } className = "text-gray-500 hover:text-indigo-400 dark:text-gray-400 dark:hover:text-indigo-400" />
222
+ </ a >
223
+ < a rel = "noreferrer" className = "cursor-pointer focus:outline-none" onClick = { ( ) => navigate ( '/friend-links' ) } aria-label = "查看友链" >
224
+ < RiLinksLine fontSize = { 14 } className = "text-gray-500 hover:text-indigo-400 dark:text-gray-400 dark:hover:text-indigo-400" />
225
+ </ a >
226
+
227
+ < Tooltip content = "中国大陆镜像" >
228
+ < a href = "https://kaiyiwing.gitee.io/qwerty-learner" target = "_self" title = "前往中国大陆镜像" >
229
+ < IconFlagChina fontSize = { 16 } />
230
+ </ a >
231
+ </ Tooltip >
232
+ </ div >
233
+
234
+ < div className = "flex flex-col items-center justify-center gap-x-2 gap-y-1 sm:flex-row" >
235
+ < div className = "flex items-center gap-x-2" >
236
+ < button
237
+ className = "cursor-pointer text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"
238
+ type = "button"
239
+ onClick = { ( e ) => {
240
+ handleOpenInfoPanel ( 'donate' )
241
+ e . currentTarget . blur ( )
242
+ } }
243
+ >
244
+ @ Qwerty Learner
245
+ </ button >
246
+ < span className = "select-none rounded bg-slate-200 px-1 text-xs text-slate-600 dark:bg-slate-800 dark:text-slate-400" >
247
+ Build < span className = "select-all" > { LATEST_COMMIT_HASH } </ span >
248
+ </ span >
249
+ </ div >
250
+
251
+ < a
252
+ className = "cursor-pointer text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"
253
+ href = "https://beian.miit.gov.cn"
254
+ target = "_blank"
255
+ rel = "noreferrer"
256
+ >
257
+ 鲁ICP备2022030649号
258
+ </ a >
259
+ </ div >
247
260
</ footer >
248
261
</ >
249
262
)
0 commit comments