[feat] report 페이지 추가

This commit is contained in:
minheon committed 2026-04-01 10:52:50 +09:00
1 parent af58b96aff
commit 675cfcab8d
126 files changed
+3642 -1

No files matched your search

@@ -0,0 +1,18 @@
export function OverviewHeroBlobs() {
return (
<>
<div
className="absolute top-10 left-10 w-72 h-72 rounded-full bg-lavender-300/30 blur-3xl animate-blob pointer-events-none"
aria-hidden
/>
<div
className="absolute bottom-10 right-10 w-96 h-96 rounded-full bg-marketing-blush/30 blur-3xl animate-blob animation-delay-2000 pointer-events-none"
aria-hidden
/>
<div
className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-80 h-80 rounded-full bg-violet-500/10 blur-3xl animate-blob animation-delay-4000 pointer-events-none"
aria-hidden
/>
</>
);
}
@@ -0,0 +1,39 @@
import type { ReportOverviewData } from "@/features/report/types/reportOverview";
import { OverviewMetaChips } from "@/features/report/ui/overview/OverviewMetaChips";
export type OverviewHeroColumnProps = {
data: ReportOverviewData;
};
export function OverviewHeroColumn({ data }: OverviewHeroColumnProps) {
const { clinicName, clinicNameEn, date, targetUrl, location, logoImage } = data;
return (
<div className="flex-1 text-center md:text-left animate-fade-in-up">
<p className="font-serif text-3xl md:text-4xl font-normal text-violet-700 mb-4 tracking-wide animate-fade-in-up animation-delay-100 break-keep">
Marketing Intelligence Report
</p>
{logoImage ? (
<div className="mb-4 animate-fade-in-up animation-delay-100">
<img
src={logoImage}
alt={`${clinicName} 로고`}
className="h-16 md:h-20 w-auto object-contain md:mx-0 mx-auto"
onError={(e) => {
(e.target as HTMLImageElement).style.display = "none";
}}
/>
</div>
) : null}
<h1 className="font-serif text-4xl md:text-5xl font-bold text-navy-900 mb-3 animate-fade-in-up animation-delay-200 break-keep">
{clinicName}
</h1>
<p className="body-18 text-neutral-70 mb-8 animate-fade-in-up animation-delay-200 break-keep">{clinicNameEn}</p>
<OverviewMetaChips date={date} targetUrl={targetUrl} location={location} />
</div>
);
}
@@ -0,0 +1,31 @@
import CalendarIcon from "@/assets/report/calendar.svg?react";
import GlobeIcon from "@/assets/report/globe.svg?react";
import MapPinIcon from "@/assets/report/map-pin.svg?react";
import { OVERVIEW_META_CHIP_CLASS } from "@/features/report/ui/overview/overviewSectionStyles";
export type OverviewMetaChipsProps = {
date: string;
targetUrl: string;
location: string;
};
export function OverviewMetaChips({ date, targetUrl, location }: OverviewMetaChipsProps) {
return (
<div className="flex flex-wrap gap-3 justify-center md:justify-start animate-fade-in-up animation-delay-300">
<span className={OVERVIEW_META_CHIP_CLASS}>
<CalendarIcon className="text-neutral-60 shrink-0" width={16} height={16} aria-hidden />
<span className="break-keep">{date}</span>
</span>
<span className={OVERVIEW_META_CHIP_CLASS}>
<GlobeIcon className="text-neutral-60 shrink-0" width={16} height={16} aria-hidden />
<span className="truncate max-w-[min(100%,280px)]" title={targetUrl}>
{targetUrl}
</span>
</span>
<span className={OVERVIEW_META_CHIP_CLASS}>
<MapPinIcon className="text-neutral-60 shrink-0" width={16} height={16} aria-hidden />
<span className="break-keep text-left">{location}</span>
</span>
</div>
);
}
@@ -0,0 +1,18 @@
import { ScoreRing } from "@/components/rating/ScoreRing";
export type OverviewScorePanelProps = {
overallScore: number;
};
export function OverviewScorePanel({ overallScore }: OverviewScorePanelProps) {
return (
<div className="shrink-0 animate-fade-in-scale animation-delay-200">
<div className="bg-white/60 backdrop-blur-sm border border-white/40 rounded-3xl p-8 shadow-lg">
<p className="label-12 text-neutral-60 uppercase tracking-wide text-center mb-4 break-keep">
Overall Score
</p>
<ScoreRing score={overallScore} size={160} label="종합 점수" />
</div>
</div>
);
}
@@ -0,0 +1,5 @@
export const OVERVIEW_SECTION_BG_CLASS =
"bg-[radial-gradient(ellipse_at_top_left,var(--color-hero-wash-start),transparent_50%),radial-gradient(ellipse_at_bottom_right,var(--color-marketing-blush),transparent_50%),radial-gradient(ellipse_at_center,var(--color-lavender-100),transparent_60%)]";
export const OVERVIEW_META_CHIP_CLASS =
"inline-flex items-center gap-2 rounded-full bg-white/60 backdrop-blur-sm border border-white/40 px-3 py-1 body-14-medium text-neutral-80 max-w-full";