[feat] report 페이지 추가
This commit is contained in:
1 parent
af58b96aff
commit
675cfcab8d
126 files changed
+3642
-1
No files matched your search
@@ -0,0 +1,30 @@
|
||||
import { OtherChannelRow } from "@/components/channel/OtherChannelRow";
|
||||
import type { OtherChannel } from "@/types/otherChannels";
|
||||
|
||||
export type OtherChannelsListProps = {
|
||||
channels: OtherChannel[];
|
||||
};
|
||||
|
||||
export function OtherChannelsList({ channels }: OtherChannelsListProps) {
|
||||
if (channels.length === 0) return null;
|
||||
|
||||
return (
|
||||
<div className="rounded-2xl bg-white border border-neutral-20 shadow-sm overflow-hidden mb-8 card-shadow animate-fade-in-up">
|
||||
<div className="px-6 py-4 border-b border-neutral-20">
|
||||
<h3 className="font-serif headline-24 text-navy-900 break-keep">기타 채널 현황</h3>
|
||||
</div>
|
||||
<div className="divide-y divide-neutral-20">
|
||||
{channels.map((ch, i) => (
|
||||
<OtherChannelRow
|
||||
key={ch.name}
|
||||
name={ch.name}
|
||||
details={ch.details}
|
||||
status={ch.status}
|
||||
url={ch.url}
|
||||
animationDelayMs={i * 50}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
import AlertCircleIcon from "@/assets/icons/alert-circle.svg?react";
|
||||
import CheckCircleIcon from "@/assets/report/check-circle.svg?react";
|
||||
import GlobeIcon from "@/assets/report/globe.svg?react";
|
||||
import { PixelInstallCard } from "@/components/card/PixelInstallCard";
|
||||
import type { WebsiteAudit } from "@/types/otherChannels";
|
||||
|
||||
export type WebsiteTechAuditBlockProps = {
|
||||
website: WebsiteAudit;
|
||||
};
|
||||
|
||||
export function WebsiteTechAuditBlock({ website }: WebsiteTechAuditBlockProps) {
|
||||
return (
|
||||
<div className="rounded-2xl bg-white border border-neutral-20 shadow-sm p-6 card-shadow animate-fade-in-up animation-delay-200">
|
||||
<div className="flex items-center gap-2 mb-6">
|
||||
<GlobeIcon width={20} height={20} className="text-violet-700 shrink-0 [&_svg]:block" aria-hidden />
|
||||
<h3 className="font-serif headline-24 text-navy-900 break-keep">웹사이트 기술 진단</h3>
|
||||
</div>
|
||||
|
||||
<div className="rounded-xl bg-neutral-10 p-4 mb-6">
|
||||
<p className="body-14-medium text-navy-900 mb-2 break-keep">
|
||||
기본 도메인: {website.primaryDomain}
|
||||
</p>
|
||||
{website.additionalDomains.length > 0 ? (
|
||||
<div className="mt-2 space-y-1">
|
||||
{website.additionalDomains.map((d) => (
|
||||
<p key={d.domain} className="body-14 text-neutral-70 break-keep">
|
||||
{d.domain} — <span className="text-neutral-60">{d.purpose}</span>
|
||||
</p>
|
||||
))}
|
||||
</div>
|
||||
) : null}
|
||||
<p className="body-14 text-neutral-60 mt-2 break-keep">
|
||||
주요 CTA: <span className="body-14-medium text-navy-900">{website.mainCTA}</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mb-6">
|
||||
<p className="body-14-medium text-neutral-80 mb-3 break-keep">트래킹 픽셀 설치 현황</p>
|
||||
<div className="grid grid-cols-2 md:grid-cols-3 gap-3">
|
||||
{website.trackingPixels.map((pixel) => (
|
||||
<PixelInstallCard
|
||||
key={pixel.name}
|
||||
name={pixel.name}
|
||||
installed={pixel.installed}
|
||||
details={pixel.details}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!website.snsLinksOnSite ? (
|
||||
<div className="rounded-xl bg-[var(--color-status-critical-bg)] border border-[var(--color-status-critical-border)] p-4 flex items-start gap-3 animate-fade-in-up animation-delay-300">
|
||||
<AlertCircleIcon
|
||||
width={20}
|
||||
height={20}
|
||||
className="text-[var(--color-status-critical-text)] shrink-0 mt-0.5"
|
||||
aria-hidden
|
||||
/>
|
||||
<div className="min-w-0">
|
||||
<p className="body-14-medium text-[var(--color-status-critical-text)] break-keep">
|
||||
홈페이지에 SNS 링크 없음
|
||||
</p>
|
||||
<p className="body-14 text-[var(--color-status-critical-text)] mt-1 break-keep">
|
||||
웹사이트에서 소셜 미디어 채널로의 연결이 없습니다. 방문자가 SNS를 통해 브랜드와 연결할 수 없습니다.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div className="rounded-xl bg-[var(--color-status-good-bg)] border border-[var(--color-status-good-border)] p-4 flex items-center gap-3">
|
||||
<CheckCircleIcon width={20} height={20} className="text-[var(--color-status-good-dot)] shrink-0" aria-hidden />
|
||||
<p className="body-14-medium text-[var(--color-status-good-text)] break-keep">
|
||||
홈페이지에 SNS 링크 연결됨
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user