@@ -162,24 +162,31 @@ function TagsGroupBar() {
162
162
* @returns
163
163
*/
164
164
function GroupMenu ( ) {
165
+ const url_1 = siteConfig ( 'HEO_HERO_CATEGORY_1' , { } , CONFIG ) ?. url || ''
166
+ const title_1 = siteConfig ( 'HEO_HERO_CATEGORY_1' , { } , CONFIG ) ?. title || ''
167
+ const url_2 = siteConfig ( 'HEO_HERO_CATEGORY_2' , { } , CONFIG ) ?. url || ''
168
+ const title_2 = siteConfig ( 'HEO_HERO_CATEGORY_2' , { } , CONFIG ) ?. title || ''
169
+ const url_3 = siteConfig ( 'HEO_HERO_CATEGORY_3' , { } , CONFIG ) ?. url || ''
170
+ const title_3 = siteConfig ( 'HEO_HERO_CATEGORY_3' , { } , CONFIG ) ?. title || ''
171
+
165
172
return (
166
173
< div className = 'h-[165px] select-none xl:h-20 flex flex-col justify-between xl:space-y-0 xl:flex-row w-28 lg:w-48 xl:w-full xl:flex-nowrap xl:space-x-3' >
167
174
< Link
168
- href = { siteConfig ( 'HEO_HERO_CATEGORY_1' , null , CONFIG ) ?. url }
175
+ href = { url_1 }
169
176
className = 'group relative overflow-hidden bg-gradient-to-r from-blue-500 to-blue-400 flex h-20 justify-start items-center text-white rounded-xl xl:hover:w-1/2 xl:w-1/3 transition-all duration-500 ease-in' >
170
177
< div className = 'font-bold lg:text-lg pl-5 relative -mt-2' >
171
- { siteConfig ( 'HEO_HERO_CATEGORY_1' , null , CONFIG ) ?. title }
178
+ { title_1 }
172
179
< span className = 'absolute -bottom-0.5 left-5 w-5 h-0.5 bg-white rounded-full' > </ span >
173
180
</ div >
174
181
< div className = 'hidden lg:block absolute right-6 duration-700 ease-in-out transition-all scale-[2] translate-y-6 rotate-12 opacity-20 group-hover:opacity-80 group-hover:scale-100 group-hover:translate-y-0 group-hover:rotate-0' >
175
182
< i className = 'fa-solid fa-star text-4xl' > </ i >
176
183
</ div >
177
184
</ Link >
178
185
< Link
179
- href = { siteConfig ( 'HEO_HERO_CATEGORY_2' , null , CONFIG ) ?. url }
186
+ href = { url_2 }
180
187
className = 'group relative overflow-hidden bg-gradient-to-r from-red-500 to-yellow-500 flex h-20 justify-start items-center text-white rounded-xl xl:hover:w-1/2 xl:w-1/3 transition-all duration-500 ease-in' >
181
188
< div className = 'font-bold lg:text-lg pl-5 relative -mt-2' >
182
- { siteConfig ( 'HEO_HERO_CATEGORY_2' , null , CONFIG ) ?. title }
189
+ { title_2 }
183
190
< span className = 'absolute -bottom-0.5 left-5 w-5 h-0.5 bg-white rounded-full' > </ span >
184
191
</ div >
185
192
< div className = 'hidden lg:block absolute right-6 duration-700 ease-in-out transition-all scale-[2] translate-y-6 rotate-12 opacity-20 group-hover:opacity-80 group-hover:scale-100 group-hover:translate-y-0 group-hover:rotate-0' >
@@ -188,10 +195,10 @@ function GroupMenu() {
188
195
</ Link >
189
196
{ /* 第三个标签在小屏上不显示 */ }
190
197
< Link
191
- href = { siteConfig ( 'HEO_HERO_CATEGORY_3' , null , CONFIG ) ?. url }
198
+ href = { url_3 }
192
199
className = 'group relative overflow-hidden bg-gradient-to-r from-teal-300 to-cyan-300 hidden h-20 xl:flex justify-start items-center text-white rounded-xl xl:hover:w-1/2 xl:w-1/3 transition-all duration-500 ease-in' >
193
200
< div className = 'font-bold text-lg pl-5 relative -mt-2' >
194
- { siteConfig ( 'HEO_HERO_CATEGORY_3' , null , CONFIG ) ?. title }
201
+ { title_3 }
195
202
< span className = 'absolute -bottom-0.5 left-5 w-5 h-0.5 bg-white rounded-full' > </ span >
196
203
</ div >
197
204
< div className = 'absolute right-6 duration-700 ease-in-out transition-all scale-[2] translate-y-6 rotate-12 opacity-20 group-hover:opacity-80 group-hover:scale-100 group-hover:translate-y-0 group-hover:rotate-0' >
0 commit comments