This commit is contained in:
parent
012715ee81
commit
febf274224
@ -68,10 +68,10 @@ const WeatherSection: FC<WeatherSectionProps> = ({ data }) => {
|
|||||||
{/* 天气预报模块 */}
|
{/* 天气预报模块 */}
|
||||||
<div className="absolute top-64 right-8 w-72 bg-black/50 backdrop-blur-sm rounded-lg p-4 shadow-lg">
|
<div className="absolute top-64 right-8 w-72 bg-black/50 backdrop-blur-sm rounded-lg p-4 shadow-lg">
|
||||||
<div className="text-gray-300 text-sm font-medium mb-3">
|
<div className="text-gray-300 text-sm font-medium mb-3">
|
||||||
未来5天预报
|
未来天气预报
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
{data.forecast.slice(0, 5).map((day, index) => (
|
{data.forecast.slice(0, 6).map((day, index) => (
|
||||||
<div
|
<div
|
||||||
key={day.day || index}
|
key={day.day || index}
|
||||||
className="flex justify-between items-center group transition-all duration-200 hover:bg-white/10 px-2 py-1 rounded-md"
|
className="flex justify-between items-center group transition-all duration-200 hover:bg-white/10 px-2 py-1 rounded-md"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user