39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
---
|
|
import MainLayout from '../../layouts/MainLayout.astro';
|
|
import LandingHero from '../../components/LandingHero-1.astro';
|
|
import HeroBackground from '../../components/HeroBackground.astro';
|
|
import FeaturedGallery from '../../components/FeaturedGallery.astro';
|
|
import FeaturedWorkScroll from '../../components/FeaturedWorkScroll.astro';
|
|
import siteConfig from '../../../site.config.mjs'; // 引入配置以获取名字
|
|
const base = import.meta.env.BASE_URL; // 确保获取了 base 路径
|
|
|
|
const owner = siteConfig.owner;
|
|
|
|
---
|
|
|
|
<MainLayout lang="zh">
|
|
<section class="relative min-h-screen flex flex-col justify-center py-20 md:py-16 overflow-hidden">
|
|
|
|
<HeroBackground />
|
|
|
|
<LandingHero
|
|
title={`${owner} 摄影作品`}
|
|
subtitle="记录光影与瞬间的展示空间"
|
|
btnText="浏览作品集"
|
|
// 修改前: btnLink={`${base}/zh/collections`}
|
|
// 修改后: 加一个 /
|
|
btnLink={`${base}/zh/collections`}
|
|
/>
|
|
|
|
<div class="relative z-20 mt-12">
|
|
<FeaturedWorkScroll />
|
|
</div>
|
|
</section>
|
|
|
|
<section class="featured-section py-20">
|
|
<FeaturedGallery
|
|
title="精选作品"
|
|
subtitle="从不同旅程中精选的最佳瞬间"
|
|
/>
|
|
</section>
|
|
</MainLayout> |