2026-02-17 10:02:35 +00:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import { motion } from "framer-motion";
|
|
|
|
|
import { useEffect, useState } from "react";
|
2026-04-10 20:03:46 +00:00
|
|
|
import NewsArticleList from "@/components/main/news-article-list";
|
|
|
|
|
import { ARTICLE_TYPE } from "@/constants/article-content-types";
|
2026-02-17 10:02:35 +00:00
|
|
|
|
2026-04-10 20:03:46 +00:00
|
|
|
export default function NewsArticleImagePage() {
|
2026-02-17 10:02:35 +00:00
|
|
|
const [mounted, setMounted] = useState(false);
|
2026-04-10 20:03:46 +00:00
|
|
|
useEffect(() => setMounted(true), []);
|
2026-02-17 10:02:35 +00:00
|
|
|
if (!mounted) {
|
|
|
|
|
return (
|
2026-04-10 20:03:46 +00:00
|
|
|
<div className="h-full flex items-center justify-center">
|
|
|
|
|
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-500" />
|
2026-02-17 10:02:35 +00:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<motion.div
|
|
|
|
|
className="h-full overflow-auto bg-gradient-to-br from-slate-50/50 via-white to-slate-50/50"
|
|
|
|
|
initial={{ opacity: 0 }}
|
|
|
|
|
animate={{ opacity: 1 }}
|
|
|
|
|
>
|
|
|
|
|
<div className="p-6">
|
2026-04-10 20:03:46 +00:00
|
|
|
<NewsArticleList kind="image" typeId={ARTICLE_TYPE.IMAGE} />
|
2026-02-17 10:02:35 +00:00
|
|
|
</div>
|
|
|
|
|
</motion.div>
|
|
|
|
|
);
|
|
|
|
|
}
|