@@ -8,6 +8,7 @@ import { motion } from "framer-motion";
88import { GlowOrb } from "@/components/GlowOrb" ;
99import { SectionReveal } from "@/components/SectionReveal" ;
1010import { SuperEllipseCard } from "@/components/SuperEllipseCard" ;
11+ import { MODULES } from "@/lib/features/modules" ;
1112
1213/* ---------- 数据 ---------- */
1314
@@ -32,45 +33,6 @@ const PHILOSOPHY = [
3233 } ,
3334] ;
3435
35- const FEATURES = [
36- {
37- name : "深潜" ,
38- origin : "番茄钟" ,
39- desc : "切断海面噪音,潜入零干扰的心流深海。" ,
40- color : "var(--kb-focus-blue)" ,
41- } ,
42- {
43- name : "结礁" ,
44- origin : "智能笔记" ,
45- desc : "将漂浮的碎片,沉淀为坚实的认知暗礁。" ,
46- color : "var(--kb-brand-400)" ,
47- } ,
48- {
49- name : "回声定位" ,
50- origin : "课堂助手" ,
51- desc : "捕捉深海回声,打捞暗流中的知识暗物质。" ,
52- color : "var(--kb-cyber-cyan)" ,
53- } ,
54- {
55- name : "反衰减呼吸" ,
56- origin : "闪卡复习" ,
57- desc : "规律吐纳,让记忆在深海高压下依然鲜活。" ,
58- color : "var(--kb-moss-green)" ,
59- } ,
60- {
61- name : "浮出水面" ,
62- origin : "费曼学习法" ,
63- desc : "向世界呼出你的理解。雾散了,轮廓就清晰了。" ,
64- color : "var(--kb-amber)" ,
65- } ,
66- {
67- name : "萤火海沟" ,
68- origin : "灵感空间" ,
69- desc : "安放微光,它们终将照亮整片深域。" ,
70- color : "var(--kb-accent-400)" ,
71- } ,
72- ] ;
73-
7436/* ---------- 页面 ---------- */
7537
7638export default function HomePage ( ) {
@@ -217,11 +179,11 @@ export default function HomePage() {
217179 </ SectionReveal >
218180
219181 < div className = "grid sm:grid-cols-2 lg:grid-cols-3 gap-5" >
220- { FEATURES . map ( ( feat , i ) => (
182+ { MODULES . map ( ( feat , i ) => (
221183 < SectionReveal key = { feat . name } delay = { i * 0.08 } >
222- < motion . div
223- whileHover = { { y : - 5 , transition : { duration : 0.35 , ease : [ 0.22 , 1 , 0.36 , 1 ] } } }
224- className = "group relative rounded-3xl p-7 h-full cursor-default "
184+ < Link
185+ href = { feat . href }
186+ className = "group relative block rounded-3xl p-7 h-full cursor-pointer transition-all duration-500 hover:-translate-y-[5px] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-kb-brand "
225187 style = { {
226188 background : "var(--kb-bg-elevated)" ,
227189 border : "1px solid var(--kb-glass-border)" ,
@@ -245,7 +207,7 @@ export default function HomePage() {
245207 className = "absolute bottom-0 left-8 right-8 h-px opacity-0 group-hover:opacity-100 transition-opacity duration-500"
246208 style = { { background : `linear-gradient(90deg, transparent, ${ feat . color } 66, transparent)` } }
247209 />
248- </ motion . div >
210+ </ Link >
249211 </ SectionReveal >
250212 ) ) }
251213 </ div >
0 commit comments