|
1 | 1 | import Link from "next/link"; |
2 | 2 | import { Suspense } from "react"; |
| 3 | +import { ArrowRight } from "lucide-react"; |
3 | 4 | import { getTranslations } from "next-intl/server"; |
4 | 5 | import ZoteroFeedLazy from "@/app/components/ZoteroFeedLazy"; |
5 | 6 | import { Contribute } from "@/app/components/Contribute"; |
@@ -163,31 +164,33 @@ export async function Hero() { |
163 | 164 | <li |
164 | 165 | key={s.title} |
165 | 166 | className={cn( |
166 | | - "group border-b border-[var(--foreground)] md:border-r last:border-r-0 h-full", |
| 167 | + "group border-b border-[var(--foreground)] md:border-r last:border-r-0", |
167 | 168 | idx === 2 && "md:border-r-0", |
168 | 169 | )} |
169 | 170 | > |
170 | 171 | <a |
171 | 172 | href={s.href} |
172 | 173 | target="_blank" |
173 | 174 | rel="noopener noreferrer" |
174 | | - className="p-8 hover:bg-neutral-100 dark:hover:bg-neutral-900 transition-colors h-full flex flex-col hard-shadow-hover" |
| 175 | + className="flex items-baseline gap-4 p-6 hover:bg-neutral-100 dark:hover:bg-neutral-900 transition-colors hard-shadow-hover" |
175 | 176 | data-umami-event="community_click" |
176 | 177 | data-umami-event-target={s.key} |
177 | 178 | data-umami-event-location="hero" |
178 | 179 | > |
179 | | - <div className="font-mono text-[10px] text-neutral-400 mb-4"> |
| 180 | + <span className="font-mono text-[10px] text-neutral-400 pt-1 shrink-0"> |
180 | 181 | NET-0{idx + 1} |
181 | | - </div> |
182 | | - <div className="text-2xl font-serif font-bold mb-2 uppercase text-[var(--foreground)]"> |
183 | | - {s.title} |
184 | | - </div> |
185 | | - <p className="text-sm font-body text-neutral-600 dark:text-neutral-400 flex-1 leading-relaxed"> |
186 | | - {s.desc} |
187 | | - </p> |
188 | | - <div className="mt-6 font-sans text-[10px] uppercase tracking-widest font-bold text-[var(--foreground)] group-hover:text-[#CC0000]"> |
189 | | - Visit → |
190 | | - </div> |
| 182 | + </span> |
| 183 | + <span className="min-w-0"> |
| 184 | + <span className="flex items-center gap-2 mb-1.5"> |
| 185 | + <span className="text-xl font-serif font-bold uppercase text-[var(--foreground)]"> |
| 186 | + {s.title} |
| 187 | + </span> |
| 188 | + <ArrowRight className="h-4 w-4 shrink-0 text-neutral-400 group-hover:translate-x-1 group-hover:text-[#CC0000] transition-all" /> |
| 189 | + </span> |
| 190 | + <span className="block text-sm font-body text-neutral-600 dark:text-neutral-300 leading-relaxed"> |
| 191 | + {s.desc} |
| 192 | + </span> |
| 193 | + </span> |
191 | 194 | </a> |
192 | 195 | </li> |
193 | 196 | ))} |
|
0 commit comments