[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,34 @@
|
||||
import { TopVideoCard } from "@/components/card/TopVideoCard";
|
||||
import type { TopVideo } from "@/features/report/types/youtubeAudit";
|
||||
|
||||
export type YouTubeTopVideosBlockProps = {
|
||||
videos: TopVideo[];
|
||||
};
|
||||
|
||||
export function YouTubeTopVideosBlock({ videos }: YouTubeTopVideosBlockProps) {
|
||||
if (videos.length === 0) return null;
|
||||
|
||||
return (
|
||||
<div className="mb-8 animate-fade-in-up animation-delay-200">
|
||||
<p className="body-14-medium text-neutral-80 mb-4 break-keep">
|
||||
인기 영상 TOP {videos.length}
|
||||
</p>
|
||||
<div
|
||||
className="flex gap-4 overflow-x-auto pb-4 scrollbar-hide"
|
||||
style={{ scrollbarWidth: "none", msOverflowStyle: "none" }}
|
||||
>
|
||||
{videos.map((video, i) => (
|
||||
<TopVideoCard
|
||||
key={`${video.title}-${i}`}
|
||||
title={video.title}
|
||||
views={video.views}
|
||||
uploadedAgo={video.uploadedAgo}
|
||||
type={video.type}
|
||||
duration={video.duration}
|
||||
style={{ animationDelay: `${i * 50}ms` }}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user