92 lines
2.8 KiB
TypeScript
92 lines
2.8 KiB
TypeScript
// apps/dm/app/(landing)/reuse/cases/rain/page.tsx
|
|
"use client";
|
|
|
|
import Image, { type StaticImageData } from "next/image";
|
|
import SubPageHeader from "../../_components/SubPageHeader";
|
|
import rainwaterBuilding from "@/public/images/landing/cases/rainwater_building.png";
|
|
import rainwaterUsage from "@/public/images/landing/cases/rainwater_usage.png";
|
|
import rainwaterUsageAmount from "@/public/images/landing/cases/rainwater_usage_amount.png";
|
|
|
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<div className="flex items-center gap-3">
|
|
<span className="h-5 w-[3px] bg-sky-500" />
|
|
<h3 className="text-[24px] font-bold text-neutral-900">{children}</h3>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
type HrProps = {
|
|
className?: string;
|
|
};
|
|
|
|
function Hr({ className = "" }: HrProps) {
|
|
return <div className={`h-[2px] w-full bg-black/10 ${className}`} />;
|
|
}
|
|
|
|
type ImgCardProps = {
|
|
src: StaticImageData;
|
|
alt: string;
|
|
};
|
|
|
|
function ImgCard({ src, alt }: ImgCardProps) {
|
|
return (
|
|
<div className="w-full overflow-x-auto">
|
|
<Image
|
|
src={src}
|
|
alt={alt}
|
|
className="block mx-auto max-w-none"
|
|
style={{ width: "auto", height: "auto" }}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default function GreywaterPage() {
|
|
return (
|
|
<div className="bg-white">
|
|
<SubPageHeader
|
|
title="빗물이용시설(현황)"
|
|
crumbs={[
|
|
{ label: "Home", href: "/reuse" },
|
|
{ label: "물 재이용 현황", href: "/reuse/cases/rain" },
|
|
{ label: "빗물이용시설(현황)" },
|
|
]}
|
|
hideFooterLine
|
|
hideGuideText
|
|
wrapClassName="!pb-0"
|
|
/>
|
|
|
|
<Hr className="my-7" />
|
|
|
|
{/* 1) 빗물이용시설의 건축물별 빗물이용량 현황 */}
|
|
<section className="mt-6">
|
|
<SectionTitle>빗물이용시설의 건축물별 빗물이용량 현황</SectionTitle>
|
|
<div className="mt-8">
|
|
<ImgCard src={rainwaterBuilding} alt="빗물이용시설의 건축물별 빗물이용량 현황 설명" />
|
|
</div>
|
|
</section>
|
|
|
|
<Hr className="my-11" />
|
|
|
|
{/* 2) 빗물이용시설의 용도별 분포 (2023년 기준) */}
|
|
<section>
|
|
<SectionTitle>빗물이용시설의 용도별 분포 (2023년 기준)</SectionTitle>
|
|
<div className="mt-8">
|
|
<ImgCard src={rainwaterUsage} alt="빗물이용시설의 용도별 분포 설명" />
|
|
</div>
|
|
</section>
|
|
|
|
<Hr className="my-11" />
|
|
|
|
{/* 3) 빗물이용시설의 용도별 빗물이용량 현황 */}
|
|
<section className="pb-[200px]">
|
|
<SectionTitle>빗물이용시설의 용도별 빗물이용량 현황</SectionTitle>
|
|
<div className="mt-8">
|
|
<ImgCard src={rainwaterUsageAmount} alt="빗물이용시설의 용도별 빗물이용량 현황 설명" />
|
|
</div>
|
|
</section>
|
|
</div>
|
|
);
|
|
}
|