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.
 
 
 

28 lines
920 B

import React from "react";
import type { NewsData } from "../types";
interface NewsSectionProps {
data: NewsData;
}
export function NewsSection({ data }: NewsSectionProps) {
return (
<section id="news" 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="space-y-3">
{data.items.map((item, idx) => (
<article key={idx} className="bg-huilong-card p-3.5 rounded-lg">
<h4 className="text-white mb-2 font-semibold">{item.title}</h4>
<p className="text-huilong-muted text-sm">
{item.content} <span className="text-huilong-muted/70">{item.meta}</span>
</p>
</article>
))}
</div>
</div>
</section>
);
}