This commit is contained in:
root
2026-06-07 23:18:53 +08:00
parent ebd3d6a317
commit 934b9a4a23
36 changed files with 2272 additions and 296 deletions

View File

@@ -11,6 +11,7 @@ import Footer from "@/app/components/Footer";
import { cities, type City } from "../data/cities";
import { HOME_CONFIG } from "@/config";
import { apiFetch } from "@/app/lib/api-client";
import { mediaUrl } from "@/app/lib/media";
const {
memberPhotos: fallbackMemberPhotos,
@@ -275,7 +276,7 @@ export default function Home() {
<>
<div className="right-item-header">{meta.header}</div>
<div className="relative h-[calc(100%-38px)] sm:h-[calc(100%-42px)] overflow-hidden">
<img src={item.coverImage} alt={title} className="absolute inset-0 h-full w-full object-cover" />
<img src={mediaUrl(item.coverImage)} alt={title} className="absolute inset-0 h-full w-full object-cover" />
<div className="absolute inset-0 bg-gradient-to-t from-black/75 via-black/35 to-transparent" />
<div className="absolute inset-x-0 bottom-0 p-3 sm:p-4 text-white">
<div className="mb-1 text-xl sm:text-2xl">{meta.icon}</div>
@@ -333,7 +334,7 @@ export default function Home() {
{memberPhotos.map((m) => (
<img
key={m.name}
src={m.photo}
src={mediaUrl(m.photo)}
alt={m.name}
title={m.name}
className="w-6 h-6 sm:w-10 sm:h-10 rounded-full border-2 border-white dark:border-gray-800 shadow-sm object-cover"
@@ -361,7 +362,7 @@ export default function Home() {
{memberPhotos.slice(0, 5).map((m) => (
<img
key={m.name}
src={m.photo}
src={mediaUrl(m.photo)}
alt=""
className="w-4 h-4 sm:w-7 sm:h-7 rounded-full border-2 border-white dark:border-gray-800 shadow-sm object-cover"
/>