@@ -141,65 +141,77 @@ export function Contribute() {
141141 }
142142 } }
143143 >
144- < DialogTrigger asChild >
145- < Button
146- variant = "hero"
147- size = "lg"
148- className = "relative isolate w-full sm:w-auto mt-12 h-16 md:h-20 px-10 md:px-14 rounded-full
144+ < div className = "relative mt-12 inline-flex w-full sm:w-auto" >
145+ < DialogTrigger asChild >
146+ < Button
147+ variant = "hero"
148+ size = "lg"
149+ className = "relative isolate w-full sm:w-auto h-16 md:h-20 px-10 md:px-14 rounded-none
149150 text-lg md:text-2xl font-semibold tracking-wide overflow-hidden
150151 shadow-xl ring-1 ring-white/30 dark:ring-white/10
151152 bg-gradient-to-r from-sky-300 via-sky-400 to-blue-600
152153 dark:from-indigo-950 dark:via-slate-900 dark:to-black
153154 hover:shadow-[0_25px_60px_-12px] hover:scale-[1.03] transition-all duration-300 ease-out"
154- >
155- { /* Day gradient shimmer */ }
156- < span
157- aria-hidden
158- className = "pointer-events-none absolute -inset-1 opacity-30 blur-2xl transition-opacity duration-500
159- bg-gradient-to-r from-sky-200 via-blue-300 to-sky-400 dark:opacity-0"
160- />
161- { /* Night nebula glow */ }
162- < span
163- aria-hidden
164- className = "pointer-events-none absolute -inset-1 opacity-0 blur-2xl transition-opacity duration-500
165- dark:opacity-25 dark:bg-gradient-to-br dark:from-indigo-800 dark:via-fuchsia-700/50 dark:to-blue-900"
166- />
167-
168- { /* Day clouds */ }
169- < span
170- aria-hidden
171- className = { `absolute -left-12 top-1/3 w-48 h-24 rounded-full bg-white/60 blur-2xl dark:hidden ${ styles . driftSlow } ` }
172- />
173- < span
174- aria-hidden
175- className = { `absolute left-1/3 -bottom-8 w-64 h-28 rounded-full bg-white/40 blur-3xl dark:hidden ${ styles . driftFast } ` }
176- />
177-
178- { /* Night stars */ }
179- < span aria-hidden className = "hidden dark:block" >
155+ >
156+ { /* Day gradient shimmer */ }
180157 < span
181- className = { `absolute left-6 top-3 w-1 h-1 rounded-full bg-white/90 ${ styles . twinkle } ` }
158+ aria-hidden
159+ className = "pointer-events-none absolute -inset-1 opacity-30 blur-2xl transition-opacity duration-500
160+ bg-gradient-to-r from-sky-200 via-blue-300 to-sky-400 dark:opacity-0"
182161 />
162+ { /* Night nebula glow */ }
183163 < span
184- className = { `absolute left-1/3 top-2 w-1 h-1 rounded-full bg-white/80 ${ styles . twinkleDelay1 } ` }
185- />
186- < span
187- className = { `absolute left-2/3 top-5 w-1 h-1 rounded-full bg-white/70 ${ styles . twinkleDelay2 } ` }
164+ aria-hidden
165+ className = "pointer-events-none absolute -inset-1 opacity-0 blur-2xl transition-opacity duration-500
166+ dark:opacity-25 dark:bg-gradient-to-br dark:from-indigo-800 dark:via-fuchsia-700/50 dark:to-blue-900"
188167 />
168+
169+ { /* Day clouds */ }
189170 < span
190- className = { `absolute right-8 top-4 w-1 h-1 rounded-full bg-white/90 ${ styles . twinkleDelay3 } ` }
171+ aria-hidden
172+ className = { `absolute -left-12 top-1/3 w-48 h-24 rounded-full bg-white/60 blur-2xl dark:hidden ${ styles . driftSlow } ` }
191173 />
192174 < span
193- className = { `absolute right-1/4 bottom-3 w-1 h-1 rounded-full bg-white/80 ${ styles . twinkle } ` }
175+ aria-hidden
176+ className = { `absolute left-1/3 -bottom-8 w-64 h-28 rounded-full bg-white/40 blur-3xl dark:hidden ${ styles . driftFast } ` }
194177 />
195- </ span >
196178
197- < span className = "relative z-10 flex items-center gap-3 text-white" >
198- < Sparkles className = "h-6 w-6 opacity-95" />
199- < span className = { styles . textGlow } > 我要投稿</ span >
200- </ span >
201- </ Button >
202- </ DialogTrigger >
179+ { /* Night stars */ }
180+ < span aria-hidden className = "hidden dark:block" >
181+ < span
182+ className = { `absolute left-6 top-3 w-1 h-1 rounded-full bg-white/90 ${ styles . twinkle } ` }
183+ />
184+ < span
185+ className = { `absolute left-1/3 top-2 w-1 h-1 rounded-full bg-white/80 ${ styles . twinkleDelay1 } ` }
186+ />
187+ < span
188+ className = { `absolute left-2/3 top-5 w-1 h-1 rounded-full bg-white/70 ${ styles . twinkleDelay2 } ` }
189+ />
190+ < span
191+ className = { `absolute right-8 top-4 w-1 h-1 rounded-full bg-white/90 ${ styles . twinkleDelay3 } ` }
192+ />
193+ < span
194+ className = { `absolute right-1/4 bottom-3 w-1 h-1 rounded-full bg-white/80 ${ styles . twinkle } ` }
195+ />
196+ </ span >
197+
198+ < span className = "relative z-10 flex items-center gap-3 text-white" >
199+ < Sparkles className = "h-6 w-6 opacity-95" />
200+ < span className = { styles . textGlow } > 我要投稿</ span >
201+ </ span >
202+ </ Button >
203+ </ DialogTrigger >
204+ < a
205+ href = "https://github.com/InvolutionHell/involutionhell.github.io?tab=contributing-ov-file#%EF%B8%8F-%E6%B7%BB%E5%8A%A0%E6%96%B0%E6%96%87%E7%AB%A0"
206+ target = "_blank"
207+ rel = "noopener noreferrer"
208+ aria-label = "查看投稿指南"
209+ title = "查看投稿指南"
210+ className = "absolute top-0 right-0 flex h-9 w-9 translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border border-white/80 bg-white text-sky-600 shadow-lg ring-1 ring-sky-400/60 transition-transform hover:-translate-y-1/2 hover:translate-x-1/2 hover:scale-105 hover:shadow-xl dark:border-slate-700 dark:bg-slate-900 dark:text-sky-300"
211+ >
212+ < span className = "text-lg font-semibold" > ?</ span >
213+ </ a >
214+ </ div >
203215 < DialogContent className = "sm:max-w-2xl" >
204216 < DialogHeader >
205217 < DialogTitle > 我要投稿</ DialogTitle >
0 commit comments