File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1- import { Button } from "../../components/ui/button" ;
2- import { Card , CardContent } from "../../components/ui/card" ;
1+ import { Button } from "@/components/ui/button" ;
32import {
43 ExternalLink ,
54 MessageCircle ,
Original file line number Diff line number Diff line change 11import React from "react" ;
22import { Users , Zap , Heart } from "lucide-react" ;
33import { Github as GithubIcon } from "./icons/Github" ;
4+ import { cn } from "@/lib/utils" ;
45
56export function Features ( ) {
6- const features = [
7+ const features : {
8+ icon : React . ReactElement < { className ?: string } > ;
9+ title : string ;
10+ description : string ;
11+ highlight : string ;
12+ color : string ;
13+ } [ ] = [
714 {
815 icon : < GithubIcon className = "h-8 w-8 text-sky-500" /> ,
916 title : "完全开源" ,
@@ -64,8 +71,8 @@ export function Features() {
6471 < div className = "w-16 h-16 border border-[var(--foreground)] flex items-center justify-center group-hover:bg-[var(--foreground)] group-hover:text-[var(--background)] transition-all duration-300" >
6572 { /* Simplified icon styling */ }
6673 < div className = "p-0 text-[var(--foreground)] group-hover:text-[var(--background)]" >
67- { React . cloneElement ( feature . icon as React . ReactElement , {
68- className : "h-8 w-8" ,
74+ { React . cloneElement ( feature . icon , {
75+ className : cn ( "h-8 w-8" , feature . icon . props . className ) ,
6976 } ) }
7077 </ div >
7178 </ div >
You can’t perform that action at this time.
0 commit comments