59 lines
1.7 KiB
JavaScript
59 lines
1.7 KiB
JavaScript
import Faqs from "@/components/homes/home-15/Faqs";
|
|
import Gallery from "@/components/homes/home-15/Gallery";
|
|
import Features from "@/components/homes/home-15/Features";
|
|
import Hero from "@/components/homes/home-15/Hero";
|
|
import Process from "@/components/homes/home-15/Process";
|
|
import React from "react";
|
|
import { getSiteSettings } from "@/utlis/siteSettings";
|
|
|
|
export const revalidate = 3600;
|
|
|
|
export async function generateMetadata() {
|
|
const siteUrl = process.env.SITE_URL;
|
|
const data = await getSiteSettings(siteUrl);
|
|
const siteTitle = data.site_title || "";
|
|
const siteDescription = data.site_description || "";
|
|
const siteName = data.site_name || "";
|
|
const siteNameInPageTitles = data.site_name_in_page_titles || "None";
|
|
let title = siteTitle;
|
|
if (siteName && siteTitle) {
|
|
if (siteNameInPageTitles === "After") {
|
|
title = `${siteTitle} - ${siteName}`;
|
|
} else if (siteNameInPageTitles === "Before") {
|
|
title = `${siteName} - ${siteTitle}`;
|
|
}
|
|
}
|
|
return {
|
|
title,
|
|
description: siteDescription,
|
|
};
|
|
}
|
|
|
|
export default function Page() {
|
|
return (
|
|
<>
|
|
<div className="grow shrink-0">
|
|
<>
|
|
<section className="wrapper bg-[#21262c] opacity-100">
|
|
<Hero />
|
|
{/* /.swiper-container */}
|
|
</section>
|
|
<section className="wrapper !bg-[#ffffff] ">
|
|
<div className="container py-[4.5rem] xl:!py-24 lg:!py-24 md:!py-24">
|
|
<Features />
|
|
<Process />
|
|
{/*/.row */}
|
|
</div>
|
|
{/* /.container */}
|
|
</section>
|
|
{/* /section */}
|
|
|
|
{/* Gallery 单独渲染,保证背景色全屏 */}
|
|
<Gallery />
|
|
<Faqs />
|
|
</>
|
|
</div>{" "}
|
|
</>
|
|
);
|
|
}
|