feat: redesign landing page with brand system and section blocks
Build & Push Docker Image / build (push) Has been cancelled
Build & Push Docker Image / build (push) Has been cancelled
Refresh the homepage around new hero/services/roadmap sections, shared design tokens, and updated brand assets. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+29
-29
@@ -1,38 +1,38 @@
|
||||
import type { Metadata } from "next";
|
||||
import ContentSection from "@/components/content-1";
|
||||
import Features from "@/components/features-12";
|
||||
import { FeaturedPostsGrid } from "@/components/featured-posts-grid";
|
||||
import { getPosts } from "@/lib/wp-api";
|
||||
import HeroSection from "@/components/hero-section";
|
||||
import { HeroReui } from "@/components/hero-reui";
|
||||
import { Services14 } from "@/components/services-14";
|
||||
import { Hero50 } from "@/components/hero-50";
|
||||
import { Feature197 } from "@/components/feature-197";
|
||||
import { Blog8 } from "@/components/blog-8";
|
||||
import { Cta10 } from "@/components/cta-10";
|
||||
import { Cta16 } from "@/components/cta-16";
|
||||
import { Logos3 } from "@/components/logos-3";
|
||||
import { Roadmap } from "@/components/roadmap";
|
||||
import { Projects17 } from "@/components/projects-17";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
description:
|
||||
"فیپ؛ راهکارهای یکپارچه و هوشمند برای اتصال سیستمها، اتوماسیون فرآیندها و بهرهوری کسبوکار.",
|
||||
"امین رایان؛ شرکت طراحی سایت و سئو در اصفهان. طراحی وبسایت حرفهای و بهینهسازی موتورهای جستجو.",
|
||||
};
|
||||
|
||||
const FEATURED_CATEGORY_ID = 3;
|
||||
const FEATURED_POSTS_COUNT = 4;
|
||||
|
||||
export default async function Home() {
|
||||
let featuredPosts: Awaited<ReturnType<typeof getPosts>>["posts"] = [];
|
||||
try {
|
||||
const result = await getPosts({
|
||||
categoryId: FEATURED_CATEGORY_ID,
|
||||
perPage: FEATURED_POSTS_COUNT,
|
||||
orderby: "date",
|
||||
order: "desc",
|
||||
});
|
||||
featuredPosts = result?.posts ?? [];
|
||||
} catch {
|
||||
featuredPosts = [];
|
||||
}
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<HeroSection />
|
||||
<Features />
|
||||
<ContentSection />
|
||||
<FeaturedPostsGrid posts={featuredPosts} />
|
||||
</>
|
||||
<main className="relative overflow-x-clip">
|
||||
<HeroReui />
|
||||
<Services14 />
|
||||
|
||||
<Hero50 />
|
||||
<Cta16 />
|
||||
|
||||
<Feature197 />
|
||||
<Logos3 />
|
||||
|
||||
<Roadmap />
|
||||
|
||||
<Projects17 />
|
||||
<Blog8 />
|
||||
|
||||
<Cta10 />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user