Compare commits
2 Commits
68f962b66c
...
d67b67ee21
| Author | SHA1 | Date |
|---|---|---|
|
|
d67b67ee21 | |
|
|
3f72661411 |
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue