You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1017 B

1 month ago
import React from "react";
import type { TechData } from "../types";
interface TechSectionProps {
data: TechData;
}
export function TechSection({ data }: TechSectionProps) {
return (
<section id="tech" className="py-10 md:py-14 border-t border-[rgba(255,255,255,0.02)]">
<div className="max-w-[1200px] mx-auto px-4 md:px-6">
<h2 className="text-lg md:text-xl mb-4 md:mb-[18px] text-white">{data.title}</h2>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3 md:gap-3.5">
{data.items.map((item, idx) => (
<div
key={idx}
className="bg-gradient-to-b from-[rgba(255,255,255,0.02)] to-[rgba(255,255,255,0.01)] p-[18px] rounded-lg border border-[rgba(255,255,255,0.03)]"
>
<h4 className="text-white mb-2 font-semibold">{item.title}</h4>
<p className="text-huilong-muted text-sm">{item.content}</p>
</div>
))}
</div>
</div>
</section>
);
}