This commit is contained in:
eric
2026-03-15 04:25:45 -05:00
parent df12c7af4a
commit bbaa38b3b3
32 changed files with 4312 additions and 152 deletions

View File

@@ -14,29 +14,25 @@ export function TopicCards() {
className={`${styles.topicGrid} animate__animated animate__fadeInUp`}
style={{ animationDelay: "0.2s", animationFillMode: "both" }}
>
{TOPICS.map((t: TopicItem) => {
const { id, href } = t;
{TOPICS.map((topic: TopicItem) => {
const content = (
<>
<span className={styles.topicIcon}>{t.icon}</span>
<span className={styles.topicTitle}>{t.title}</span>
<span className={styles.topicDesc}>{t.desc}</span>
<span className={styles.topicIcon}>{topic.icon}</span>
<span className={styles.topicTitle}>{topic.title}</span>
<span className={styles.topicDesc}>{topic.desc}</span>
</>
);
return href ? (
return (
<Link
key={id}
href={href}
key={topic.id}
href={topic.href}
className={styles.topicCard}
target={href.startsWith("http") ? "_blank" : undefined}
rel={href.startsWith("http") ? "noopener noreferrer" : undefined}
target={topic.href.startsWith("http") ? "_blank" : undefined}
rel={topic.href.startsWith("http") ? "noopener noreferrer" : undefined}
>
{content}
</Link>
) : (
<div key={id} className={styles.topicCard} style={{ cursor: "default", opacity: 0.7 }}>
{content}
</div>
);
})}
</div>

View File

@@ -303,11 +303,11 @@ export function WelcomeBlock({
<div className={styles.loginCardTitle}>会员登录信息</div>
<div className={styles.loginCardRow}>
<span className={styles.loginCardLabel}>网址</span>
<Copyable text="https://qun.hackrobot.cn">
qun.hackrobot.cn
<Copyable text="/community">
/community
</Copyable>
<a
href="https://qun.hackrobot.cn"
href="/community"
target="_blank"
rel="noopener noreferrer"
className={styles.loginCardLink}