Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/app/(marketing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { LandingFeaturesSection2 } from "@/components/landing/LandingFeatureSection2";
import { LandingFeaturesSection1 } from "@/components/landing/LandingFeaturesSection1";
import { LandingHeroSection } from "@/components/landing/LandingHeroSection";

Expand All @@ -8,6 +9,7 @@ export default function Home() {
<>
<LandingHeroSection />
<LandingFeaturesSection1 />
<LandingFeaturesSection2 />
</>
);
}
2 changes: 1 addition & 1 deletion src/components/landing/LandingFeatureGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function LandingFeatureGrid({ className }: LandingFeatureGridProps) {
const setActiveFeature = useFeaturePreviewStore((state) => state.setActiveFeature);

return (
<div className={cn("grid grid-cols-1 gap-3", "md:grid-cols-2 md:gap-8", className)}>
<div className={cn("grid grid-cols-1 gap-3", "md:grid-cols-2 md:gap-4", className)}>
{FEATURES.map((feature) => (
<FeatureButton
key={feature.title}
Expand Down
23 changes: 23 additions & 0 deletions src/components/landing/LandingFeatureSection2.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use client";

import { LandingFeatureText } from "@/components/landing/LandingFeatureText";
import { LandingLayoutPreview } from "@/components/landing/LandingLayoutPreview";
import { cn } from "@/lib/utils";
import type { LandingFeaturesSection2Props } from "@/types/landing";

export function LandingFeaturesSection2({ className }: LandingFeaturesSection2Props) {
return (
<section
id="landing-features2"
aria-labelledby="landing-features2-title"
className={cn(
"grid gap-20",
"md:grid-cols-[minmax(0,1.1fr)_minmax(0,0.9fr)] md:items-center md:gap-35",
className,
)}
>
<LandingFeatureText className="md:order-2" />
<LandingLayoutPreview className="md:order-1" />
</section>
);
}
19 changes: 19 additions & 0 deletions src/components/landing/LandingFeatureText.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use client";

import { cn } from "@/lib/utils";
import type { LandingFeatureTextProps } from "@/types/landing";

export function LandingFeatureText({ className }: LandingFeatureTextProps) {
return (
<div className={cn("md:space-y-8", className)}>
<h2 id="landing-features2-title" className="t-30-b md:t-40-b text-[var(--color-gray-900)]">
๋ชจ๋“ˆ์„
<br />
์ž์œ ๋กญ๊ฒŒ ๋ฐฐ์น˜ํ•˜์„ธ์š”
</h2>
<p className="t-12-m md:t-16-m text-[var(--color-gray-600)]">
๋“œ๋ž˜๊ทธ ์•ค ๋“œ๋กญ์œผ๋กœ ๋‚˜๋งŒ์˜ ๋Œ€์‹œ๋ณด๋“œ๋ฅผ ์™„์„ฑํ•˜์„ธ์š”.
</p>
</div>
);
}
23 changes: 23 additions & 0 deletions src/components/landing/LandingLayoutPreview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use client";

import { cn } from "@/lib/utils";
import type { LandingLayoutPreviewProps } from "@/types/landing";
import Image from "next/image";

export function LandingLayoutPreview({ className }: LandingLayoutPreviewProps) {
return (
<div className={cn("relative", className)}>
<div className="relative mx-auto max-w-full rounded-[32px] bg-[var(--color-gray-50)] md:max-w-[54.225rem]">
<div className="relative aspect-[16/10] w-full overflow-hidden rounded-3xl bg-white shadow-[0_18px_60px_rgba(0,0,0,0.12)]">
<Image
src="/images/layout-dnd.png"
alt="์—ฌ๋Ÿฌ ๋ชจ๋“ˆ์„ ์ž์œ ๋กญ๊ฒŒ ๋ฐฐ์น˜ํ•œ ๋Œ€์‹œ๋ณด๋“œ ๋ ˆ์ด์•„์›ƒ ์˜ˆ์‹œ"
fill
className="object-cover"
sizes="(min-width: 1024px) 480px, 100vw"
/>
</div>
</div>
</div>
);
}
10 changes: 10 additions & 0 deletions src/types/landing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,13 @@ export interface FeatureItem {
iconName: FeatureIconName;
previewImageSrc: string;
}

/* -------------------------------------------------
๊ธฐ๋Šฅ ์†Œ๊ฐœ ์„น์…˜ 2
------------------------------------------------- */

export type LandingFeaturesSection2Props = WithClassName;

export type LandingLayoutPreviewProps = WithClassName;

export type LandingFeatureTextProps = WithClassName;