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,394 changes: 2,098 additions & 296 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
"@hookform/resolvers": "^5.2.2",
"@tailwindcss/vite": "^4.1.18",
"@tanstack/react-query": "^5.90.17",
"apexcharts": "^5.7.0",
"axios": "^1.13.4",
"clsx": "^2.1.1",
"react": "^19.2.0",
"react-apexcharts": "^2.0.1",
"react-dom": "^19.2.0",
"react-hook-form": "^7.71.1",
"react-markdown": "^10.1.0",
Expand Down
30 changes: 30 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/assets/icon/ads/google-wordmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/icon/ads/kakao-wordmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icon/ads/naver-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions src/assets/icon/ads/naver-logo.svg

This file was deleted.

9 changes: 9 additions & 0 deletions src/assets/icon/ads/naver-wordmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icon/ai-report/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icon/ai-report/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icon/ai-report/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icon/ai-report/more.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/icon/ai-report/sparkle-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icon/ai-report/sparkle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icon/ai-report/warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icon/common/chevron-double-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/assets/logo/ai-요약버튼.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/ads/CampaignRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import type { TCampaignStatus, TPlatform } from "@/types/ads/campaign";
import Badge from "../common/badge/Badge";
import ProgressBar from "../common/progressbar/ProgressBar";

import GoogleLogo from "@/assets/icon/ads/google-logo.svg?react";
import KakaoLogo from "@/assets/icon/ads/kakao-logo.svg?react";
import NaverLogo from "@/assets/icon/ads/naver-logo.svg?react";
import GoogleLogo from "@/assets/icon/ads/google-circle.svg?react";
import KakaoLogo from "@/assets/icon/ads/kakao-circle.svg?react";
import NaverLogo from "@/assets/icon/ads/naver-circle.svg?react";

interface ICampaignRowProps {
platforms: TPlatform[];
Expand Down
6 changes: 3 additions & 3 deletions src/components/common/card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { twMerge } from "tailwind-merge";

export interface ICardProps extends HTMLAttributes<HTMLDivElement> {
title?: string;
description?: string;
description?: ReactNode;
RightElement?: ReactNode;
}

Expand All @@ -20,7 +20,7 @@ export default function Card({
return (
<div
className={twMerge(
"bg-white rounded-component-md border border-chart-inactive p-5",
"bg-white/80 backdrop-blur-sm rounded-[24px] shadow-[0_4px_20px_rgba(0,0,0,0.03)] p-7 border border-white/40 transition-all duration-300 hover:shadow-[0_12px_45px_rgba(0,0,0,0.06)]",
className,
)}
{...rest}
Expand All @@ -30,7 +30,7 @@ export default function Card({
<div className="flex flex-col gap-0.5">
{title && <h3 className="font-body1 text-text-main">{title}</h3>}
{description && (
<p className="font-caption text-text-sub">{description}</p>
<div className="font-caption text-text-sub">{description}</div>
)}
</div>
{RightElement}
Expand Down
12 changes: 7 additions & 5 deletions src/components/common/card/StatCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export interface IStatCardProps extends HTMLAttributes<HTMLDivElement> {
}

const trendClasses: Record<ITrend["direction"], string> = {
up: "bg-status-red/10 text-status-red",
down: "bg-status-blue/10 text-status-blue",
up: "bg-status-red/[0.08] text-status-red font-bold",
down: "bg-status-blue/[0.08] text-status-blue font-bold",
};

export default function StatCard({
Expand All @@ -30,13 +30,15 @@ export default function StatCard({
return (
<div
className={twMerge(
"bg-white rounded-component-md border border-chart-inactive p-5 flex flex-col gap-2",
"bg-white/80 backdrop-blur-sm rounded-[24px] shadow-[0_4px_20px_rgba(0,0,0,0.03)] p-7 flex flex-col gap-4 border border-white/40 transition-all duration-300 hover:shadow-[0_12px_40px_rgba(33,130,246,0.08)]",
className,
)}
{...rest}
>
<p className="font-body2 text-text-main">{title}</p>
<p className="font-heading2 text-text-main">{value}</p>
<p className="font-body2 text-text-sub font-medium">{title}</p>
<p className="font-heading1 text-text-main font-extrabold tracking-tight">
{value}
</p>
{trend && (
<span
aria-label={`${trend.value} ${trend.direction === "up" ? "상승" : "하락"}`}
Expand Down
28 changes: 28 additions & 0 deletions src/components/common/chart/ChartLegend.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { twMerge } from "tailwind-merge";

export interface IChartLegendItem {
label: string;
colorClass: string;
}

export interface IChartLegendProps {
items: IChartLegendItem[];
className?: string;
}

export default function ChartLegend({ items, className }: IChartLegendProps) {
return (
<div className={twMerge("flex items-center gap-4", className)}>
{items.map((item, index) => (
<div key={index} className="flex items-center gap-1.5">
<div
className={twMerge("w-1.5 h-1.5 rounded-full", item.colorClass)}
/>
<span className="font-caption font-bold text-text-sub">
{item.label}
</span>
</div>
))}
</div>
);
}
Loading
Loading