Compare commits

...

2 Commits

Author SHA1 Message Date
jinsir d67b67ee21 Merge branch 'main' of http://113.45.67.59:3003/qiuchenfan/news 2025-11-20 16:51:49 +08:00
jinsir 3f72661411 list样式 2025-11-20 16:51:37 +08:00
1 changed files with 5 additions and 5 deletions

View File

@ -14,8 +14,8 @@ const NewsItem: React.FC<NewsProps> = ({ title = '', time = '', url = '' }) => {
onClick={() => url && window.open(url)} // 点击时打开链接
className="flex items-center justify-between hover:text-blue-600 cursor-pointer transition duration-300 ease-in-out"
>
<h3 className="text-lg font-semibold text-gray-600 hover:text-blue-400 transition duration-300 ease-in-out">{title}</h3>
<p className="text-sm text-gray-500">{time}</p>
<h3 className="text-lg font-semibold text-gray-800 hover:text-blue-400 transition duration-300 ease-in-out">{title}</h3>
<p className="text-sm text-gray-800">{time}</p>
</div>
</div>
);
@ -28,7 +28,7 @@ const NewsList: React.FC = () => {
const educationNews = mockNewsData.filter((news) => news.type === "教育");
return (
<div className=" p-18 rounded-2xl w-10/11 mx-auto">
<div className=" pt-10 pb-10 rounded-2xl w-5/6 mx-auto">
{/* 使用 Flexbox 将两个列表放在一行 */}
<div className="flex gap-8">
{/* 科技新闻 */}
@ -38,7 +38,7 @@ const NewsList: React.FC = () => {
<div className="bg-[#1c6cab] text-white px-6 py-3 font-bold text-4xl">
</div>
<button className="text-base text-blue-200 hover:text-blue-400 transition duration-200 pl-6 pr-6">
<button className="text-base text-blue-300 hover:text-blue-400 transition duration-200 pl-6 pr-6">
</button>
</div>
@ -63,7 +63,7 @@ const NewsList: React.FC = () => {
<div className="bg-[#1c6cab] text-white px-6 py-3 font-bold text-4xl">
</div>
<button className="text-base text-blue-200 hover:text-blue-400 transition duration-200 pl-6 pr-6">
<button className="text-base text-blue-300 hover:text-blue-400 transition duration-200 pl-6 pr-6">
</button>
</div>