This commit is contained in:
2026-05-02 20:45:40 +08:00
Unverified
parent bc5d3894cb
commit 955dc9b608
8 changed files with 1636 additions and 2054 deletions
+10 -9
View File
@@ -1,13 +1,13 @@
---
import BaseLayout from "../layouts/BaseLayout.astro";
import { galleryIntro, photos } from "../data/photos";
import { galleryIntro, photoTopics } from "../data/photos";
import { featuredMessage, messages, messagesIntro } from "../data/messages";
import { people, peopleIntro } from "../data/people";
import { site, stats } from "../data/site";
import { timeline, timelineIntro } from "../data/timeline";
const previewTimeline = timeline.slice(0, 4);
const previewPhotos = photos.slice(0, 4);
const previewPhotoTopics = photoTopics.slice(0, 4);
const previewPeople = people.slice(0, 6);
---
@@ -74,16 +74,17 @@ const previewPeople = people.slice(0, 6);
<div class="photo-grid">
{
previewPhotos.map((photo) => (
<article
class="photo-card"
style={photo.image ? `--photo-image: url("${photo.image}")` : ""}
previewPhotoTopics.map((topic) => (
<a
class="photo-card topic-card"
href={`/gallery/${topic.slug}/`}
style={topic.cover ? `--photo-image: url("${topic.cover}")` : ""}
>
<div>
<strong>{photo.title}</strong>
<span>{photo.text}</span>
<strong>{topic.title}</strong>
<span>{topic.text}</span>
</div>
</article>
</a>
))
}
</div>