阴影修改
This commit is contained in:
parent
826805a0cc
commit
5d68fd09f8
|
|
@ -19,11 +19,11 @@ const NewsItem: React.FC<NewsProps> = ({ title = '', time = '', url = '' }) => {
|
||||||
{/* 标题部分:左侧 */}
|
{/* 标题部分:左侧 */}
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<div className="w-2 h-2 bg-white rounded-full mr-2"></div>
|
<div className="w-2 h-2 bg-white rounded-full mr-2"></div>
|
||||||
<h3 className="text-lg font-semibold text-white hover:text-blue-600">{title}</h3>
|
<h3 className="text-xl font-semibold text-white hover:text-blue-600">{title}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 时间部分:右侧 */}
|
{/* 时间部分:右侧 */}
|
||||||
<p className="text-sm text-white hover:text-blue-600 text-right">{time}</p>
|
<p className="text-xl text-white hover:text-blue-600 text-right">{time}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ const NewsList: React.FC = () => {
|
||||||
const educationNews = mockNewsData.filter((news) => news.type === "教育");
|
const educationNews = mockNewsData.filter((news) => news.type === "教育");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-gray-50 p-8 rounded-2xl shadow-xl w-4/5 mx-auto">
|
<div className=" p-8 rounded-2xl w-4/5 mx-auto">
|
||||||
{/* 使用 Flexbox 将两个列表放在一行 */}
|
{/* 使用 Flexbox 将两个列表放在一行 */}
|
||||||
<div className="flex gap-8">
|
<div className="flex gap-8">
|
||||||
{/* 科技新闻 */}
|
{/* 科技新闻 */}
|
||||||
|
|
|
||||||
|
|
@ -3,19 +3,20 @@ import List from '@/components/list/List';
|
||||||
|
|
||||||
export default function GrassrootsDynamics() {
|
export default function GrassrootsDynamics() {
|
||||||
return (
|
return (
|
||||||
<div className="flex rounded-2xl mx-auto w-4/5 h-140 mt-10 p-10">
|
<div className="flex rounded-2xl mx-auto w-4/5 h-140 pt-20 mb-20 ">
|
||||||
<div className="w-2/5 p-6 flex flex-col items-center justify-center relative">
|
<div className="w-2/5 p-6 flex flex-col items-center justify-center relative">
|
||||||
<div >
|
<div className="w-140 ">
|
||||||
<img
|
<img
|
||||||
src="/images/carousel-1.jpg"
|
src="/images/carousel-1.jpg"
|
||||||
alt="基层动态"
|
alt="基层动态"
|
||||||
className="w-full h-full "
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 右边列表 */}
|
{/* 右边列表 */}
|
||||||
<div className="w-3/5 p-6 flex flex-col bg-[#0e93df] text-white">
|
<div className="w-3/5 p-6 flex flex-col bg-[#0e93df] rounded-2xl h-130
|
||||||
|
">
|
||||||
<List />
|
<List />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue