Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c580141b71 | ||
|
|
5cb0719297 | ||
|
|
1b6fb6f77d | ||
|
|
5e5678f005 | ||
|
|
bbca5ac6f2 | ||
|
|
b8ff15f187 | ||
|
|
049ea098d0 | ||
|
|
70b941c081 | ||
|
|
f528c0e893 | ||
|
|
f5f2a8f675 | ||
|
|
21878892dc | ||
|
|
112634a8e3 | ||
|
|
64d33bec6d | ||
|
|
4b1dd416b5 | ||
|
|
6d28936a35 | ||
|
|
aca6e249b4 | ||
|
|
1dee2c4200 | ||
|
|
f2be91986c | ||
|
|
fa64855574 | ||
|
|
df7a66b2c7 | ||
|
|
e7f4da2322 | ||
|
|
c551481c5b | ||
|
|
b0f71f2239 | ||
|
|
688ec0f88f | ||
|
|
3efac843d4 | ||
|
|
3ed8b4ed6c | ||
|
|
2042076597 | ||
|
|
7088540ccc | ||
|
|
c279124c41 | ||
|
|
fc03a19da1 | ||
|
|
e566bc087b | ||
|
|
90eb5f3b04 | ||
|
|
7b9db8d879 | ||
|
|
b1d556c6ee | ||
|
|
5e01305922 | ||
|
|
8015dc4b93 | ||
|
|
bb6274ef12 | ||
|
|
2805e382b3 | ||
|
|
df4f3b296b | ||
|
|
42632d96ad | ||
|
|
a73265eac6 | ||
|
|
1a82d549f5 | ||
|
|
28681969e2 | ||
|
|
f5f0f67798 | ||
|
|
cbee407911 | ||
|
|
cc291243b0 | ||
|
|
11ecd90d13 | ||
|
|
57904427cf | ||
|
|
5372ef9d9c | ||
|
|
214bd9db4d | ||
|
|
7423b778ee | ||
|
|
4bd67fcbb3 | ||
|
|
ce0e6e9d99 | ||
|
|
ca324251ad | ||
|
|
41504e6e0f | ||
|
|
b40a974ba3 | ||
|
|
5f11b39810 | ||
|
|
f706f07bc5 | ||
|
|
c987f6beed | ||
|
|
4bcda65c05 | ||
|
|
3f12cfd8c3 | ||
|
|
abfa231493 | ||
|
|
601e99fbd5 | ||
|
|
c7b22b3e95 | ||
|
|
a57c1a4a5c | ||
|
|
7cb1a9ab6f | ||
|
|
c86dd2bb9e | ||
|
|
dc8006899e | ||
|
|
6e50514096 | ||
|
|
863634ea6a | ||
|
|
fcd5f215e8 | ||
|
|
645a7db2e5 | ||
|
|
fe930d4773 | ||
|
|
b2d528dc78 | ||
|
|
a7c4d251a2 | ||
|
|
edf0d30b95 | ||
|
|
bb8e3e5456 | ||
|
|
2ee400c9bb | ||
|
|
a46b185c16 | ||
|
|
c9c8a7ff62 | ||
|
|
1728d1879c | ||
|
|
bdd3708fde | ||
|
|
6c76f9a810 | ||
|
|
36e7c6cfee | ||
|
|
c3b5c5d0cd | ||
|
|
ca7002f3bb | ||
|
|
9642680909 | ||
|
|
6eb8a3baac | ||
|
|
4e404abad3 | ||
|
|
5e56999c68 | ||
|
|
45fd44aa01 | ||
|
|
57b16653d4 | ||
|
|
4dcd422815 | ||
|
|
4a8c748095 | ||
|
|
01f1076a5d | ||
|
|
58fee673ce | ||
|
|
9567d7f7ce | ||
|
|
11cf1bf7c9 | ||
|
|
0818b63cdc | ||
|
|
14f2aab0be | ||
|
|
72f5fdd7a8 | ||
|
|
96db2b4ed4 | ||
|
|
f9a1af43f5 | ||
|
|
b711dae3ed | ||
|
|
512c39cd46 | ||
|
|
cb8743ea39 | ||
|
|
0b46ba36dc | ||
|
|
53356228a7 | ||
|
|
59e3dd0804 | ||
|
|
165c7bcbbf | ||
|
|
3d11a8be21 | ||
|
|
daaff4a4ca | ||
|
|
a3270acd29 | ||
|
|
3184ea4386 | ||
|
|
13fad0c692 | ||
|
|
9181ec192d | ||
|
|
f993a4a13e | ||
|
|
630c9492cd | ||
|
|
c57c7ce1f7 | ||
|
|
d320d96edf | ||
|
|
a32a1ac003 | ||
|
|
908ec81fb7 | ||
|
|
43bbc81616 | ||
|
|
80510adb8e | ||
|
|
ee2301470a | ||
|
|
bb778b6dc0 | ||
|
|
1bc03d99c6 | ||
|
|
dc64095e76 | ||
|
|
414a69c6ad | ||
|
|
4c86f7f3a5 | ||
|
|
685ba15baa | ||
|
|
2cf241236e | ||
|
|
f5320259b9 | ||
|
|
b5ecfdf3f8 | ||
|
|
57afe5dc5c | ||
|
|
5fb7a83de8 | ||
|
|
3fdc459b16 | ||
|
|
96bd0185b3 | ||
|
|
980c4f1c9f | ||
|
|
76bb48aacd | ||
|
|
af12aa0718 | ||
|
|
1970a8d632 | ||
|
|
8269b31b42 | ||
|
|
d8d0207891 | ||
|
|
f575e3b677 | ||
|
|
6b28c4e332 | ||
|
|
6ae792c3e2 | ||
|
|
5f42eb080e | ||
|
|
1d73da316c | ||
|
|
ea490bcdbc | ||
|
|
4cde2a56b4 | ||
|
|
5446a8a656 | ||
|
|
7662e80eba | ||
|
|
e610b3b8e8 | ||
|
|
9d6902f521 | ||
|
|
b6e11b4be4 | ||
|
|
969d24736d | ||
|
|
bf577ddc81 | ||
|
|
d731a3fc5b | ||
|
|
dabdf5739a | ||
|
|
f09028a7ea | ||
|
|
57e8e4c8d6 | ||
|
|
8c384a51ce | ||
|
|
c8a66d2e53 | ||
|
|
42a99708a3 | ||
|
|
d8d704aec1 | ||
|
|
9ef58ef153 | ||
|
|
a8948fd1f3 | ||
|
|
56a9218210 | ||
|
|
19670a6ff0 | ||
|
|
38bbce9ea1 | ||
|
|
9d7ceb69b1 | ||
|
|
3fb1fe870b | ||
|
|
ff2b79aaa6 | ||
|
|
bffa8fbc11 | ||
|
|
3e8f55bee5 | ||
|
|
64e7a1f43f | ||
|
|
dd849958c0 | ||
|
|
dde92cf779 | ||
|
|
ec14773409 | ||
|
|
50232da090 | ||
|
|
97a67bfd55 | ||
|
|
ac24ebff40 | ||
|
|
45ad5eb5eb | ||
|
|
fad671ef29 | ||
|
|
0eeac7512b | ||
|
|
a71a2a147f | ||
|
|
cb442bfc13 | ||
|
|
6504d53672 | ||
|
|
c1813ba4f3 | ||
|
|
aa05cb5d73 | ||
|
|
9cf73141df | ||
|
|
3772cd6edd | ||
|
|
fd6b008b80 | ||
|
|
c5fbd6e6f3 | ||
|
|
409e755e7d | ||
|
|
6dae2896d7 | ||
|
|
fa21387c55 | ||
|
|
ec59447db9 | ||
|
|
9cd3ce9f63 |
@@ -4,10 +4,7 @@
|
|||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
node_modules/
|
node_modules/
|
||||||
|
.idea/
|
||||||
# build
|
|
||||||
.next/
|
|
||||||
dist/
|
|
||||||
|
|
||||||
# build
|
# build
|
||||||
.next
|
.next
|
||||||
@@ -22,9 +19,14 @@ apps/fo/.next/**/*
|
|||||||
#.env*
|
#.env*
|
||||||
.qodo
|
.qodo
|
||||||
|
|
||||||
|
# next-agents-md
|
||||||
|
.next-docs/
|
||||||
|
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
settings.json
|
settings.json
|
||||||
.npmrc
|
.npmrc
|
||||||
.cursor
|
.cursor
|
||||||
|
.agent
|
||||||
|
|
||||||
apps/**/tsconfig.tsbuildinfo
|
apps/**/tsconfig.tsbuildinfo
|
||||||
|
logs/
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
if [ "$BRANCH" != "main" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo "Branch: $BRANCH"
|
||||||
|
echo "Changed packages (dry-run):"
|
||||||
|
pnpm turbo run build --filter="...[origin/$BRANCH]" --dry-run
|
||||||
|
echo "Starting build..."
|
||||||
pnpm turbo run build --filter="...[origin/$BRANCH]"
|
pnpm turbo run build --filter="...[origin/$BRANCH]"
|
||||||
|
|||||||
@@ -3,3 +3,6 @@ NEXT_PUBLIC_PORT=
|
|||||||
NEXT_PUBLIC_PROXY_HOST=
|
NEXT_PUBLIC_PROXY_HOST=
|
||||||
NEXT_PUBLIC_SITE_ID=
|
NEXT_PUBLIC_SITE_ID=
|
||||||
NEXT_PUBLIC_SERVER_API_URL=
|
NEXT_PUBLIC_SERVER_API_URL=
|
||||||
|
|
||||||
|
# 401 시 브라우저 리다이렉트 대상
|
||||||
|
NEXT_PUBLIC_AUTH_LOGIN_REDIRECT_URL=/auth/login
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^9.0.0",
|
"eslint": "^9.0.0",
|
||||||
"eslint-config-next": "15.4.0",
|
"eslint-config-next": "15.3.8",
|
||||||
"postcss": "^8.4.49",
|
"postcss": "^8.4.49",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
"@types/node": "^22.13.1",
|
"@types/node": "^22.13.1",
|
||||||
"@types/webpack": "^5.28.5",
|
"@types/webpack": "^5.28.5",
|
||||||
"eslint": "^9.0.0",
|
"eslint": "^9.0.0",
|
||||||
"eslint-config-next": "15.4.0",
|
"eslint-config-next": "15.3.8",
|
||||||
"postcss": "^8.4.49",
|
"postcss": "^8.4.49",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||||
|
|||||||
@@ -5,16 +5,15 @@ import { useRouter } from "next/navigation";
|
|||||||
import { client } from "@/shared/api";
|
import { client } from "@/shared/api";
|
||||||
import type { IUserInfo } from "@/shared/store";
|
import type { IUserInfo } from "@/shared/store";
|
||||||
import { getCookie, useUserStore } from "@/shared/lib";
|
import { getCookie, useUserStore } from "@/shared/lib";
|
||||||
|
import { isAtLoginRedirectUrl } from "@common/network";
|
||||||
import { ENDPOINT, AUTH_USER_ID } from "@/shared/config";
|
import { ENDPOINT, AUTH_USER_ID } from "@/shared/config";
|
||||||
import { LoginApi } from "../api/login-service";
|
|
||||||
|
|
||||||
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { userInfo, setUserInfo } = useUserStore((state) => state);
|
const { userInfo, setUserInfo } = useUserStore((state) => state);
|
||||||
|
|
||||||
async function authCheck() {
|
async function authCheck() {
|
||||||
// 로그인 페이지에서는 인증 체크를 건너뜀
|
if (isAtLoginRedirectUrl("/auth/login")) {
|
||||||
if (window.location.pathname === '/auth/login') {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,13 +34,8 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
|||||||
await authCheck();
|
await authCheck();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
setUserInfo(null);
|
||||||
try {
|
if (!isAtLoginRedirectUrl("/auth/login")) {
|
||||||
await LoginApi.silentRefresh();
|
|
||||||
await authCheck();
|
|
||||||
} catch (refreshError) {
|
|
||||||
console.error("Token refresh failed:", refreshError);
|
|
||||||
setUserInfo(null);
|
|
||||||
router.push("/auth/login");
|
router.push("/auth/login");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,11 +145,11 @@ function LoginPage() {
|
|||||||
<div className="left_box fx">
|
<div className="left_box fx">
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<h1>
|
<h1>
|
||||||
유역하수도 통합플랫폼
|
유역하수도통합플랫폼
|
||||||
<br />
|
<br />
|
||||||
<span>통합관리시스템</span>
|
<span>하수도 포탈</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p>유역하수도 통합플랫폼에 오신 것을 환영합니다.</p>
|
<p>유역하수도통합플랫폼 하수도 포탈에 오신 것을 환영합니다.</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="img">
|
<div className="img">
|
||||||
<Image src={images.logo} width={229} height={46} alt="logo" />
|
<Image src={images.logo} width={229} height={46} alt="logo" />
|
||||||
|
|||||||
@@ -1,6 +1,21 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
|
output: "standalone",
|
||||||
|
experimental: {
|
||||||
|
proxyTimeout: 600000,
|
||||||
|
},
|
||||||
|
eslint: {
|
||||||
|
ignoreDuringBuilds: true,
|
||||||
|
},
|
||||||
|
typescript: {
|
||||||
|
ignoreBuildErrors: true,
|
||||||
|
},
|
||||||
|
logging: {
|
||||||
|
fetches: {
|
||||||
|
fullUrl: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return {
|
return {
|
||||||
afterFiles: [
|
afterFiles: [
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
"@types/node": "^22.13.1",
|
"@types/node": "^22.13.1",
|
||||||
"@types/webpack": "^5.28.5",
|
"@types/webpack": "^5.28.5",
|
||||||
"eslint": "^9",
|
"eslint": "^9",
|
||||||
"eslint-config-next": "15.1.7",
|
"eslint-config-next": "15.3.8",
|
||||||
"postcss": "^8",
|
"postcss": "^8",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||||
|
|||||||
@@ -4,13 +4,17 @@ import { useEffect } from "react";
|
|||||||
import { client } from "@/shared/api";
|
import { client } from "@/shared/api";
|
||||||
import type { IUserInfo } from "@/shared/store";
|
import type { IUserInfo } from "@/shared/store";
|
||||||
import { getCookie, useUserStore } from "@/shared/lib";
|
import { getCookie, useUserStore } from "@/shared/lib";
|
||||||
|
import { getAuthLoginRedirectUrl, isAtLoginRedirectUrl } from "@common/network";
|
||||||
import { ENDPOINT, AUTH_USER_ID } from "@/shared/config";
|
import { ENDPOINT, AUTH_USER_ID } from "@/shared/config";
|
||||||
import { LoginApi } from "../api/login-service";
|
|
||||||
|
|
||||||
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
||||||
const { userInfo, setUserInfo } = useUserStore((state) => state);
|
const { userInfo, setUserInfo } = useUserStore((state) => state);
|
||||||
|
|
||||||
async function authCheck() {
|
async function authCheck() {
|
||||||
|
if (isAtLoginRedirectUrl(getAuthLoginRedirectUrl())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const userId = getCookie(AUTH_USER_ID);
|
const userId = getCookie(AUTH_USER_ID);
|
||||||
if (!userId) {
|
if (!userId) {
|
||||||
throw new Error("Missing required authentication tokens");
|
throw new Error("Missing required authentication tokens");
|
||||||
@@ -28,8 +32,6 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
|||||||
await authCheck();
|
await authCheck();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
await LoginApi.silentRefresh();
|
|
||||||
await authCheck();
|
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
@@ -38,4 +38,5 @@ yarn-error.log*
|
|||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
|
||||||
.env*
|
.env*
|
||||||
!.env.example
|
!.env.example
|
||||||
|
/start_cs.log
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
"@types/node": "^22.13.1",
|
"@types/node": "^22.13.1",
|
||||||
"@types/webpack": "^5.28.5",
|
"@types/webpack": "^5.28.5",
|
||||||
"eslint": "^9.0.0",
|
"eslint": "^9.0.0",
|
||||||
"eslint-config-next": "15.4.0",
|
"eslint-config-next": "15.3.8",
|
||||||
"postcss": "^8.4.49",
|
"postcss": "^8.4.49",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||||
|
|||||||
@@ -1,18 +1,24 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { useRouter } from "next/navigation";
|
|
||||||
import { client } from "@/shared/api";
|
import { client } from "@/shared/api";
|
||||||
import type { IUserInfo } from "@/shared/store";
|
import type { IUserInfo } from "@/shared/store";
|
||||||
import { getCookie, useUserStore } from "@/shared/lib";
|
import { getCookie, useUserStore } from "@/shared/lib";
|
||||||
import { ENDPOINT, AUTH_USER_ID } from "@/shared/config";
|
import { isAtLoginRedirectUrl } from "@common/network";
|
||||||
import { LoginApi } from "../api/login-service";
|
import {
|
||||||
|
ENDPOINT,
|
||||||
|
AUTH_USER_ID,
|
||||||
|
AUTH_LOGIN_REDIRECT_URL,
|
||||||
|
} from "@/shared/config";
|
||||||
|
|
||||||
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
||||||
const router = useRouter();
|
|
||||||
const { userInfo, setUserInfo } = useUserStore((state) => state);
|
const { userInfo, setUserInfo } = useUserStore((state) => state);
|
||||||
|
|
||||||
async function authCheck() {
|
async function authCheck() {
|
||||||
|
if (isAtLoginRedirectUrl(AUTH_LOGIN_REDIRECT_URL)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const userId = getCookie(AUTH_USER_ID);
|
const userId = getCookie(AUTH_USER_ID);
|
||||||
if (!userId) {
|
if (!userId) {
|
||||||
throw new Error("Missing required authentication tokens");
|
throw new Error("Missing required authentication tokens");
|
||||||
@@ -30,14 +36,9 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
|||||||
await authCheck();
|
await authCheck();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
setUserInfo(null);
|
||||||
try {
|
if (!isAtLoginRedirectUrl(AUTH_LOGIN_REDIRECT_URL)) {
|
||||||
await LoginApi.silentRefresh();
|
window.location.assign(AUTH_LOGIN_REDIRECT_URL);
|
||||||
await authCheck();
|
|
||||||
} catch (refreshError) {
|
|
||||||
console.error("Token refresh failed:", refreshError);
|
|
||||||
setUserInfo(null);
|
|
||||||
router.push("/auth/login");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ function LoginlogPage() {
|
|||||||
const [presetDateRange, setPresetDateRange] = useState("");
|
const [presetDateRange, setPresetDateRange] = useState("");
|
||||||
const [dateRange, setDateRange] = useState<DateRange>(defaultDateRange);
|
const [dateRange, setDateRange] = useState<DateRange>(defaultDateRange);
|
||||||
const [userId, setUserId] = useState("");
|
const [userId, setUserId] = useState("");
|
||||||
const [errOcrnYn, setErrOcrnYn] = useState("N");
|
const [errOcrnYn, setErrOcrnYn] = useState("ALL");
|
||||||
const [searchParams, setSearchParams] = useState<LoginlogParams>({
|
const [searchParams, setSearchParams] = useState<LoginlogParams>({
|
||||||
userId: "",
|
userId: "",
|
||||||
errOcrnYn: "N",
|
errOcrnYn: "",
|
||||||
searchDateFrom: dayjs().subtract(7, "day").format("YYYY-MM-DD"),
|
searchDateFrom: dayjs().subtract(7, "day").format("YYYY-MM-DD"),
|
||||||
searchDateTo: dayjs().format("YYYY-MM-DD"),
|
searchDateTo: dayjs().format("YYYY-MM-DD"),
|
||||||
sort: "lgnDt,desc",
|
sort: "lgnDt,desc",
|
||||||
@@ -87,7 +87,7 @@ function LoginlogPage() {
|
|||||||
setSearchParams({
|
setSearchParams({
|
||||||
...searchParams,
|
...searchParams,
|
||||||
userId,
|
userId,
|
||||||
errOcrnYn,
|
errOcrnYn: errOcrnYn === "ALL" ? "" : errOcrnYn,
|
||||||
searchDateFrom: dateRange.from
|
searchDateFrom: dateRange.from
|
||||||
? dayjs(dateRange.from).format("YYYY-MM-DD")
|
? dayjs(dateRange.from).format("YYYY-MM-DD")
|
||||||
: "",
|
: "",
|
||||||
@@ -102,12 +102,12 @@ function LoginlogPage() {
|
|||||||
|
|
||||||
const handleReset = () => {
|
const handleReset = () => {
|
||||||
setUserId("");
|
setUserId("");
|
||||||
setErrOcrnYn("N");
|
setErrOcrnYn("ALL");
|
||||||
setDateRange(defaultDateRange);
|
setDateRange(defaultDateRange);
|
||||||
setSearchParams({
|
setSearchParams({
|
||||||
...searchParams,
|
...searchParams,
|
||||||
userId: "",
|
userId: "",
|
||||||
errOcrnYn: "N",
|
errOcrnYn: "",
|
||||||
searchDateFrom: dayjs().subtract(7, "day").format("YYYY-MM-DD"),
|
searchDateFrom: dayjs().subtract(7, "day").format("YYYY-MM-DD"),
|
||||||
searchDateTo: dayjs().format("YYYY-MM-DD"),
|
searchDateTo: dayjs().format("YYYY-MM-DD"),
|
||||||
});
|
});
|
||||||
@@ -180,6 +180,7 @@ function LoginlogPage() {
|
|||||||
<SelectValue placeholder="선택" />
|
<SelectValue placeholder="선택" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
|
<SelectItem value="ALL">전체</SelectItem>
|
||||||
<SelectItem value="N">정상</SelectItem>
|
<SelectItem value="N">정상</SelectItem>
|
||||||
<SelectItem value="Y">오류</SelectItem>
|
<SelectItem value="Y">오류</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ export const PORT = process.env.NEXT_PUBLIC_PORT || "3000";
|
|||||||
export const PROXY_HOST =
|
export const PROXY_HOST =
|
||||||
process.env.NEXT_PUBLIC_PROXY_HOST || `http://localhost:${PORT}`;
|
process.env.NEXT_PUBLIC_PROXY_HOST || `http://localhost:${PORT}`;
|
||||||
export const SERVER_API_URL = process.env.NEXT_PUBLIC_SERVER_API_URL;
|
export const SERVER_API_URL = process.env.NEXT_PUBLIC_SERVER_API_URL;
|
||||||
|
export const AUTH_LOGIN_REDIRECT_URL =
|
||||||
|
process.env.NEXT_PUBLIC_AUTH_LOGIN_REDIRECT_URL || "/auth/login";
|
||||||
export const SITE_ID = process.env.NEXT_PUBLIC_SITE_ID || "CS";
|
export const SITE_ID = process.env.NEXT_PUBLIC_SITE_ID || "CS";
|
||||||
export const CLAIM_NAME = process.env.NEXT_PUBLIC_CLAIM_NAME || "Authorization";
|
export const CLAIM_NAME = process.env.NEXT_PUBLIC_CLAIM_NAME || "Authorization";
|
||||||
export const ACCESS_TOKEN =
|
export const ACCESS_TOKEN =
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
"@types/node": "^22.17.0",
|
"@types/node": "^22.17.0",
|
||||||
"@types/webpack": "^5.28.5",
|
"@types/webpack": "^5.28.5",
|
||||||
"eslint": "^9.0.0",
|
"eslint": "^9.0.0",
|
||||||
"eslint-config-next": "15.4.0",
|
"eslint-config-next": "15.3.8",
|
||||||
"postcss": "^8.4.49",
|
"postcss": "^8.4.49",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||||
|
|||||||
@@ -1,20 +1,24 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { useRouter } from "next/navigation";
|
|
||||||
import { client } from "@/shared/api";
|
import { client } from "@/shared/api";
|
||||||
import type { IUserInfo } from "@/shared/store";
|
import type { IUserInfo } from "@/shared/store";
|
||||||
import { getCookie, useUserStore } from "@/shared/lib";
|
import { getCookie, useUserStore } from "@/shared/lib";
|
||||||
import { ENDPOINT, AUTH_USER_ID } from "@/shared/config";
|
import { isAtLoginRedirectUrl } from "@common/network";
|
||||||
import { LoginApi } from "../api/login-service";
|
import {
|
||||||
|
ENDPOINT,
|
||||||
const CLAIM_NAME = process.env.NEXT_PUBLIC_CLAIM_NAME || "Authorization";
|
AUTH_USER_ID,
|
||||||
|
AUTH_LOGIN_REDIRECT_URL,
|
||||||
|
} from "@/shared/config";
|
||||||
|
|
||||||
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
||||||
const router = useRouter();
|
|
||||||
const { userInfo, setUserInfo } = useUserStore((state) => state);
|
const { userInfo, setUserInfo } = useUserStore((state) => state);
|
||||||
|
|
||||||
async function authCheck() {
|
async function authCheck() {
|
||||||
|
if (isAtLoginRedirectUrl(AUTH_LOGIN_REDIRECT_URL)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const userId = getCookie(AUTH_USER_ID);
|
const userId = getCookie(AUTH_USER_ID);
|
||||||
if (!userId) {
|
if (!userId) {
|
||||||
throw new Error("Missing required authentication tokens");
|
throw new Error("Missing required authentication tokens");
|
||||||
@@ -32,14 +36,9 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
|||||||
await authCheck();
|
await authCheck();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
setUserInfo(null);
|
||||||
try {
|
if (!isAtLoginRedirectUrl(AUTH_LOGIN_REDIRECT_URL)) {
|
||||||
await LoginApi.silentRefresh();
|
window.location.assign(AUTH_LOGIN_REDIRECT_URL);
|
||||||
await authCheck();
|
|
||||||
} catch (refreshError) {
|
|
||||||
console.error("Token refresh failed:", refreshError);
|
|
||||||
setUserInfo(null);
|
|
||||||
router.push("/auth/login");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -3,10 +3,14 @@ export const PROXY_HOST =
|
|||||||
process.env.NEXT_PUBLIC_PROXY_HOST || `http://localhost:${PORT}`;
|
process.env.NEXT_PUBLIC_PROXY_HOST || `http://localhost:${PORT}`;
|
||||||
|
|
||||||
export const SERVER_API_URL = process.env.NEXT_PUBLIC_SERVER_API_URL;
|
export const SERVER_API_URL = process.env.NEXT_PUBLIC_SERVER_API_URL;
|
||||||
export const NEXT_PUBLIC_DC_SERVICE_API_URL = process.env.NEXT_PUBLIC_DC_SERVICE_API_URL || `http://localhost:${PORT}`;
|
export const NEXT_PUBLIC_DC_SERVICE_API_URL =
|
||||||
|
process.env.NEXT_PUBLIC_DC_SERVICE_API_URL || `http://localhost:${PORT}`;
|
||||||
|
export const AUTH_LOGIN_REDIRECT_URL =
|
||||||
|
process.env.NEXT_PUBLIC_AUTH_LOGIN_REDIRECT_URL || "/auth/login";
|
||||||
|
|
||||||
// Flask API URL
|
// Flask API URL
|
||||||
export const FLASK_API_URL = process.env.NEXT_PUBLIC_FLASK_API_URL || "http://localhost:5000";
|
export const FLASK_API_URL =
|
||||||
|
process.env.NEXT_PUBLIC_FLASK_API_URL || "http://localhost:5000";
|
||||||
|
|
||||||
//export const SITE_ID = process.env.NEXT_PUBLIC_SITE_ID || "DC";
|
//export const SITE_ID = process.env.NEXT_PUBLIC_SITE_ID || "DC";
|
||||||
export const SITE_ID = "DC";
|
export const SITE_ID = "DC";
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ NEXT_PUBLIC_NGII_PARAM = 04trYP9_xwLAfALjwZ-B8g&service=WMTS&request=GetTile&ver
|
|||||||
NEXT_PUBLIC_GATEWAY_URL=http://con.mind-one.co.kr:11083 # 개발 서버 API
|
NEXT_PUBLIC_GATEWAY_URL=http://con.mind-one.co.kr:11083 # 개발 서버 API
|
||||||
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.128:8883/sewerage-service/api # 최용성
|
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.128:8883/sewerage-service/api # 최용성
|
||||||
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.66:8883/sewerage-service/api # 박이정
|
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.66:8883/sewerage-service/api # 박이정
|
||||||
NEXT_PUBLIC_CM_LOGIN_PAGE_URL = http://dev.onasys.co.kr:3000/auth/login
|
NEXT_PUBLIC_CM_LOGIN_PAGE_URL = /
|
||||||
|
|
||||||
|
|
||||||
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ NEXT_PUBLIC_SEWERAGE_API_URL=http://con.mind-one.co.kr:11083/sewerage-service
|
|||||||
NEXT_PUBLIC_GATEWAY_URL=http://con.mind-one.co.kr:11083 # 개발 서버 API
|
NEXT_PUBLIC_GATEWAY_URL=http://con.mind-one.co.kr:11083 # 개발 서버 API
|
||||||
# NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.128:8883/sewerage-service/api # 최용성
|
# NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.128:8883/sewerage-service/api # 최용성
|
||||||
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.66:8883/sewerage-service/api # 박이정
|
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.66:8883/sewerage-service/api # 박이정
|
||||||
NEXT_PUBLIC_CM_LOGIN_PAGE_URL = http://dev.onasys.co.kr:3000/auth/login
|
NEXT_PUBLIC_CM_LOGIN_PAGE_URL = /
|
||||||
|
|
||||||
|
|
||||||
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
## Project
|
||||||
|
This repository contains a Next.js web application.
|
||||||
|
|
||||||
|
Main technologies:
|
||||||
|
- Next.js
|
||||||
|
- TypeScript
|
||||||
|
- pnpm workspace
|
||||||
|
- turborepo
|
||||||
|
|
||||||
|
이 저장소는 pnpm workspace + Turborepo 기반 monorepo이다.
|
||||||
|
|
||||||
|
- 워크스페이스 범위는 `apps/*`, `apps/common/*`, `packages/*`, `packages/common/*`
|
||||||
|
- 루트 스크립트는 `turbo run build`, `turbo run dev` 를 사용한다
|
||||||
|
- `build` 작업은 의존 패키지의 `build` 를 먼저 수행한다 (`dependsOn: ["^build"]`)
|
||||||
|
- `dev` 는 캐시하지 않는 지속 실행 작업이다
|
||||||
|
- 변경 범위만 선택 실행할 수 있으므로, 전체 빌드보다 `--filter` 사용을 우선한다
|
||||||
|
|
||||||
|
## Encoding
|
||||||
|
- UTF-8
|
||||||
|
- 한글이 깨지지 않도록 주의할 것
|
||||||
|
|
||||||
|
## 주석 comment
|
||||||
|
- 한글 주석을 삭제하지 말 것
|
||||||
|
|
||||||
|
## Monorepo structure
|
||||||
|
apps/
|
||||||
|
_template
|
||||||
|
as
|
||||||
|
cm
|
||||||
|
cs
|
||||||
|
dc
|
||||||
|
dm
|
||||||
|
dm_new
|
||||||
|
fo
|
||||||
|
sn
|
||||||
|
st
|
||||||
|
wr
|
||||||
|
|
||||||
@@ -235,6 +235,7 @@ const Map = () => {
|
|||||||
<>
|
<>
|
||||||
<div className="bg-container">
|
<div className="bg-container">
|
||||||
<Gis
|
<Gis
|
||||||
|
showZoomLevel={true}
|
||||||
height='h-screen'
|
height='h-screen'
|
||||||
treeData={treeData}
|
treeData={treeData}
|
||||||
isSearch={false}
|
isSearch={false}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
"@eslint/eslintrc": "^3",
|
"@eslint/eslintrc": "^3",
|
||||||
"@types/webpack": "^5.28.5",
|
"@types/webpack": "^5.28.5",
|
||||||
"eslint": "^9",
|
"eslint": "^9",
|
||||||
"eslint-config-next": "15.1.7",
|
"eslint-config-next": "15.3.8",
|
||||||
"postcss": "^8",
|
"postcss": "^8",
|
||||||
"tailwindcss": "^3.4.1",
|
"tailwindcss": "^3.4.1",
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
|
|||||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -1,12 +1,13 @@
|
|||||||
NEXT_PUBLIC_SITE_ID = DN
|
NEXT_PUBLIC_SITE_ID = DN
|
||||||
|
NEXT_PUBLIC_PORT = 3015
|
||||||
NEXT_PUBLIC_CLAIM_NAME = Authorization
|
NEXT_PUBLIC_CLAIM_NAME = Authorization
|
||||||
NEXT_PUBLIC_AUTH_USER_ID = token-id
|
NEXT_PUBLIC_AUTH_USER_ID = token-id
|
||||||
NEXT_PUBLIC_ACCESS_TOKEN = access-token
|
NEXT_PUBLIC_ACCESS_TOKEN = access-token
|
||||||
NEXT_PUBLIC_REFRESH_TOKEN = refresh-token
|
NEXT_PUBLIC_REFRESH_TOKEN = refresh-token
|
||||||
NEXT_PUBLIC_PORT = 3005
|
|
||||||
NEXT_PUBLIC_PROXY_HOST = http://localhost:3005
|
NEXT_PUBLIC_PROXY_HOST = http://localhost:3005
|
||||||
NEXT_PUBLIC_CS_SERVER_API_URL = http://dev.onasys.co.kr:8000
|
NEXT_PUBLIC_CM_LOGIN_PAGE_URL = http://dev.onasys.co.kr:3000/auth/login
|
||||||
NEXT_PUBLIC_SERVER_API_URL = http://dev.onasys.co.kr:8000
|
NEXT_PUBLIC_SERVER_API_URL = http://dev.onasys.co.kr:8000
|
||||||
|
NEXT_PUBLIC_CS_SERVER_API_URL = http://dev.onasys.co.kr:8000
|
||||||
NEXT_PUBLIC_DM_SERVER_API_URL = http://con.mind-one.co.kr:11083/reuse-service/api/v1
|
NEXT_PUBLIC_DM_SERVER_API_URL = http://con.mind-one.co.kr:11083/reuse-service/api/v1
|
||||||
# NEXT_PUBLIC_FO_SERVER_API_URL = http://192.168.1.222:8883/operation-service/api/v1
|
# NEXT_PUBLIC_FO_SERVER_API_URL = http://192.168.1.222:8883/operation-service/api/v1
|
||||||
NEXT_PUBLIC_FO_SERVER_API_URL = http://con.mind-one.co.kr:11083/operation-service/api/v1
|
NEXT_PUBLIC_FO_SERVER_API_URL = http://con.mind-one.co.kr:11083/operation-service/api/v1
|
||||||
@@ -19,7 +20,6 @@ NEXT_PUBLIC_NGII_PARAM = 04trYP9_xwLAfALjwZ-B8g&service=WMTS&request=GetTile&ver
|
|||||||
NEXT_PUBLIC_GATEWAY_URL=http://con.mind-one.co.kr:11083 # 개발 서버 API
|
NEXT_PUBLIC_GATEWAY_URL=http://con.mind-one.co.kr:11083 # 개발 서버 API
|
||||||
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.128:8883/sewerage-service/api # 최용성
|
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.128:8883/sewerage-service/api # 최용성
|
||||||
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.66:8883/sewerage-service/api # 박이정
|
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.66:8883/sewerage-service/api # 박이정
|
||||||
NEXT_PUBLIC_CM_LOGIN_PAGE_URL = http://dev.onasys.co.kr:3000/auth/login
|
|
||||||
|
|
||||||
|
|
||||||
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
||||||
|
|||||||
@@ -1,23 +1,25 @@
|
|||||||
NEXT_PUBLIC_SITE_ID = DM
|
NEXT_PUBLIC_SITE_ID = DN
|
||||||
NEXT_PUBLIC_PORT = 11035
|
NEXT_PUBLIC_PORT = 11315
|
||||||
NEXT_PUBLIC_PROXY_HOST = http://con.mind-one.co.kr:11035
|
|
||||||
NEXT_PUBLIC_SERVER_API_URL = http://dev.onasys.co.kr:8000
|
|
||||||
NEXT_PUBLIC_DM_SERVER_API_URL = http://con.mind-one.co.kr:11083/reuse-service/api/v1
|
|
||||||
NEXT_PUBLIC_FO_SERVER_API_URL = http://con.mind-one.co.kr:11083/operation-service/api/v1
|
|
||||||
NEXT_PUBLIC_CS_SERVER_API_URL = http://dev.onasys.co.kr:8000
|
|
||||||
NEXT_PUBLIC_CS_TUS_UPLOAD = /attach-service/api/v1/tus/upload
|
|
||||||
NEXT_PUBLIC_CLAIM_NAME = Authorization
|
NEXT_PUBLIC_CLAIM_NAME = Authorization
|
||||||
NEXT_PUBLIC_AUTH_USER_ID = token-id
|
NEXT_PUBLIC_AUTH_USER_ID = token-id
|
||||||
NEXT_PUBLIC_ACCESS_TOKEN = access-token
|
NEXT_PUBLIC_ACCESS_TOKEN = access-token
|
||||||
NEXT_PUBLIC_REFRESH_TOKEN = refresh-token
|
NEXT_PUBLIC_REFRESH_TOKEN = refresh-token
|
||||||
|
NEXT_PUBLIC_PROXY_HOST = http://con.mind-one.co.kr:11315
|
||||||
|
NEXT_PUBLIC_CM_LOGIN_PAGE_URL = http://dev.onasys.co.kr:3000/auth/login
|
||||||
|
NEXT_PUBLIC_SERVER_API_URL = http://dev.onasys.co.kr:8000
|
||||||
|
NEXT_PUBLIC_CS_SERVER_API_URL = http://dev.onasys.co.kr:8000
|
||||||
|
NEXT_PUBLIC_DM_SERVER_API_URL = http://con.mind-one.co.kr:11083/reuse-service/api/v1
|
||||||
|
NEXT_PUBLIC_FO_SERVER_API_URL = http://con.mind-one.co.kr:11083/operation-service/api/v1
|
||||||
NEXT_PUBLIC_WR_SERVER_API_URL = http://con.mind-one.co.kr:11083/reuse-service/api/v1
|
NEXT_PUBLIC_WR_SERVER_API_URL = http://con.mind-one.co.kr:11083/reuse-service/api/v1
|
||||||
|
#NEXT_PUBLIC_GEOSERVER_URL = http://rsone.iptime.org:10010/geoserver
|
||||||
|
#NEXT_PUBLIC_LX_GEOSERVER_URL = http://con.mind-one.co.kr:11306/geoserver
|
||||||
|
NEXT_PUBLIC_CS_TUS_UPLOAD = /attach-service/api/v1/tus/upload
|
||||||
NEXT_PUBLIC_NGII_URL = https://map.ngii.go.kr
|
NEXT_PUBLIC_NGII_URL = https://map.ngii.go.kr
|
||||||
NEXT_PUBLIC_NGII_PARAM = 04trYP9_xwLAfALjwZ-B8g&service=WMTS&request=GetTile&version=1.0.0&format=image/png&layer=korean_map&style=korean&tilematrixset=korean&tilematrix={z}&tilecol={x}&tilerow={y}
|
NEXT_PUBLIC_NGII_PARAM = 04trYP9_xwLAfALjwZ-B8g&service=WMTS&request=GetTile&version=1.0.0&format=image/png&layer=korean_map&style=korean&tilematrixset=korean&tilematrix={z}&tilecol={x}&tilerow={y}
|
||||||
NEXT_PUBLIC_SEWERAGE_API_URL=http://con.mind-one.co.kr:11083/sewerage-service # 개발 서버 API
|
NEXT_PUBLIC_SEWERAGE_API_URL=http://con.mind-one.co.kr:11083/sewerage-service # 개발 서버 API
|
||||||
NEXT_PUBLIC_GATEWAY_URL=http://con.mind-one.co.kr:11083 # 개발 서버 API
|
NEXT_PUBLIC_GATEWAY_URL=http://con.mind-one.co.kr:11083 # 개발 서버 API
|
||||||
# NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.128:8883/sewerage-service/api # 최용성
|
# NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.128:8883/sewerage-service/api # 최용성
|
||||||
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.66:8883/sewerage-service/api # 박이정
|
#NEXT_PUBLIC_SEWERAGE_API_URL=http://192.168.1.66:8883/sewerage-service/api # 박이정
|
||||||
NEXT_PUBLIC_CM_LOGIN_PAGE_URL = http://dev.onasys.co.kr:3000/auth/login
|
|
||||||
|
|
||||||
|
|
||||||
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# 공단 운영
|
# 공단 운영
|
||||||
NEXT_PUBLIC_SITE_ID = DM
|
NEXT_PUBLIC_SITE_ID = DN
|
||||||
NEXT_PUBLIC_PORT = 3000
|
NEXT_PUBLIC_PORT = 3000
|
||||||
NEXT_PUBLIC_CLAIM_NAME = Authorization
|
NEXT_PUBLIC_CLAIM_NAME = Authorization
|
||||||
NEXT_PUBLIC_AUTH_USER_ID = token-id
|
NEXT_PUBLIC_AUTH_USER_ID = token-id
|
||||||
@@ -8,16 +8,16 @@ NEXT_PUBLIC_REFRESH_TOKEN = refresh-token
|
|||||||
#NEXT_PUBLIC_PROXY_HOST = https://devreuse.hasuon.or.kr
|
#NEXT_PUBLIC_PROXY_HOST = https://devreuse.hasuon.or.kr
|
||||||
#NEXT_PUBLIC_CM_LOGIN_PAGE_URL = https://devqueen.hasuon.or.kr/auth/login
|
#NEXT_PUBLIC_CM_LOGIN_PAGE_URL = https://devqueen.hasuon.or.kr/auth/login
|
||||||
NEXT_PUBLIC_SERVER_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000
|
NEXT_PUBLIC_SERVER_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000
|
||||||
NEXT_PUBLIC_FO_SERVER_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000/operation-service/api/v1
|
|
||||||
NEXT_PUBLIC_CS_SERVER_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000
|
NEXT_PUBLIC_CS_SERVER_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000
|
||||||
NEXT_PUBLIC_CS_TUS_UPLOAD = /attach-service/api/v1/tus/upload
|
NEXT_PUBLIC_FO_SERVER_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000/operation-service/api/v1
|
||||||
|
NEXT_PUBLIC_WR_SERVER_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000/reuse-service/api/v1
|
||||||
NEXT_PUBLIC_GEOSERVER_URL = http://172.29.143.87:8080/geoserver
|
NEXT_PUBLIC_GEOSERVER_URL = http://172.29.143.87:8080/geoserver
|
||||||
NEXT_PUBLIC_LX_GEOSERVER_URL = http://172.29.143.87:8080/geoserver_swl
|
NEXT_PUBLIC_LX_GEOSERVER_URL = http://172.29.143.87:8080/geoserver_swl
|
||||||
NEXT_PUBLIC_WR_SERVER_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000/reuse-service/api/v1
|
NEXT_PUBLIC_CS_TUS_UPLOAD = /attach-service/api/v1/tus/upload
|
||||||
NEXT_PUBLIC_SEWERAGE_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000/sewerage-service
|
NEXT_PUBLIC_SEWERAGE_API_URL = http://apigateway.iipbs-was.svc.cluster.local:8000/sewerage-service
|
||||||
NEXT_PUBLIC_GATEWAY_URL = http://apigateway.iipbs-was.svc.cluster.local:8000
|
|
||||||
NEXT_PUBLIC_NGII_URL = http://172.29.143.87/poiact
|
NEXT_PUBLIC_NGII_URL = http://172.29.143.87/poiact
|
||||||
NEXT_PUBLIC_NGII_PARAM = BDE2BEF39DAFEC293AB6730150F222AC&service=WMTS&request=GetTile&version=1.0.0&format=image/png&layer=korean_map&style=korean&tilematrixset=korean&tilematrix={z}&tilecol={y}&tilerow={x}
|
NEXT_PUBLIC_NGII_PARAM = BDE2BEF39DAFEC293AB6730150F222AC&service=WMTS&request=GetTile&version=1.0.0&format=image/png&layer=korean_map&style=korean&tilematrixset=korean&tilematrix={z}&tilecol={y}&tilerow={x}
|
||||||
|
NEXT_PUBLIC_GATEWAY_URL = http://apigateway.iipbs-was.svc.cluster.local:8000
|
||||||
|
|
||||||
|
|
||||||
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
NEXT_PUBLIC_FINDADRESS_URL=https://business.juso.go.kr/addrlink/addrLinkApi.do
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
## Project
|
||||||
|
This repository contains a Next.js web application.
|
||||||
|
|
||||||
|
Main technologies:
|
||||||
|
- Next.js
|
||||||
|
- TypeScript
|
||||||
|
- pnpm workspace
|
||||||
|
- turborepo
|
||||||
|
|
||||||
|
이 저장소는 pnpm workspace + Turborepo 기반 monorepo이다.
|
||||||
|
|
||||||
|
- 워크스페이스 범위는 `apps/*`, `apps/common/*`, `packages/*`, `packages/common/*`
|
||||||
|
- 루트 스크립트는 `turbo run build`, `turbo run dev` 를 사용한다
|
||||||
|
- `build` 작업은 의존 패키지의 `build` 를 먼저 수행한다 (`dependsOn: ["^build"]`)
|
||||||
|
- `dev` 는 캐시하지 않는 지속 실행 작업이다
|
||||||
|
- 변경 범위만 선택 실행할 수 있으므로, 전체 빌드보다 `--filter` 사용을 우선한다
|
||||||
|
|
||||||
|
## Encoding
|
||||||
|
- UTF-8
|
||||||
|
- 한글이 깨지지 않도록 주의할 것
|
||||||
|
|
||||||
|
## 주석 comment
|
||||||
|
- 한글 주석을 삭제하지 말 것
|
||||||
|
|
||||||
|
## Monorepo structure
|
||||||
|
apps/
|
||||||
|
_template
|
||||||
|
as
|
||||||
|
cm
|
||||||
|
cs
|
||||||
|
dc
|
||||||
|
dm
|
||||||
|
dm_new
|
||||||
|
fo
|
||||||
|
sn
|
||||||
|
st
|
||||||
|
wr
|
||||||
|
|
||||||
@@ -8,6 +8,7 @@ import React, {
|
|||||||
useRef,
|
useRef,
|
||||||
useState,
|
useState,
|
||||||
} from "react";
|
} from "react";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CaseTabsCarousel.tsx (FINAL OPTIMIZED)
|
* CaseTabsCarousel.tsx (FINAL OPTIMIZED)
|
||||||
@@ -459,10 +460,12 @@ export default function CaseTabsCarousel() {
|
|||||||
].join(" ")}
|
].join(" ")}
|
||||||
aria-label="이전"
|
aria-label="이전"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_left_arrow.png"
|
src="/images/landing/icon_left_arrow.png"
|
||||||
alt="이전"
|
alt="이전"
|
||||||
className="w-6 h-6 object-contain"
|
width={24}
|
||||||
|
height={24}
|
||||||
|
className="w-6 h-6 object-contain"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -480,10 +483,12 @@ export default function CaseTabsCarousel() {
|
|||||||
].join(" ")}
|
].join(" ")}
|
||||||
aria-label="다음"
|
aria-label="다음"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_right_arrow.png"
|
src="/images/landing/icon_right_arrow.png"
|
||||||
alt="다음"
|
alt="다음"
|
||||||
className="w-6 h-6 object-contain"
|
width={24}
|
||||||
|
height={24}
|
||||||
|
className="w-6 h-6 object-contain"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -513,10 +518,13 @@ export default function CaseTabsCarousel() {
|
|||||||
className="overflow-hidden rounded-[22px] border-2 border-sky-400 bg-white"
|
className="overflow-hidden rounded-[22px] border-2 border-sky-400 bg-white"
|
||||||
>
|
>
|
||||||
<div className="h-[241px] w-full bg-slate-100 border-b border-b-blue-300">
|
<div className="h-[241px] w-full bg-slate-100 border-b border-b-blue-300">
|
||||||
<img
|
<Image
|
||||||
src={c.imageSrc}
|
src={c.imageSrc}
|
||||||
alt={c.title}
|
alt={c.title}
|
||||||
|
width={640}
|
||||||
|
height={241}
|
||||||
className="h-full w-full object-cover"
|
className="h-full w-full object-cover"
|
||||||
|
style={{ width: "100%", height: "100%" }}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_components/ImageSlider.tsx
|
// apps/dm/app/(landing)/reuse/_components/ImageSlider.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
import { useEffect, useMemo, useRef, useState } from "react";
|
import { useEffect, useMemo, useRef, useState } from "react";
|
||||||
|
|
||||||
type Slide = { src: string; alt?: string };
|
type Slide = { src: string; alt?: string };
|
||||||
@@ -86,10 +87,12 @@ export default function CaseImageSlider({
|
|||||||
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
||||||
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_left_arrow.png"
|
src="/images/landing/icon_left_arrow.png"
|
||||||
alt="이전"
|
alt="이전"
|
||||||
className="w-[12px] h-[22px]"
|
width={12}
|
||||||
|
height={22}
|
||||||
|
className="w-[12px] h-[22px]"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -102,10 +105,12 @@ export default function CaseImageSlider({
|
|||||||
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
||||||
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_right_arrow.png"
|
src="/images/landing/icon_right_arrow.png"
|
||||||
alt="다음"
|
alt="다음"
|
||||||
className="w-[12px] h-[22px]"
|
width={12}
|
||||||
|
height={22}
|
||||||
|
className="w-[12px] h-[22px]"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -129,10 +134,13 @@ export default function CaseImageSlider({
|
|||||||
>
|
>
|
||||||
{safeSlides.map((s, i) => (
|
{safeSlides.map((s, i) => (
|
||||||
<div key={`${s.src}-${i}`} className="min-w-full">
|
<div key={`${s.src}-${i}`} className="min-w-full">
|
||||||
<img
|
<Image
|
||||||
src={s.src}
|
src={s.src}
|
||||||
alt={s.alt ?? `slide-${i + 1}`}
|
alt={s.alt ?? `slide-${i + 1}`}
|
||||||
|
width={583}
|
||||||
|
height={400}
|
||||||
className="w-full h-full object-contain"
|
className="w-full h-full object-contain"
|
||||||
|
style={{ width: "100%", height: "100%" }}
|
||||||
draggable={false}
|
draggable={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_components/Lnb.tsx
|
// apps/dm/app/(landing)/reuse/_components/Lnb.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import { useMemo, useState } from "react";
|
import { useMemo, useState } from "react";
|
||||||
@@ -29,7 +30,15 @@ export default function Lnb({ title, items }: { title: string; items: LnbItem[]
|
|||||||
const [openLabel, setOpenLabel] = useState<string | null>(defaultOpenLabel);
|
const [openLabel, setOpenLabel] = useState<string | null>(defaultOpenLabel);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<aside className="w-[260px] min-w-[260px] shrink-0">
|
<aside
|
||||||
|
className={[
|
||||||
|
"fixed left-0 top-[83px]", // ✅ 화면 고정 + TopNav 아래로
|
||||||
|
"w-[260px] min-w-[260px] shrink-0",
|
||||||
|
"h-[calc(100vh-83px)]", // ✅ 남은 높이만큼
|
||||||
|
"overflow-y-auto", // ✅ LNB 내부 스크롤
|
||||||
|
"bg-white z-50", // ✅ 겹침 방지
|
||||||
|
].join(" ")}
|
||||||
|
>
|
||||||
{/* 타이틀 */}
|
{/* 타이틀 */}
|
||||||
<div
|
<div
|
||||||
className="h-[120px] flex items-center justify-center
|
className="h-[120px] flex items-center justify-center
|
||||||
@@ -81,10 +90,12 @@ export default function Lnb({ title, items }: { title: string; items: LnbItem[]
|
|||||||
isOpen ? "rotate-180" : "rotate-0",
|
isOpen ? "rotate-180" : "rotate-0",
|
||||||
].join(" ")}
|
].join(" ")}
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/drop_arrow.svg"
|
src="/images/landing/drop_arrow.svg"
|
||||||
alt="드롭다운 화살표 아이콘"
|
alt="드롭다운 화살표 아이콘"
|
||||||
className="w-7 h-7"
|
width={28}
|
||||||
|
height={28}
|
||||||
|
className="w-7 h-7"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_components/TopNav.tsx
|
// apps/dm/app/(landing)/reuse/_components/TopNav.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useEffect, useId, useState } from "react";
|
import { useEffect, useId, useState } from "react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
@@ -367,10 +368,13 @@ export default function TopNav() {
|
|||||||
{/* 좌측: 로고 */}
|
{/* 좌측: 로고 */}
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<Link href="/reuse" className="flex items-center">
|
<Link href="/reuse" className="flex items-center">
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/logo.png"
|
src="/images/landing/logo.png"
|
||||||
alt="HASUON"
|
alt="HASUON"
|
||||||
|
width={229}
|
||||||
|
height={46}
|
||||||
className="h-9 w-auto"
|
className="h-9 w-auto"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
@@ -423,7 +427,13 @@ export default function TopNav() {
|
|||||||
>
|
>
|
||||||
로그인
|
로그인
|
||||||
<span aria-hidden>
|
<span aria-hidden>
|
||||||
<img src="/images/landing/icon_login.png" alt="로그인 아이콘" className="h-6 w-6 object-contain ml-1"/>
|
<Image
|
||||||
|
src="/images/landing/icon_login.png"
|
||||||
|
alt="로그인 아이콘"
|
||||||
|
width={24}
|
||||||
|
height={24}
|
||||||
|
className="h-6 w-6 object-contain ml-1"
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
@@ -438,7 +448,13 @@ export default function TopNav() {
|
|||||||
>
|
>
|
||||||
로그아웃
|
로그아웃
|
||||||
<span aria-hidden>
|
<span aria-hidden>
|
||||||
<img src="/images/landing/icon_logout.png" alt="로그아웃 아이콘" className="h-6 w-6 object-contain"/>
|
<Image
|
||||||
|
src="/images/landing/icon_logout.png"
|
||||||
|
alt="로그아웃 아이콘"
|
||||||
|
width={24}
|
||||||
|
height={24}
|
||||||
|
className="h-6 w-6 object-contain"
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,9 +1,22 @@
|
|||||||
|
/**
|
||||||
|
* IntersectionObserver로 각 section의 화면 노출 비율을 계산해서 가장 많이 보이는 section을 activeId로 만든다
|
||||||
|
*/
|
||||||
"use client";
|
"use client";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
|
const DEFAULT_THRESHOLD = [0, 0.01, 0.1, 0.25, 0.5, 0.75];
|
||||||
|
|
||||||
export function useScrollSpy(sectionIds: string[], options?: IntersectionObserverInit) {
|
export function useScrollSpy(sectionIds: string[], options?: IntersectionObserverInit) {
|
||||||
const [activeId, setActiveId] = useState(sectionIds[0] ?? "");
|
const [activeId, setActiveId] = useState(sectionIds[0] ?? "");
|
||||||
const ratiosRef = useRef<Map<string, number>>(new Map());
|
const ratiosRef = useRef<Map<string, number>>(new Map());
|
||||||
|
const activeIdRef = useRef(activeId);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
activeIdRef.current = activeId;
|
||||||
|
}, [activeId]);
|
||||||
|
|
||||||
|
const threshold = options?.threshold ?? DEFAULT_THRESHOLD;
|
||||||
|
const thresholdKey = Array.isArray(threshold) ? threshold.join("|") : String(threshold);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const els = sectionIds
|
const els = sectionIds
|
||||||
@@ -26,7 +39,7 @@ export function useScrollSpy(sectionIds: string[], options?: IntersectionObserve
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ✅ 전체 섹션 중 가장 ratio 큰 항목을 active로
|
// ✅ 전체 섹션 중 가장 ratio 큰 항목을 active로
|
||||||
let bestId = activeId;
|
let bestId = activeIdRef.current;
|
||||||
let bestRatio = -1;
|
let bestRatio = -1;
|
||||||
|
|
||||||
for (const [id, ratio] of ratiosRef.current.entries()) {
|
for (const [id, ratio] of ratiosRef.current.entries()) {
|
||||||
@@ -39,17 +52,15 @@ export function useScrollSpy(sectionIds: string[], options?: IntersectionObserve
|
|||||||
if (bestId) setActiveId(bestId);
|
if (bestId) setActiveId(bestId);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
root: null,
|
root: options?.root ?? null,
|
||||||
threshold: [0, 0.01, 0.1, 0.25, 0.5, 0.75],
|
threshold,
|
||||||
rootMargin: DEFAULT_ROOT_MARGIN,
|
rootMargin: options?.rootMargin ?? DEFAULT_ROOT_MARGIN,
|
||||||
...options,
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
els.forEach((el) => io.observe(el));
|
els.forEach((el) => io.observe(el));
|
||||||
return () => io.disconnect();
|
return () => io.disconnect();
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [sectionIds, options?.root, options?.rootMargin, threshold, thresholdKey]);
|
||||||
}, [sectionIds.join("|"), options?.rootMargin, JSON.stringify(options?.threshold)]);
|
|
||||||
|
|
||||||
return activeId;
|
return activeId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_sections/Cases.tsx
|
// apps/dm/app/(landing)/reuse/_sections/Cases.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
|
import section03 from "@/public/images/landing/section_03.png";
|
||||||
|
|
||||||
export default function Cases() {
|
export default function Cases() {
|
||||||
return (
|
return (
|
||||||
<section id="cases" className="bg-[#EAF6F6]">
|
<section id="cases" className="bg-[#EAF6F6]">
|
||||||
@@ -50,10 +53,11 @@ export default function Cases() {
|
|||||||
w-full max-w-[720px]
|
w-full max-w-[720px]
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/section_03.png"
|
src={section03}
|
||||||
alt="물 재이용 현황 데이터 테이블"
|
alt="물 재이용 현황 데이터 테이블"
|
||||||
className="w-full h-auto object-cover"
|
className="w-full h-auto object-cover"
|
||||||
|
style={{ width: "100%", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -62,4 +66,4 @@ export default function Cases() {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_sections/Hero.tsx
|
// apps/dm/app/(landing)/reuse/_sections/Hero.tsx
|
||||||
|
import Image from "next/image";
|
||||||
import styles from "../reuse.module.css";
|
import styles from "../reuse.module.css";
|
||||||
|
|
||||||
export default function Hero() {
|
export default function Hero() {
|
||||||
@@ -21,9 +22,15 @@ export default function Hero() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="absolute inset-x-0 bottom-[120px] flex flex-col items-center justify-items-center gap-2 mt-10">
|
<div className="absolute inset-x-0 bottom-[120px] flex flex-col items-center justify-items-center gap-2 mt-10">
|
||||||
<img src="/images/landing/scroll_down.svg" alt="" className="w-[26px] h-[40px]" />
|
<Image
|
||||||
|
src="/images/landing/scroll_down.svg"
|
||||||
|
alt=""
|
||||||
|
width={26}
|
||||||
|
height={40}
|
||||||
|
className="w-[26px] h-[40px]"
|
||||||
|
/>
|
||||||
<span className="text-white/80 text-base tracking-[.25em]">scroll down</span>
|
<span className="text-white/80 text-base tracking-[.25em]">scroll down</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_sections/IntroCards.tsx
|
// apps/dm/app/(landing)/reuse/_sections/IntroCards.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import card01 from "@/public/images/landing/card_01.jpg";
|
||||||
|
import card02 from "@/public/images/landing/card_02.jpg";
|
||||||
|
import card03 from "@/public/images/landing/card_03.jpg";
|
||||||
|
import card04 from "@/public/images/landing/card_04.jpg";
|
||||||
|
|
||||||
type IntroCardItem = {
|
type IntroCardItem = {
|
||||||
title: string;
|
title: string;
|
||||||
desc: string;
|
desc: string;
|
||||||
image: string;
|
image: StaticImageData;
|
||||||
href: string;
|
href: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -14,25 +19,25 @@ const INTRO_CARDS: IntroCardItem[] = [
|
|||||||
{
|
{
|
||||||
title: "물 재이용 법",
|
title: "물 재이용 법",
|
||||||
desc: "물의 재이용 촉진 및 지원에 관한 법률을 시행하고, 일부 법률은 개정되었습니다.",
|
desc: "물의 재이용 촉진 및 지원에 관한 법률을 시행하고, 일부 법률은 개정되었습니다.",
|
||||||
image: "/images/landing/card_01.jpg",
|
image: card01,
|
||||||
href: "/reuse/intro/law",
|
href: "/reuse/intro/law",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "친환경 수자원 빗물",
|
title: "친환경 수자원 빗물",
|
||||||
desc: "가뭄을 극복하고 홍수를 예방하기 위해 비가 내릴 때 빗물을 모아두었다가 사용합니다.",
|
desc: "가뭄을 극복하고 홍수를 예방하기 위해 비가 내릴 때 빗물을 모아두었다가 사용합니다.",
|
||||||
image: "/images/landing/card_02.jpg",
|
image: card02,
|
||||||
href: "/reuse/intro/rain",
|
href: "/reuse/intro/rain",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "알뜰하게 재이용되는 중수",
|
title: "알뜰하게 재이용되는 중수",
|
||||||
desc: "한번 사용한 물을 중수도 시설을 통해 재생하여 개별적 또는 지역적으로 재이용할 수 있습니다.",
|
desc: "한번 사용한 물을 중수도 시설을 통해 재생하여 개별적 또는 지역적으로 재이용할 수 있습니다.",
|
||||||
image: "/images/landing/card_03.jpg",
|
image: card03,
|
||||||
href: "/reuse/intro/greywater",
|
href: "/reuse/intro/greywater",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "하수처리수 재이용",
|
title: "하수처리수 재이용",
|
||||||
desc: "사용하고 버려진 공공하수처리장으로 모여진 물을 용도에 맞는 처리 후 재이용 할 수 있습니다.",
|
desc: "사용하고 버려진 공공하수처리장으로 모여진 물을 용도에 맞는 처리 후 재이용 할 수 있습니다.",
|
||||||
image: "/images/landing/card_04.jpg",
|
image: card04,
|
||||||
href: "/reuse/intro/treated",
|
href: "/reuse/intro/treated",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -61,10 +66,12 @@ export default function IntroCards() {
|
|||||||
className="group relative h-[280px] md:h-[320px] lg:h-[500px] overflow-hidden rounded-2xl cursor-pointer focus:outline-none focus:ring-2 focus:ring-sky-400/60"
|
className="group relative h-[280px] md:h-[320px] lg:h-[500px] overflow-hidden rounded-2xl cursor-pointer focus:outline-none focus:ring-2 focus:ring-sky-400/60"
|
||||||
>
|
>
|
||||||
{/* 배경 이미지 (이미 그라디언트 포함) */}
|
{/* 배경 이미지 (이미 그라디언트 포함) */}
|
||||||
<img
|
<Image
|
||||||
src={card.image}
|
src={card.image}
|
||||||
alt={card.title}
|
alt={card.title}
|
||||||
className="absolute inset-0 h-full w-full object-cover transition-transform duration-500 hover:scale-105"
|
fill
|
||||||
|
sizes="(min-width: 1024px) 25vw, (min-width: 768px) 50vw, 100vw"
|
||||||
|
className="absolute inset-0 h-full w-full object-cover transition-transform duration-500 hover:scale-105"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* 텍스트 영역 */}
|
{/* 텍스트 영역 */}
|
||||||
@@ -83,4 +90,4 @@ export default function IntroCards() {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export default function CandidateSiteModal({
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
{/* panel */}
|
{/* panel */}
|
||||||
<div className="relative w-[94vw] max-w-[1400px] rounded-xl bg-white shadow-xl">
|
<div className="relative w-[94vw] max-w-[1700px] rounded-xl bg-white shadow-xl">
|
||||||
{/* header */}
|
{/* header */}
|
||||||
<div className="flex items-center justify-between px-8 py-6">
|
<div className="flex items-center justify-between px-8 py-6">
|
||||||
<h2 className="text-2xl font-extrabold text-neutral-900">후보지 조회</h2>
|
<h2 className="text-2xl font-extrabold text-neutral-900">후보지 조회</h2>
|
||||||
|
|||||||
@@ -0,0 +1,544 @@
|
|||||||
|
// apps/dm/app/(landing)/reuse/apply/modal/SimilarCaseModal.tsx (유사사례 모달)
|
||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useEffect, useMemo, useState, useId } from "react";
|
||||||
|
import { createPortal } from "react-dom";
|
||||||
|
|
||||||
|
type Criterion = "" | "supplyAmt" | "treatment" | "usePurpose";
|
||||||
|
|
||||||
|
export type SimilarCaseRow = {
|
||||||
|
caseId: string;
|
||||||
|
projectName: string;
|
||||||
|
period: string;
|
||||||
|
|
||||||
|
supplyFacilityType?: string;
|
||||||
|
supplyName?: string;
|
||||||
|
supplyCapacity?: number;
|
||||||
|
|
||||||
|
demandName?: string;
|
||||||
|
demandAddress?: string;
|
||||||
|
|
||||||
|
facilityCapacity?: number;
|
||||||
|
pipeKm?: number;
|
||||||
|
purpose?: string;
|
||||||
|
|
||||||
|
// 유사기준용
|
||||||
|
supplyAmt?: number; // 공급량(m3/일)
|
||||||
|
treatment?: string; // 처리공법
|
||||||
|
usePurpose?: string; // 이용용도
|
||||||
|
};
|
||||||
|
|
||||||
|
export type SimilarCaseDetail = {
|
||||||
|
// 보증수질
|
||||||
|
coliform?: string;
|
||||||
|
residualCl?: string;
|
||||||
|
turbidity?: string;
|
||||||
|
bod?: string;
|
||||||
|
odor?: string;
|
||||||
|
color?: string;
|
||||||
|
tn?: string;
|
||||||
|
tp?: string;
|
||||||
|
ph?: string;
|
||||||
|
chloride?: string;
|
||||||
|
ec?: string;
|
||||||
|
note?: string;
|
||||||
|
|
||||||
|
// 소요사업비(백만원) - 현재 타입에 있는 항목만 매핑
|
||||||
|
costTotal?: number;
|
||||||
|
costFacility?: number;
|
||||||
|
costPipe?: number;
|
||||||
|
costDesign?: number;
|
||||||
|
costSupervision?: number;
|
||||||
|
costOther?: number;
|
||||||
|
|
||||||
|
// 재원조달계획(백만원)
|
||||||
|
fundingTotal?: number;
|
||||||
|
fundingNational?: number;
|
||||||
|
fundingLocal?: number;
|
||||||
|
fundingSelf?: number;
|
||||||
|
fundingRate?: number; // %
|
||||||
|
};
|
||||||
|
|
||||||
|
function formatNumber(v: any) {
|
||||||
|
if (v === null || v === undefined || v === "" || Number.isNaN(Number(v))) return "-";
|
||||||
|
const n = typeof v === "number" ? v : Number(String(v).replaceAll(",", ""));
|
||||||
|
if (!Number.isFinite(n)) return "-";
|
||||||
|
return n.toLocaleString("ko-KR");
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function SimilarCaseModal({
|
||||||
|
open,
|
||||||
|
onClose,
|
||||||
|
rows,
|
||||||
|
detailsByCaseId,
|
||||||
|
onSearch
|
||||||
|
}: {
|
||||||
|
open: boolean;
|
||||||
|
onClose: () => void;
|
||||||
|
rows: SimilarCaseRow[];
|
||||||
|
detailsByCaseId: Record<string, SimilarCaseDetail | undefined>;
|
||||||
|
onSearch :(criterion: Criterion) => void;
|
||||||
|
}) {
|
||||||
|
const titleId = useId();
|
||||||
|
|
||||||
|
const [mounted, setMounted] = useState(false);
|
||||||
|
const [criterion, setCriterion] = useState<Criterion>("supplyAmt");
|
||||||
|
const [selectedCaseId, setSelectedCaseId] = useState<string>("");
|
||||||
|
|
||||||
|
useEffect(() => setMounted(true), []);
|
||||||
|
|
||||||
|
// 모달 열릴 때 초기화
|
||||||
|
useEffect(() => {
|
||||||
|
if (!open) return;
|
||||||
|
setCriterion("supplyAmt");
|
||||||
|
onSearch("supplyAmt");
|
||||||
|
setSelectedCaseId("");
|
||||||
|
}, [open]);
|
||||||
|
|
||||||
|
// ESC 닫기 + 배경 스크롤 잠금
|
||||||
|
useEffect(() => {
|
||||||
|
if (!open) return;
|
||||||
|
|
||||||
|
const onKeyDown = (e: KeyboardEvent) => {
|
||||||
|
if (e.key === "Escape") onClose();
|
||||||
|
};
|
||||||
|
window.addEventListener("keydown", onKeyDown);
|
||||||
|
|
||||||
|
const prevOverflow = document.body.style.overflow;
|
||||||
|
document.body.style.overflow = "hidden";
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
window.removeEventListener("keydown", onKeyDown);
|
||||||
|
document.body.style.overflow = prevOverflow;
|
||||||
|
};
|
||||||
|
}, [open, onClose]);
|
||||||
|
|
||||||
|
const groupInfo = useMemo(() => {
|
||||||
|
const counts = new Map<string, number>();
|
||||||
|
rows.forEach((r) => counts.set(r.caseId, (counts.get(r.caseId) ?? 0) + 1));
|
||||||
|
|
||||||
|
const firstIndex = new Map<string, number>();
|
||||||
|
rows.forEach((r, idx) => {
|
||||||
|
if (!firstIndex.has(r.caseId)) firstIndex.set(r.caseId, idx);
|
||||||
|
});
|
||||||
|
|
||||||
|
return { counts, firstIndex };
|
||||||
|
}, [rows]);
|
||||||
|
|
||||||
|
const selectedDetail = selectedCaseId ? detailsByCaseId[selectedCaseId] : undefined;
|
||||||
|
|
||||||
|
// open 타입 방어
|
||||||
|
if (typeof open !== "boolean") {
|
||||||
|
console.error("SimilarCaseModal: open prop is not boolean:", open);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!open || !mounted) return null;
|
||||||
|
|
||||||
|
const tdBase =
|
||||||
|
"border border-[#C9C9C9] px-2 py-2 text-sm text-neutral-800 align-middle";
|
||||||
|
const thBase =
|
||||||
|
"border border-[#C9C9C9] bg-[#E7F4E2] px-2 py-2 text-sm font-semibold text-neutral-800 text-center align-middle";
|
||||||
|
|
||||||
|
const highlightTd = "bg-neutral-200";
|
||||||
|
|
||||||
|
const showList = criterion !== "";
|
||||||
|
const hasRows = rows.length > 0;
|
||||||
|
|
||||||
|
const ui = (
|
||||||
|
<div className="fixed inset-0 z-[1000] flex items-center justify-center">
|
||||||
|
{/* overlay */}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="absolute inset-0 bg-black/30"
|
||||||
|
aria-label="모달 닫기"
|
||||||
|
onClick={onClose}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* panel */}
|
||||||
|
<div
|
||||||
|
role="dialog"
|
||||||
|
aria-modal="true"
|
||||||
|
aria-labelledby={titleId}
|
||||||
|
className="relative w-[94vw] max-w-[1700px] rounded-xl bg-white shadow-xl"
|
||||||
|
>
|
||||||
|
{/* header */}
|
||||||
|
<div className="flex items-center justify-between px-8 py-6">
|
||||||
|
<h2 id={titleId} className="text-2xl font-extrabold text-neutral-900">
|
||||||
|
유사사례 조회
|
||||||
|
</h2>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
aria-label="닫기"
|
||||||
|
onClick={onClose}
|
||||||
|
className="grid h-10 w-10 place-items-center rounded-sm hover:bg-neutral-100 focus:outline-none focus:ring-2 focus:ring-neutral-300"
|
||||||
|
>
|
||||||
|
✕
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div className="h-px w-full bg-neutral-200" />
|
||||||
|
|
||||||
|
{/* body */}
|
||||||
|
<div className="px-8 py-6">
|
||||||
|
{/* 상단 타이틀 + 유사기준 */}
|
||||||
|
<div className="mb-4 flex items-center justify-between">
|
||||||
|
<div className="text-lg font-semibold text-neutral-900">
|
||||||
|
물 재이용 사업 유사 사례
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="flex items-center gap-3">
|
||||||
|
<span className="text-sm font-semibold text-neutral-800">유사기준</span>
|
||||||
|
<select
|
||||||
|
value={criterion}
|
||||||
|
onChange={(e) => {
|
||||||
|
const v = e.target.value as Criterion;
|
||||||
|
setCriterion(v);
|
||||||
|
setSelectedCaseId("");
|
||||||
|
|
||||||
|
if(v){
|
||||||
|
onSearch(v);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
className="h-10 w-[180px] rounded-md border border-neutral-300 bg-white px-3 text-sm outline-none focus:border-neutral-500"
|
||||||
|
>
|
||||||
|
<option value="supplyAmt">공급량</option>
|
||||||
|
<option value="usePurpose">이용용도</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 리스트 영역 */}
|
||||||
|
<div className="border border-[#C9C9C9] bg-white">
|
||||||
|
{!showList ? (
|
||||||
|
<div className="grid min-h-[260px] place-items-center bg-emerald-50/30">
|
||||||
|
<div className="text-neutral-500">유사기준을 선택해주세요.</div>
|
||||||
|
</div>
|
||||||
|
) : !hasRows ? (
|
||||||
|
<div className="grid min-h-[260px] place-items-center bg-emerald-50/30">
|
||||||
|
<div className="text-neutral-500">조회 결과가 없습니다.</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
// 여기만 스크롤: rows가 4개/더 많아져서 높이를 넘으면 자동 스크롤 생성
|
||||||
|
<div className="max-h-[300px] overflow-y-auto overflow-x-auto">
|
||||||
|
<table className="w-full border-collapse">
|
||||||
|
{/* thead sticky: bg + shadow + z-index로 겹침/투명 방지 */}
|
||||||
|
<thead className="sticky top-0 z-20 bg-[#EAF5F5] shadow-sm">
|
||||||
|
<tr>
|
||||||
|
<th rowSpan={2} className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
선택
|
||||||
|
</th>
|
||||||
|
<th rowSpan={2} className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
사업명
|
||||||
|
</th>
|
||||||
|
<th rowSpan={2} className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
사업기간
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th colSpan={3} className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
공급처
|
||||||
|
</th>
|
||||||
|
<th colSpan={2} className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
수요처
|
||||||
|
</th>
|
||||||
|
<th colSpan={6} className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
재이용시설
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>시설<br/>종류</th>
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>공급처명</th>
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
시설용량
|
||||||
|
<br />
|
||||||
|
(m³/일)
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>수요처명</th>
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>주소</th>
|
||||||
|
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
시설용량
|
||||||
|
<br />
|
||||||
|
(m³/일)
|
||||||
|
</th>
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
관로
|
||||||
|
<br />
|
||||||
|
(km)
|
||||||
|
</th>
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>용도</th>
|
||||||
|
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>
|
||||||
|
공급량
|
||||||
|
<br />
|
||||||
|
(m³/일)
|
||||||
|
</th>
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>처리공법</th>
|
||||||
|
<th className={`${thBase} bg-[#EAF5F5]`}>이용용도</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
{rows.map((r, idx) => {
|
||||||
|
const isFirst = groupInfo.firstIndex.get(r.caseId) === idx;
|
||||||
|
const rowSpan = groupInfo.counts.get(r.caseId) ?? 1;
|
||||||
|
const selected = selectedCaseId === r.caseId;
|
||||||
|
|
||||||
|
const supplyAmtCls = criterion === "supplyAmt" ? highlightTd : "";
|
||||||
|
const treatmentCls = criterion === "treatment" ? highlightTd : "";
|
||||||
|
const usePurposeCls = criterion === "usePurpose" ? highlightTd : "";
|
||||||
|
|
||||||
|
return (
|
||||||
|
<tr
|
||||||
|
key={`${r.caseId}-${idx}`}
|
||||||
|
className={[
|
||||||
|
"cursor-pointer hover:bg-neutral-50",
|
||||||
|
selected ? "bg-sky-50" : "",
|
||||||
|
].join(" ")}
|
||||||
|
onClick={() => setSelectedCaseId(r.caseId)}
|
||||||
|
>
|
||||||
|
{isFirst ? (
|
||||||
|
<>
|
||||||
|
<td className={`${tdBase} text-center`} rowSpan={rowSpan}>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
checked={selected}
|
||||||
|
readOnly
|
||||||
|
className="h-4 w-4"
|
||||||
|
/>
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-center`} rowSpan={rowSpan}>
|
||||||
|
{r.projectName ?? "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-center`} rowSpan={rowSpan}>
|
||||||
|
{r.period ?? "-"}
|
||||||
|
</td>
|
||||||
|
</>
|
||||||
|
) : null}
|
||||||
|
|
||||||
|
<td className={`${tdBase} text-center`}>{r.supplyFacilityType ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{r.supplyName ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{formatNumber(r.supplyCapacity)}</td>
|
||||||
|
|
||||||
|
<td className={`${tdBase} text-center`}>{r.demandName ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{r.demandAddress ?? "-"}</td>
|
||||||
|
|
||||||
|
<td className={`${tdBase} text-center`}>{formatNumber(r.facilityCapacity)}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{formatNumber(r.pipeKm)}</td>
|
||||||
|
<td className={tdBase}>{r.purpose ?? "-"}</td>
|
||||||
|
|
||||||
|
<td className={`${tdBase} text-center ${supplyAmtCls}`}>
|
||||||
|
{formatNumber(r.supplyAmt)}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-center ${treatmentCls}`}>
|
||||||
|
{r.treatment ?? "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-center ${usePurposeCls}`}>
|
||||||
|
{r.usePurpose ?? "-"}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr className="my-6 border-y-[1px] border-[#C9C9C9]" />
|
||||||
|
|
||||||
|
{/* 상세정보 */}
|
||||||
|
<div className="mt-0">
|
||||||
|
<div className="mb-2 text-lg font-semibold text-neutral-900">상세정보</div>
|
||||||
|
|
||||||
|
{/* 1) 보증수질 */}
|
||||||
|
<div className="overflow-hidden border border-[#C9C9C9]">
|
||||||
|
<table className="w-full border-collapse">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colSpan={13} className={thBase}>
|
||||||
|
보증수질
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th rowSpan={2} className={thBase}>
|
||||||
|
총대장균군수<br />(개/100ml)
|
||||||
|
</th>
|
||||||
|
<th rowSpan={2} className={thBase}>
|
||||||
|
용도별 결합 잔류염소<br />(mg/L)
|
||||||
|
</th>
|
||||||
|
<th rowSpan={2} className={thBase}>
|
||||||
|
탁도<br />(NTU)
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th className={thBase}>
|
||||||
|
생물학적<br />산소요구량(BOD)(mg/L)
|
||||||
|
</th>
|
||||||
|
<th className={thBase}>냄새</th>
|
||||||
|
<th className={thBase}>색도(도)</th>
|
||||||
|
<th className={thBase}>총질소<br />(T-N)(mg/L)</th>
|
||||||
|
<th className={thBase}>총인<br />(T-P)(mg/L)</th>
|
||||||
|
<th className={thBase}>수소이온<br />농도(pH)</th>
|
||||||
|
<th className={thBase}>염화물<br />(mgCL/L)</th>
|
||||||
|
<th className={thBase}>전기전도도<br />(μs/cm)</th>
|
||||||
|
<th className={thBase}>비고</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.coliform ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.residualCl ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.turbidity ?? "-"}</td>
|
||||||
|
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.bod ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.odor ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.color ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.tn ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.tp ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.ph ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.chloride ?? "-"}</td>
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.ec ?? "-"}</td>
|
||||||
|
|
||||||
|
<td className={`${tdBase} text-center`}>{selectedDetail?.note ?? "-"}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 2) 사업비 */}
|
||||||
|
<div className="mt-4 overflow-hidden border border-[#C9C9C9]">
|
||||||
|
<table className="w-full border-collapse">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colSpan={14} className={thBase}>
|
||||||
|
소요사업비(백만원)
|
||||||
|
</th>
|
||||||
|
<th colSpan={5} className={thBase}>
|
||||||
|
재원조달계획(백만원)
|
||||||
|
</th>
|
||||||
|
<th colSpan={5} className={thBase}>
|
||||||
|
사업비 정산(백만원)
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
{/* 소요사업비 */}
|
||||||
|
<th rowSpan={2} className={thBase}>총</th>
|
||||||
|
<th colSpan={2} className={thBase}>토목</th>
|
||||||
|
<th rowSpan={2} className={thBase}>건축</th>
|
||||||
|
<th rowSpan={2} className={thBase}>기계</th>
|
||||||
|
<th rowSpan={2} className={thBase}>전기<br />·계측</th>
|
||||||
|
<th rowSpan={2} className={thBase}>GIS<br />DB</th>
|
||||||
|
<th rowSpan={2} className={thBase}>CCTV</th>
|
||||||
|
<th rowSpan={2} className={thBase}>시공 및 준공</th>
|
||||||
|
<th rowSpan={2} className={thBase}>폐기물</th>
|
||||||
|
<th rowSpan={2} className={thBase}>설계비</th>
|
||||||
|
<th rowSpan={2} className={thBase}>감리비</th>
|
||||||
|
<th rowSpan={2} className={thBase}>시설부대</th>
|
||||||
|
<th rowSpan={2} className={thBase}>기타</th>
|
||||||
|
|
||||||
|
{/* 재원조달 */}
|
||||||
|
<th rowSpan={2} className={thBase}>총</th>
|
||||||
|
<th rowSpan={2} className={thBase}>국비</th>
|
||||||
|
<th rowSpan={2} className={thBase}>지방비</th>
|
||||||
|
<th rowSpan={2} className={thBase}>원인자부담</th>
|
||||||
|
<th rowSpan={2} className={thBase}>국고비율</th>
|
||||||
|
|
||||||
|
{/* 정산 */}
|
||||||
|
<th rowSpan={2} className={thBase}>총</th>
|
||||||
|
<th rowSpan={2} className={thBase}>국비</th>
|
||||||
|
<th rowSpan={2} className={thBase}>지방비</th>
|
||||||
|
<th rowSpan={2} className={thBase}>원인자부담</th>
|
||||||
|
<th rowSpan={2} className={thBase}>국고비율</th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th className={thBase}>재이용<br />시설</th>
|
||||||
|
<th className={thBase}>관로</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
{/* 소요사업비 */}
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.costTotal != null ? formatNumber(selectedDetail.costTotal) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.costFacility != null ? formatNumber(selectedDetail.costFacility) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.costPipe != null ? formatNumber(selectedDetail.costPipe) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-center`}>-</td>
|
||||||
|
<td className={`${tdBase} text-center`}>-</td>
|
||||||
|
<td className={`${tdBase} text-center`}>-</td>
|
||||||
|
<td className={`${tdBase} text-center`}>-</td>
|
||||||
|
<td className={`${tdBase} text-center`}>-</td>
|
||||||
|
<td className={`${tdBase} text-center`}>-</td>
|
||||||
|
<td className={`${tdBase} text-center`}>-</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.costDesign != null ? formatNumber(selectedDetail.costDesign) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.costSupervision != null ? formatNumber(selectedDetail.costSupervision) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-center`}>-</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.costOther != null ? formatNumber(selectedDetail.costOther) : "-"}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
{/* 재원조달 */}
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.fundingTotal != null ? formatNumber(selectedDetail.fundingTotal) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.fundingNational != null ? formatNumber(selectedDetail.fundingNational) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.fundingLocal != null ? formatNumber(selectedDetail.fundingLocal) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.fundingSelf != null ? formatNumber(selectedDetail.fundingSelf) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-center`}>
|
||||||
|
{typeof selectedDetail?.fundingRate === "number" ? `${selectedDetail.fundingRate}%` : "-"}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
{/* 정산(필드 없으면 동일 값 표시) */}
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.fundingTotal != null ? formatNumber(selectedDetail.fundingTotal) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.fundingNational != null ? formatNumber(selectedDetail.fundingNational) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.fundingLocal != null ? formatNumber(selectedDetail.fundingLocal) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-right`}>
|
||||||
|
{selectedDetail?.fundingSelf != null ? formatNumber(selectedDetail.fundingSelf) : "-"}
|
||||||
|
</td>
|
||||||
|
<td className={`${tdBase} text-center`}>
|
||||||
|
{typeof selectedDetail?.fundingRate === "number" ? `${selectedDetail.fundingRate}%` : "-"}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{!selectedCaseId && showList ? (
|
||||||
|
<div className="mt-3 text-sm text-neutral-500">
|
||||||
|
리스트에서 사업을 선택하면 상세정보가 표시됩니다.
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
return createPortal(ui, document.body);
|
||||||
|
}
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
// apps/dm/app/(landing)/reuse/apply/register/page.tsx
|
// apps/dm/app/(landing)/reuse/apply/register/page.tsx (수요정보등록 페이지)
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useMemo, useState, useRef } from "react";
|
import { useMemo, useState, useRef } from "react";
|
||||||
import SubPageHeader from "../../_components/SubPageHeader";
|
import SubPageHeader from "../../_components/SubPageHeader";
|
||||||
import WaterQualityRefModal from "../modal/WaterQualityRefModal";
|
import WaterQualityRefModal from "../modal/WaterQualityRefModal";
|
||||||
import CandidateSiteModal, { type CandidateSite } from "../modal/CandidateSiteModal";
|
import CandidateSiteModal, { type CandidateSite } from "../modal/CandidateSiteModal";
|
||||||
|
import SimilarCaseModal, { type SimilarCaseRow, type SimilarCaseDetail } from "../modal/SimilarCaseModal";
|
||||||
|
|
||||||
type PHRange = { min: string; max: string };
|
type PHRange = { min: string; max: string };
|
||||||
|
|
||||||
@@ -22,6 +23,141 @@ export default function DemandRegisterPage() {
|
|||||||
const [openCand, setOpenCand] = useState(false);
|
const [openCand, setOpenCand] = useState(false);
|
||||||
const [selectedCands, setSelectedCands] = useState<CandidateSite[]>([]);
|
const [selectedCands, setSelectedCands] = useState<CandidateSite[]>([]);
|
||||||
|
|
||||||
|
// 유사사례 모달
|
||||||
|
const [openSimilar, setOpenSimilar] = useState(false);
|
||||||
|
|
||||||
|
// 유사사례 rows (목업) - API 연동 시 여기만 교체
|
||||||
|
// const rows: SimilarCaseRow[] = useMemo(
|
||||||
|
// () => [
|
||||||
|
// {
|
||||||
|
// caseId: "C-001",
|
||||||
|
// projectName: "OO시 물 재이용(빗물, 중수도) 시설 설치사업",
|
||||||
|
// period: "2020.01. ~ 2025.05.",
|
||||||
|
// supplyFacilityType: "중수도",
|
||||||
|
// supplyName: "OO새교복지타운",
|
||||||
|
// supplyCapacity: 0,
|
||||||
|
// demandName: "OO새교복지타운",
|
||||||
|
// demandAddress: "OO시 수청로 192",
|
||||||
|
// facilityCapacity: 50,
|
||||||
|
// pipeKm: 0,
|
||||||
|
// purpose: "청소, 화장실, 조경",
|
||||||
|
// supplyAmt: 50,
|
||||||
|
// treatment: "MBLM",
|
||||||
|
// usePurpose: "청소,화장실",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// caseId: "C-001",
|
||||||
|
// projectName: "OO시 물 재이용(빗물, 중수도) 시설 설치사업",
|
||||||
|
// period: "2020.01. ~ 2025.05.",
|
||||||
|
// supplyFacilityType: "중수도",
|
||||||
|
// supplyName: "OO스포츠센터",
|
||||||
|
// supplyCapacity: 0,
|
||||||
|
// demandName: "OO스포츠센터",
|
||||||
|
// demandAddress: "OO시 경기동로 33",
|
||||||
|
// facilityCapacity: 50,
|
||||||
|
// pipeKm: 0,
|
||||||
|
// purpose: "청소, 화장실, 조경",
|
||||||
|
// supplyAmt: 50,
|
||||||
|
// treatment: "MBLM",
|
||||||
|
// usePurpose: "청소,화장실",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// caseId: "C-002",
|
||||||
|
// projectName: "OO 엄성저수지 하수처리수 재이용사업",
|
||||||
|
// period: "2019.12 ~ 2026.01",
|
||||||
|
// supplyFacilityType: "하수",
|
||||||
|
// supplyName: "OO 3,4단계 공공하수처리시설",
|
||||||
|
// supplyCapacity: 70000,
|
||||||
|
// demandName: "OO천",
|
||||||
|
// demandAddress: "-",
|
||||||
|
// facilityCapacity: 0,
|
||||||
|
// pipeKm: 3,
|
||||||
|
// purpose: "하천 등 유지용수",
|
||||||
|
// supplyAmt: 2300,
|
||||||
|
// treatment: "탈황,총인, 생물산화과,소독",
|
||||||
|
// usePurpose: "하천 등 유지용수",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// caseId: "C-002",
|
||||||
|
// projectName: "OO 엄성저수지 하수처리수 재이용사업",
|
||||||
|
// period: "2019.12 ~ 2026.01",
|
||||||
|
// supplyFacilityType: "하수",
|
||||||
|
// supplyName: "OO 3,4단계 공공하수처리시설",
|
||||||
|
// supplyCapacity: 70000,
|
||||||
|
// demandName: "OO저수지",
|
||||||
|
// demandAddress: "-",
|
||||||
|
// facilityCapacity: 0,
|
||||||
|
// pipeKm: 5,
|
||||||
|
// purpose: "하천 등 유지용수",
|
||||||
|
// supplyAmt: 7700,
|
||||||
|
// treatment: "탈황,총인, 생물산화과,소독",
|
||||||
|
// usePurpose: "하천 등 유지용수",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// []
|
||||||
|
// );
|
||||||
|
|
||||||
|
// 유사사례 상세(목업) - caseId로 매핑
|
||||||
|
// const detailsByCaseId: Record<string, SimilarCaseDetail> = useMemo(
|
||||||
|
// () => ({
|
||||||
|
// "C-001": {
|
||||||
|
// coliform: "불검출",
|
||||||
|
// residualCl: "0.2이상",
|
||||||
|
// turbidity: "1.5이하",
|
||||||
|
// bod: "4.0이하",
|
||||||
|
// odor: "불쾌하지않을것",
|
||||||
|
// color: "10이하",
|
||||||
|
// tn: "-",
|
||||||
|
// tp: "-",
|
||||||
|
// ph: "5.8~8.5",
|
||||||
|
// chloride: "-",
|
||||||
|
// ec: "-",
|
||||||
|
// note: "-",
|
||||||
|
|
||||||
|
// costTotal: 4305,
|
||||||
|
// costFacility: 3518,
|
||||||
|
// costPipe: undefined,
|
||||||
|
// costDesign: 350,
|
||||||
|
// costSupervision: 417,
|
||||||
|
// costOther: 12,
|
||||||
|
|
||||||
|
// fundingTotal: 4305,
|
||||||
|
// fundingNational: 3104,
|
||||||
|
// fundingLocal: 1291,
|
||||||
|
// fundingSelf: undefined,
|
||||||
|
// fundingRate: 70.0,
|
||||||
|
// },
|
||||||
|
// "C-002": {
|
||||||
|
// coliform: "불검출",
|
||||||
|
// residualCl: "0.15이상",
|
||||||
|
// turbidity: "2.0이하",
|
||||||
|
// bod: "5.0이하",
|
||||||
|
// odor: "무",
|
||||||
|
// color: "10이하",
|
||||||
|
// tn: "-",
|
||||||
|
// tp: "-",
|
||||||
|
// ph: "6.0~8.5",
|
||||||
|
// chloride: "-",
|
||||||
|
// ec: "-",
|
||||||
|
// note: "-",
|
||||||
|
|
||||||
|
// costTotal: 9800,
|
||||||
|
// costFacility: 2100,
|
||||||
|
// costPipe: 1800,
|
||||||
|
// costDesign: 300,
|
||||||
|
// costSupervision: 280,
|
||||||
|
// costOther: 1200,
|
||||||
|
|
||||||
|
// fundingTotal: 9800,
|
||||||
|
// fundingNational: 4900,
|
||||||
|
// fundingLocal: 3000,
|
||||||
|
// fundingSelf: 1900,
|
||||||
|
// fundingRate: 50,
|
||||||
|
// },
|
||||||
|
// }),
|
||||||
|
// []
|
||||||
|
// );
|
||||||
|
|
||||||
// 기본정보
|
// 기본정보
|
||||||
const [reqDate, setReqDate] = useState<string>(today);
|
const [reqDate, setReqDate] = useState<string>(today);
|
||||||
const [reqQty, setReqQty] = useState<string>("");
|
const [reqQty, setReqQty] = useState<string>("");
|
||||||
@@ -49,264 +185,458 @@ export default function DemandRegisterPage() {
|
|||||||
const [cand2, setCand2] = useState("");
|
const [cand2, setCand2] = useState("");
|
||||||
const [cand3, setCand3] = useState("");
|
const [cand3, setCand3] = useState("");
|
||||||
|
|
||||||
|
// 샘플 데이터
|
||||||
|
const similarRows: SimilarCaseRow[] = [
|
||||||
|
// ---------------- A (2행) ----------------
|
||||||
|
{
|
||||||
|
caseId: "A",
|
||||||
|
projectName: "OO시 물 재이용(빗물, 중수도) 시설 설치사업",
|
||||||
|
period: "2020.01.~2025.05.",
|
||||||
|
supplyFacilityType: "중수도",
|
||||||
|
supplyName: "OO폐수재이용",
|
||||||
|
supplyCapacity: 50,
|
||||||
|
|
||||||
|
demandName: "OO시체육센터",
|
||||||
|
demandAddress: "OO시 수성로 192",
|
||||||
|
|
||||||
|
facilityCapacity: 50,
|
||||||
|
pipeKm: 3,
|
||||||
|
purpose: "조경",
|
||||||
|
supplyAmt: 50,
|
||||||
|
treatment: "MBLM",
|
||||||
|
usePurpose: "청소, 화장실",
|
||||||
|
},
|
||||||
|
// A의 공급처 row 추가(=표 1행 추가) → 나머지 컬럼도 같이 채움
|
||||||
|
{
|
||||||
|
caseId: "A",
|
||||||
|
projectName: "OO시 물 재이용(빗물, 중수도) 시설 설치사업",
|
||||||
|
period: "2020.01.~2025.05.",
|
||||||
|
supplyFacilityType: "중수도",
|
||||||
|
supplyName: "OO스포츠센터",
|
||||||
|
supplyCapacity: 30,
|
||||||
|
|
||||||
|
demandName: "OO시체육센터",
|
||||||
|
demandAddress: "OO시 수성로 192",
|
||||||
|
|
||||||
|
facilityCapacity: 50,
|
||||||
|
pipeKm: 3,
|
||||||
|
purpose: "조경",
|
||||||
|
supplyAmt: 50,
|
||||||
|
treatment: "MBLM",
|
||||||
|
usePurpose: "청소, 화장실",
|
||||||
|
},
|
||||||
|
|
||||||
|
// ---------------- B (2행) ----------------
|
||||||
|
{
|
||||||
|
caseId: "B",
|
||||||
|
projectName: "OO 염성저수지 하수처리수 재이용사업",
|
||||||
|
period: "2019.12~2026.1",
|
||||||
|
supplyFacilityType: "하수",
|
||||||
|
supplyName: "OO3.4단계 공공하수처리시설",
|
||||||
|
supplyCapacity: 70000,
|
||||||
|
|
||||||
|
demandName: "OO천",
|
||||||
|
demandAddress: "-",
|
||||||
|
|
||||||
|
facilityCapacity: 0,
|
||||||
|
pipeKm: 3,
|
||||||
|
purpose: "하천 등 유지용수",
|
||||||
|
supplyAmt: 2300,
|
||||||
|
treatment: "탈황, 총인, 생물산화, 소독",
|
||||||
|
usePurpose: "하천 등 유지용수",
|
||||||
|
},
|
||||||
|
// B의 공급처 row 추가(=표 1행 추가)
|
||||||
|
{
|
||||||
|
caseId: "B",
|
||||||
|
projectName: "OO 염성저수지 하수처리수 재이용사업",
|
||||||
|
period: "2019.12~2026.1",
|
||||||
|
supplyFacilityType: "하수",
|
||||||
|
supplyName: "OO3.4단계 공공하수처리시설(2라인)",
|
||||||
|
supplyCapacity: 70000,
|
||||||
|
|
||||||
|
demandName: "OO저수지",
|
||||||
|
demandAddress: "-",
|
||||||
|
|
||||||
|
facilityCapacity: 0,
|
||||||
|
pipeKm: 5,
|
||||||
|
purpose: "하천 등 유지용수",
|
||||||
|
supplyAmt: 7700,
|
||||||
|
treatment: "탈황, 총인, 생물산화, 소독",
|
||||||
|
usePurpose: "하천 등 유지용수",
|
||||||
|
},
|
||||||
|
|
||||||
|
// ---------------- C (1행) ----------------
|
||||||
|
{
|
||||||
|
caseId: "C",
|
||||||
|
projectName: "OO 산업단지 공업용수 재이용사업",
|
||||||
|
period: "2021.03~2024.12",
|
||||||
|
supplyFacilityType: "하수",
|
||||||
|
supplyName: "OO공공하수처리장",
|
||||||
|
supplyCapacity: 15000,
|
||||||
|
|
||||||
|
demandName: "OO산업단지",
|
||||||
|
demandAddress: "OO시 산업로 25",
|
||||||
|
|
||||||
|
facilityCapacity: 5000,
|
||||||
|
pipeKm: 4,
|
||||||
|
purpose: "공업용수",
|
||||||
|
supplyAmt: 5000,
|
||||||
|
treatment: "UF + RO",
|
||||||
|
usePurpose: "공업용수",
|
||||||
|
},
|
||||||
|
|
||||||
|
// ---------------- D (1행) ----------------
|
||||||
|
{
|
||||||
|
caseId: "D",
|
||||||
|
projectName: "OO 공원 조경용수 재이용사업",
|
||||||
|
period: "2018.05~2022.11",
|
||||||
|
supplyFacilityType: "중수도",
|
||||||
|
supplyName: "OO정수장",
|
||||||
|
supplyCapacity: 8000,
|
||||||
|
|
||||||
|
demandName: "OO중앙공원",
|
||||||
|
demandAddress: "OO시 공원로 88",
|
||||||
|
|
||||||
|
facilityCapacity: 1200,
|
||||||
|
pipeKm: 2,
|
||||||
|
purpose: "조경용수",
|
||||||
|
supplyAmt: 1200,
|
||||||
|
treatment: "모래여과",
|
||||||
|
usePurpose: "조경",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const similarDetailsByCaseId: Record<string, SimilarCaseDetail> = {
|
||||||
|
A: {
|
||||||
|
coliform: "불검출",
|
||||||
|
residualCl: "0.2이상",
|
||||||
|
turbidity: "1.5이하",
|
||||||
|
bod: "4.0이하",
|
||||||
|
odor: "불쾌하지않을것",
|
||||||
|
color: "10이하",
|
||||||
|
tn: "-",
|
||||||
|
tp: "-",
|
||||||
|
ph: "5.8~8.5",
|
||||||
|
chloride: "-",
|
||||||
|
ec: "-",
|
||||||
|
note: "-",
|
||||||
|
costTotal: 4305,
|
||||||
|
costFacility: 3518,
|
||||||
|
costPipe: 0,
|
||||||
|
costDesign: 350,
|
||||||
|
costSupervision: 417,
|
||||||
|
costOther: 12,
|
||||||
|
fundingTotal: 4305,
|
||||||
|
fundingNational: 3104,
|
||||||
|
fundingLocal: 1291,
|
||||||
|
fundingSelf: 0,
|
||||||
|
fundingRate: 70.0,
|
||||||
|
},
|
||||||
|
B: {
|
||||||
|
coliform: "-",
|
||||||
|
residualCl: "-",
|
||||||
|
turbidity: "-",
|
||||||
|
bod: "-",
|
||||||
|
odor: "-",
|
||||||
|
color: "-",
|
||||||
|
tn: "-",
|
||||||
|
tp: "-",
|
||||||
|
ph: "-",
|
||||||
|
chloride: "-",
|
||||||
|
ec: "-",
|
||||||
|
note: "-",
|
||||||
|
costTotal: 0,
|
||||||
|
costFacility: 0,
|
||||||
|
costPipe: 0,
|
||||||
|
costDesign: 0,
|
||||||
|
costSupervision: 0,
|
||||||
|
costOther: 0,
|
||||||
|
fundingTotal: 0,
|
||||||
|
fundingNational: 0,
|
||||||
|
fundingLocal: 0,
|
||||||
|
fundingSelf: 0,
|
||||||
|
fundingRate: 0,
|
||||||
|
},
|
||||||
|
C: {
|
||||||
|
coliform: "불검출",
|
||||||
|
residualCl: "0.2이상",
|
||||||
|
turbidity: "1.5이하",
|
||||||
|
bod: "4.0이하",
|
||||||
|
odor: "불쾌하지않을것",
|
||||||
|
color: "10이하",
|
||||||
|
tn: "-",
|
||||||
|
tp: "-",
|
||||||
|
ph: "5.8~8.5",
|
||||||
|
chloride: "-",
|
||||||
|
ec: "-",
|
||||||
|
note: "-",
|
||||||
|
costTotal: 4305,
|
||||||
|
costFacility: 3518,
|
||||||
|
costPipe: 0,
|
||||||
|
costDesign: 350,
|
||||||
|
costSupervision: 417,
|
||||||
|
costOther: 12,
|
||||||
|
fundingTotal: 4305,
|
||||||
|
fundingNational: 3104,
|
||||||
|
fundingLocal: 1291,
|
||||||
|
fundingSelf: 0,
|
||||||
|
fundingRate: 70.0,
|
||||||
|
},
|
||||||
|
D: {
|
||||||
|
coliform: "-",
|
||||||
|
residualCl: "-",
|
||||||
|
turbidity: "-",
|
||||||
|
bod: "-",
|
||||||
|
odor: "-",
|
||||||
|
color: "-",
|
||||||
|
tn: "-",
|
||||||
|
tp: "-",
|
||||||
|
ph: "-",
|
||||||
|
chloride: "-",
|
||||||
|
ec: "-",
|
||||||
|
note: "-",
|
||||||
|
costTotal: 0,
|
||||||
|
costFacility: 0,
|
||||||
|
costPipe: 0,
|
||||||
|
costDesign: 0,
|
||||||
|
costSupervision: 0,
|
||||||
|
costOther: 0,
|
||||||
|
fundingTotal: 0,
|
||||||
|
fundingNational: 0,
|
||||||
|
fundingLocal: 0,
|
||||||
|
fundingSelf: 0,
|
||||||
|
fundingRate: 0,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<main className="bg-white">
|
||||||
<main className="bg-white">
|
<SubPageHeader
|
||||||
|
title="수요정보등록"
|
||||||
{/* 서브 타이틀 + 브레드크럼 */}
|
crumbs={[
|
||||||
<SubPageHeader
|
{ label: "Home", href: "/reuse" },
|
||||||
title="수요정보등록"
|
{ label: "수요신청", href: "/reuse/apply" },
|
||||||
crumbs={[
|
{ label: "수요정보등록" },
|
||||||
{ label: "Home", href: "/reuse" },
|
]}
|
||||||
{ label: "수요신청", href: "/reuse/apply" },
|
|
||||||
{ label: "수요정보등록" },
|
|
||||||
]}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* 컨텐츠 영역 */}
|
|
||||||
<div>
|
|
||||||
|
|
||||||
{/* 기본정보 테이블 */}
|
|
||||||
<div className="border border-neutral-200 bg-white">
|
|
||||||
<FormRow label="요구시기" required>
|
|
||||||
<DateInput value={reqDate} onChange={setReqDate} />
|
|
||||||
</FormRow>
|
|
||||||
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
<FormRow label="요구수량(m²/d)" required>
|
|
||||||
<TextInput value={reqQty} onChange={setReqQty} placeholder="" />
|
|
||||||
</FormRow>
|
|
||||||
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
<FormRow label="사용용도" required>
|
|
||||||
<TextInput value={usePurpose} onChange={setUsePurpose} />
|
|
||||||
</FormRow>
|
|
||||||
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
<FormRow label="희망단가(원)" required>
|
|
||||||
<TextInput value={hopePrice} onChange={setHopePrice} />
|
|
||||||
</FormRow>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* 요구수질 섹션 타이틀 바 */}
|
|
||||||
<div className="grid grid-cols-12">
|
|
||||||
<div className="col-span-12 lg:col-span-2 inline-flex justify-center items-center gap-3 px-6 py-6 text-center">
|
|
||||||
<span className="text-lg font-semibold text-neutral-800">요구수질</span>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={() => setOpenRef(true)}
|
|
||||||
className="rounded border-[2px] border-[#DE3412] px-2 py-3 text-[15px] font-medium text-[#4F4F4F] hover:bg-orange-50"
|
|
||||||
>
|
|
||||||
수질기준 참고
|
|
||||||
</button>
|
|
||||||
{/* 수질기준참고 모달 */}
|
|
||||||
<WaterQualityRefModal
|
|
||||||
open={openRef}
|
|
||||||
onClose={() => setOpenRef(false)}
|
|
||||||
imageSrc="/images/landing/water_quality_ref_1.png"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* 요구수질 테이블 */}
|
|
||||||
<div className="border border-neutral-200 bg-white">
|
|
||||||
{/* 1행 */}
|
|
||||||
<QualityRow
|
|
||||||
leftLabel="총대장균군수(개/mg)"
|
|
||||||
leftRequired
|
|
||||||
leftControl={
|
|
||||||
<div className="flex items-center gap-4">
|
|
||||||
<TextInput
|
|
||||||
value={coliform}
|
|
||||||
onChange={setColiform}
|
|
||||||
disabled={noDetect}
|
|
||||||
className={noDetect ? "bg-neutral-100 text-neutral-400" : ""}
|
|
||||||
/>
|
|
||||||
<label className="flex items-center gap-2 text-sm text-neutral-700">
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
checked={noDetect}
|
|
||||||
onChange={(e) => {
|
|
||||||
setNoDetect(e.target.checked);
|
|
||||||
if (e.target.checked) setColiform("");
|
|
||||||
}}
|
|
||||||
className="h-4 w-4 rounded border-neutral-300"
|
|
||||||
/>
|
|
||||||
불검출
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
rightLabel="총질소(T-N)(mg/L)"
|
|
||||||
rightControl={
|
|
||||||
<InlineSuffixInput value={tn} onChange={setTn} suffix="이하" />
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
{/* 2행 */}
|
|
||||||
<QualityRow
|
|
||||||
leftLabel="결합잔류염소(mg/L)"
|
|
||||||
leftRequired
|
|
||||||
leftControl={<TextInput value={residualCl} onChange={setResidualCl} />}
|
|
||||||
rightLabel="총인(T-P)(mg/L)"
|
|
||||||
rightControl={
|
|
||||||
<InlineSuffixInput value={tp} onChange={setTp} suffix="이하" />
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
{/* 3행 */}
|
|
||||||
<QualityRow
|
|
||||||
leftLabel="탁도(NTU)"
|
|
||||||
leftRequired
|
|
||||||
leftControl={
|
|
||||||
<InlineSuffixInput value={turbidity} onChange={setTurbidity} suffix="이하" />
|
|
||||||
}
|
|
||||||
rightLabel="수소이온농도(pH)"
|
|
||||||
rightControl={
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<TextInput
|
|
||||||
value={ph.min}
|
|
||||||
onChange={(v) => setPh((p) => ({ ...p, min: v }))}
|
|
||||||
className="w-32"
|
|
||||||
/>
|
|
||||||
<span className="text-neutral-500">~</span>
|
|
||||||
<TextInput
|
|
||||||
value={ph.max}
|
|
||||||
onChange={(v) => setPh((p) => ({ ...p, max: v }))}
|
|
||||||
className="w-32"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
{/* 4행 */}
|
|
||||||
<QualityRow
|
|
||||||
leftLabel={
|
|
||||||
<>
|
|
||||||
생물화학적산소요구량
|
|
||||||
<br />
|
|
||||||
(BOD)(mg/L)
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
leftRequired
|
|
||||||
leftControl={<InlineSuffixInput value={bod} onChange={setBod} suffix="이하" />}
|
|
||||||
rightLabel="염화물(mgCL/L)"
|
|
||||||
rightControl={<InlineSuffixInput value={chloride} onChange={setChloride} suffix="이하" />}
|
|
||||||
/>
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
{/* 5행 */}
|
|
||||||
<QualityRow
|
|
||||||
leftLabel="냄새"
|
|
||||||
leftRequired
|
|
||||||
leftControl={
|
|
||||||
<select
|
|
||||||
value={odor}
|
|
||||||
onChange={(e) => setOdor(e.target.value)}
|
|
||||||
className="h-11 w-full max-w-[200px] rounded-md border border-neutral-300 bg-white px-3 text-sm outline-none focus:border-neutral-500"
|
|
||||||
>
|
|
||||||
<option>불쾌하지 않을 것</option>
|
|
||||||
<option>약간 있음</option>
|
|
||||||
<option>있음</option>
|
|
||||||
</select>
|
|
||||||
}
|
|
||||||
rightLabel="전기전도도(µs/cm)"
|
|
||||||
rightControl={<InlineSuffixInput value={ec} onChange={setEc} suffix="이하" />}
|
|
||||||
/>
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
{/* 6행 */}
|
|
||||||
<QualityRow
|
|
||||||
leftLabel="색도(도)"
|
|
||||||
leftRequired
|
|
||||||
leftControl={<InlineSuffixInput value={color} onChange={setColor} suffix="이하" />}
|
|
||||||
rightLabel="비고"
|
|
||||||
rightControl={
|
|
||||||
<textarea
|
|
||||||
value={remark}
|
|
||||||
onChange={(e) => setRemark(e.target.value)}
|
|
||||||
className="h-11 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm outline-none focus:border-neutral-500"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Divider />
|
|
||||||
|
|
||||||
{/* 후보지 선택 */}
|
|
||||||
<div className="grid grid-cols-12">
|
|
||||||
<LabelCell>
|
|
||||||
공급처 후보지 선택
|
|
||||||
<br />
|
|
||||||
(필수아님)
|
|
||||||
</LabelCell>
|
|
||||||
|
|
||||||
<div className="col-span-12 md:col-span-10 p-6">
|
|
||||||
<div className="flex flex-col gap-3 xl:flex-row xl:items-center xl:gap-4">
|
|
||||||
<TextInput value={cand1} onChange={setCand1} className="max-w-[220px]" />
|
|
||||||
<TextInput value={cand2} onChange={setCand2} className="max-w-[220px]" />
|
|
||||||
<TextInput value={cand3} onChange={setCand3} className="max-w-[220px]" />
|
|
||||||
|
|
||||||
<div className="flex items-center gap-3 xl:ml-2">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className="h-11 rounded-md bg-[#888] px-5 text-base text-white hover:bg-neutral-700"
|
|
||||||
onClick={() => setOpenCand(true)}
|
|
||||||
>
|
|
||||||
후보지 조회
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className="h-11 rounded-md bg-[#888] px-5 text-base text-white hover:bg-neutral-600"
|
|
||||||
onClick={() => {
|
|
||||||
// TODO: 유사사례 연결
|
|
||||||
console.log("유사사례");
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
유사사례
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* 하단 버튼 */}
|
|
||||||
<div className="flex justify-center py-12">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className="h-11 rounded-md bg-[#0B4EA2] px-10 text-lg text-white hover:opacity-90"
|
|
||||||
onClick={() => {
|
|
||||||
// TODO: 저장 처리
|
|
||||||
console.log("수요정보 등록");
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
수요정보 등록
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<CandidateSiteModal
|
|
||||||
open={openCand}
|
|
||||||
onClose={() => setOpenCand(false)}
|
|
||||||
initialSelected={selectedCands}
|
|
||||||
onApply={(list) => {
|
|
||||||
setSelectedCands(list);
|
|
||||||
|
|
||||||
// ✅ cand1~3 입력칸에 반영(시설명만 넣는 버전)
|
|
||||||
setCand1(list[0]?.name ?? "");
|
|
||||||
setCand2(list[1]?.name ?? "");
|
|
||||||
setCand3(list[2]?.name ?? "");
|
|
||||||
|
|
||||||
setOpenCand(false);
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div className="border border-neutral-200 bg-white">
|
||||||
|
<FormRow label="요구시기" required>
|
||||||
|
<DateInput value={reqDate} onChange={setReqDate} />
|
||||||
|
</FormRow>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<FormRow label="요구수량(m²/d)" required>
|
||||||
|
<TextInput value={reqQty} onChange={setReqQty} />
|
||||||
|
</FormRow>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<FormRow label="사용용도" required>
|
||||||
|
<TextInput value={usePurpose} onChange={setUsePurpose} />
|
||||||
|
</FormRow>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<FormRow label="희망단가(원)" required>
|
||||||
|
<TextInput value={hopePrice} onChange={setHopePrice} />
|
||||||
|
</FormRow>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid grid-cols-12">
|
||||||
|
<div className="col-span-12 lg:col-span-2 inline-flex items-center justify-center gap-3 px-6 py-6 text-center">
|
||||||
|
<span className="text-lg font-semibold text-neutral-800">요구수질</span>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() => setOpenRef(true)}
|
||||||
|
className="rounded border-[2px] border-[#DE3412] px-2 py-3 text-[15px] font-medium text-[#4F4F4F] hover:bg-orange-50"
|
||||||
|
>
|
||||||
|
수질기준 참고
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<WaterQualityRefModal
|
||||||
|
open={openRef}
|
||||||
|
onClose={() => setOpenRef(false)}
|
||||||
|
imageSrc="/images/landing/water_quality_ref_1.png"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="border border-neutral-200 bg-white">
|
||||||
|
<QualityRow
|
||||||
|
leftLabel="총대장균군수(개/mg)"
|
||||||
|
leftRequired
|
||||||
|
leftControl={
|
||||||
|
<div className="flex items-center gap-4">
|
||||||
|
<TextInput
|
||||||
|
value={coliform}
|
||||||
|
onChange={setColiform}
|
||||||
|
disabled={noDetect}
|
||||||
|
className={noDetect ? "bg-neutral-100 text-neutral-400" : ""}
|
||||||
|
/>
|
||||||
|
<label className="flex items-center gap-2 text-sm text-neutral-700">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
checked={noDetect}
|
||||||
|
onChange={(e) => {
|
||||||
|
setNoDetect(e.target.checked);
|
||||||
|
if (e.target.checked) setColiform("");
|
||||||
|
}}
|
||||||
|
className="h-4 w-4 rounded border-neutral-300"
|
||||||
|
/>
|
||||||
|
불검출
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
rightLabel="총질소(T-N)(mg/L)"
|
||||||
|
rightControl={<InlineSuffixInput value={tn} onChange={setTn} suffix="이하" />}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<QualityRow
|
||||||
|
leftLabel="결합잔류염소(mg/L)"
|
||||||
|
leftRequired
|
||||||
|
leftControl={<TextInput value={residualCl} onChange={setResidualCl} />}
|
||||||
|
rightLabel="총인(T-P)(mg/L)"
|
||||||
|
rightControl={<InlineSuffixInput value={tp} onChange={setTp} suffix="이하" />}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<QualityRow
|
||||||
|
leftLabel="탁도(NTU)"
|
||||||
|
leftRequired
|
||||||
|
leftControl={<InlineSuffixInput value={turbidity} onChange={setTurbidity} suffix="이하" />}
|
||||||
|
rightLabel="수소이온농도(pH)"
|
||||||
|
rightControl={
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<TextInput value={ph.min} onChange={(v) => setPh((p) => ({ ...p, min: v }))} className="w-32" />
|
||||||
|
<span className="text-neutral-500">~</span>
|
||||||
|
<TextInput value={ph.max} onChange={(v) => setPh((p) => ({ ...p, max: v }))} className="w-32" />
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<QualityRow
|
||||||
|
leftLabel={
|
||||||
|
<>
|
||||||
|
생물화학적산소요구량
|
||||||
|
<br />
|
||||||
|
(BOD)(mg/L)
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
leftRequired
|
||||||
|
leftControl={<InlineSuffixInput value={bod} onChange={setBod} suffix="이하" />}
|
||||||
|
rightLabel="염화물(mgCL/L)"
|
||||||
|
rightControl={<InlineSuffixInput value={chloride} onChange={setChloride} suffix="이하" />}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<QualityRow
|
||||||
|
leftLabel="냄새"
|
||||||
|
leftRequired
|
||||||
|
leftControl={
|
||||||
|
<select
|
||||||
|
value={odor}
|
||||||
|
onChange={(e) => setOdor(e.target.value)}
|
||||||
|
className="h-11 w-full max-w-[200px] rounded-md border border-neutral-300 bg-white px-3 text-sm outline-none focus:border-neutral-500"
|
||||||
|
>
|
||||||
|
<option>불쾌하지 않을 것</option>
|
||||||
|
<option>약간 있음</option>
|
||||||
|
<option>있음</option>
|
||||||
|
</select>
|
||||||
|
}
|
||||||
|
rightLabel="전기전도도(µs/cm)"
|
||||||
|
rightControl={<InlineSuffixInput value={ec} onChange={setEc} suffix="이하" />}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<QualityRow
|
||||||
|
leftLabel="색도(도)"
|
||||||
|
leftRequired
|
||||||
|
leftControl={<InlineSuffixInput value={color} onChange={setColor} suffix="이하" />}
|
||||||
|
rightLabel="비고"
|
||||||
|
rightControl={
|
||||||
|
<textarea
|
||||||
|
value={remark}
|
||||||
|
onChange={(e) => setRemark(e.target.value)}
|
||||||
|
className="h-11 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm outline-none focus:border-neutral-500"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<div className="grid grid-cols-12">
|
||||||
|
<LabelCell>
|
||||||
|
공급처 후보지 선택
|
||||||
|
<br />
|
||||||
|
(필수아님)
|
||||||
|
</LabelCell>
|
||||||
|
|
||||||
|
<div className="col-span-12 md:col-span-10 p-6">
|
||||||
|
<div className="flex flex-col gap-3 xl:flex-row xl:items-center xl:gap-4">
|
||||||
|
<TextInput value={cand1} onChange={setCand1} className="max-w-[220px]" />
|
||||||
|
<TextInput value={cand2} onChange={setCand2} className="max-w-[220px]" />
|
||||||
|
<TextInput value={cand3} onChange={setCand3} className="max-w-[220px]" />
|
||||||
|
|
||||||
|
<div className="flex items-center gap-3 xl:ml-2">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="h-11 rounded-md bg-[#888] px-5 text-base text-white hover:bg-neutral-700"
|
||||||
|
onClick={() => setOpenCand(true)}
|
||||||
|
>
|
||||||
|
후보지 조회
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="h-11 rounded-md bg-[#888] px-5 text-base text-white hover:bg-neutral-700"
|
||||||
|
onClick={() => setOpenSimilar(true)}
|
||||||
|
>
|
||||||
|
유사사례 조회
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="flex justify-center py-12">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="h-11 rounded-md bg-[#0B4EA2] px-10 text-lg text-white hover:opacity-90"
|
||||||
|
onClick={() => console.log("수요정보 등록")}
|
||||||
|
>
|
||||||
|
수요정보 등록
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{/* 후보지 조회 모달 */}
|
||||||
|
<CandidateSiteModal
|
||||||
|
open={openCand}
|
||||||
|
onClose={() => setOpenCand(false)}
|
||||||
|
initialSelected={selectedCands}
|
||||||
|
onApply={(list) => {
|
||||||
|
setSelectedCands(list);
|
||||||
|
setCand1(list[0]?.name ?? "");
|
||||||
|
setCand2(list[1]?.name ?? "");
|
||||||
|
setCand3(list[2]?.name ?? "");
|
||||||
|
setOpenCand(false);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* 유사사례 모달 */}
|
||||||
|
<SimilarCaseModal
|
||||||
|
open={openSimilar}
|
||||||
|
onClose={() => setOpenSimilar(false)}
|
||||||
|
rows={similarRows}
|
||||||
|
detailsByCaseId={similarDetailsByCaseId}
|
||||||
|
onSearch={async (criterion) => {
|
||||||
|
console.log(criterion);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -325,7 +655,7 @@ function LabelCell({
|
|||||||
required?: boolean;
|
required?: boolean;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className="col-span-12 md:col-span-2 flex items-center justify-center text-center bg-emerald-50/70 px-6 py-6 text-lg font-semibold text-neutral-800">
|
<div className="col-span-12 md:col-span-2 flex items-center justify-center bg-emerald-50/70 px-6 py-6 text-center text-lg font-semibold text-neutral-800">
|
||||||
<span className="inline-flex items-center gap-1">
|
<span className="inline-flex items-center gap-1">
|
||||||
{children}
|
{children}
|
||||||
{required ? <span className="text-red-500">*</span> : null}
|
{required ? <span className="text-red-500">*</span> : null}
|
||||||
@@ -366,23 +696,19 @@ function QualityRow({
|
|||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className="grid grid-cols-12">
|
<div className="grid grid-cols-12">
|
||||||
{/* 좌측 라벨 */}
|
<div className="col-span-12 lg:col-span-2 flex items-center justify-center bg-emerald-50/70 px-6 py-6 text-center text-lg font-semibold text-neutral-800">
|
||||||
<div className="col-span-12 lg:col-span-2 flex items-center justify-center text-center bg-emerald-50/70 px-6 py-6 text-lg font-semibold text-neutral-800">
|
|
||||||
<span className="inline-flex items-center gap-1">
|
<span className="inline-flex items-center gap-1">
|
||||||
<span className="leading-6">{leftLabel}</span>
|
<span className="leading-6">{leftLabel}</span>
|
||||||
{leftRequired ? <span className="text-red-500">*</span> : null}
|
{leftRequired ? <span className="text-red-500">*</span> : null}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 좌측 입력 */}
|
|
||||||
<div className="col-span-12 lg:col-span-4 p-6">{leftControl}</div>
|
<div className="col-span-12 lg:col-span-4 p-6">{leftControl}</div>
|
||||||
|
|
||||||
{/* 우측 라벨 */}
|
<div className="col-span-12 lg:col-span-2 flex items-center justify-center bg-emerald-50/70 px-6 py-6 text-center text-lg font-semibold text-neutral-800">
|
||||||
<div className="col-span-12 lg:col-span-2 flex items-center justify-center text-center bg-emerald-50/70 px-6 py-6 text-lg font-semibold text-neutral-800">
|
|
||||||
<span className="leading-6">{rightLabel}</span>
|
<span className="leading-6">{rightLabel}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 우측 입력 */}
|
|
||||||
<div className="col-span-12 lg:col-span-4 p-6">{rightControl}</div>
|
<div className="col-span-12 lg:col-span-4 p-6">{rightControl}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -441,23 +767,21 @@ function DateInput({
|
|||||||
value: string;
|
value: string;
|
||||||
onChange: (v: string) => void;
|
onChange: (v: string) => void;
|
||||||
}) {
|
}) {
|
||||||
|
|
||||||
const ref = useRef<HTMLInputElement | null>(null);
|
const ref = useRef<HTMLInputElement | null>(null);
|
||||||
|
|
||||||
const openPicker = () => {
|
const openPicker = () => {
|
||||||
const el = ref.current;
|
const el = ref.current;
|
||||||
if (!el) return;
|
if (!el) return;
|
||||||
|
|
||||||
// Chrome/Edge 등 지원
|
|
||||||
if (typeof (el as any).showPicker === "function") {
|
if (typeof (el as any).showPicker === "function") {
|
||||||
(el as any).showPicker();
|
(el as any).showPicker();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fallback (일부 브라우저)
|
|
||||||
el.focus();
|
el.focus();
|
||||||
el.click();
|
el.click();
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative w-full max-w-[200px]">
|
<div className="relative w-full max-w-[200px]">
|
||||||
<input
|
<input
|
||||||
@@ -467,7 +791,6 @@ function DateInput({
|
|||||||
onChange={(e) => onChange(e.target.value)}
|
onChange={(e) => onChange(e.target.value)}
|
||||||
className={[
|
className={[
|
||||||
"h-11 w-full rounded-md border border-neutral-300 bg-white px-3 pr-10 text-sm outline-none focus:border-neutral-500",
|
"h-11 w-full rounded-md border border-neutral-300 bg-white px-3 pr-10 text-sm outline-none focus:border-neutral-500",
|
||||||
// ✅ 기본 달력 아이콘 숨김 (Tailwind arbitrary selector)
|
|
||||||
"[&::-webkit-calendar-picker-indicator]:opacity-0",
|
"[&::-webkit-calendar-picker-indicator]:opacity-0",
|
||||||
"[&::-webkit-calendar-picker-indicator]:absolute",
|
"[&::-webkit-calendar-picker-indicator]:absolute",
|
||||||
"[&::-webkit-calendar-picker-indicator]:right-0",
|
"[&::-webkit-calendar-picker-indicator]:right-0",
|
||||||
@@ -477,7 +800,6 @@ function DateInput({
|
|||||||
].join(" ")}
|
].join(" ")}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* ✅ 클릭 가능한 아이콘 버튼 */}
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={openPicker}
|
onClick={openPicker}
|
||||||
@@ -485,9 +807,15 @@ function DateInput({
|
|||||||
aria-label="달력 열기"
|
aria-label="달력 열기"
|
||||||
>
|
>
|
||||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
||||||
<path d="M7.14286 7.99104H16.7812M6.48512 2.5625V4.19126M17.3125 2.5625V4.19106M20.5 7.19106L20.5 18.5625C20.5 20.2194 19.1569 21.5625 17.5 21.5625H6.5C4.84315 21.5625 3.5 20.2194 3.5 18.5625V7.19106C3.5 5.53421 4.84315 4.19106 6.5 4.19106H17.5C19.1569 4.19106 20.5 5.53421 20.5 7.19106Z" stroke="#1A1A1A" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" />
|
<path
|
||||||
|
d="M7.14286 7.99104H16.7812M6.48512 2.5625V4.19126M17.3125 2.5625V4.19106M20.5 7.19106L20.5 18.5625C20.5 20.2194 19.1569 21.5625 17.5 21.5625H6.5C4.84315 21.5625 3.5 20.2194 3.5 18.5625V7.19106C3.5 5.53421 4.84315 4.19106 6.5 4.19106H17.5C19.1569 4.19106 20.5 5.53421 20.5 7.19106Z"
|
||||||
|
stroke="#1A1A1A"
|
||||||
|
strokeWidth={2}
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
import { useEffect, useMemo, useRef, useState } from "react";
|
import { useEffect, useMemo, useRef, useState } from "react";
|
||||||
import SubPageHeader from "../../_components/SubPageHeader";
|
import SubPageHeader from "../../_components/SubPageHeader";
|
||||||
|
//import { useDmStore } from "@/app/store";
|
||||||
|
|
||||||
type WaterDetail = {
|
type WaterDetail = {
|
||||||
toc: string;
|
toc: string;
|
||||||
@@ -114,12 +115,17 @@ type PairField = { label: string; value: string };
|
|||||||
export default function DemandStatusPage() {
|
export default function DemandStatusPage() {
|
||||||
const rows = useMemo(() => MOCK, []);
|
const rows = useMemo(() => MOCK, []);
|
||||||
|
|
||||||
// ✅ rows가 빈 경우도 대비 (런타임 오류 방지)
|
// rows가 빈 경우도 대비 (런타임 오류 방지)
|
||||||
const [selectedId, setSelectedId] = useState<number | null>(rows[0]?.id ?? null);
|
const [selectedId, setSelectedId] = useState<number | null>(rows[0]?.id ?? null);
|
||||||
|
|
||||||
// ✅ 상세영역 스크롤 이동용
|
// 상세영역 스크롤 이동용
|
||||||
const detailRef = useRef<HTMLDivElement | null>(null);
|
const detailRef = useRef<HTMLDivElement | null>(null);
|
||||||
|
|
||||||
|
// update
|
||||||
|
/* const updateSdmInfoData = useDmStore(
|
||||||
|
(state) => state.updateSdmInfoData
|
||||||
|
); */
|
||||||
|
|
||||||
// ✅ selected 계산 안정화
|
// ✅ selected 계산 안정화
|
||||||
const selected = useMemo(() => {
|
const selected = useMemo(() => {
|
||||||
if (!rows.length) return null;
|
if (!rows.length) return null;
|
||||||
@@ -227,7 +233,7 @@ export default function DemandStatusPage() {
|
|||||||
return (
|
return (
|
||||||
<tr
|
<tr
|
||||||
key={r.id}
|
key={r.id}
|
||||||
role="button"
|
role="row"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
onClick={() => onSelectRow(r.id)}
|
onClick={() => onSelectRow(r.id)}
|
||||||
onKeyDown={(e) => {
|
onKeyDown={(e) => {
|
||||||
@@ -278,7 +284,7 @@ export default function DemandStatusPage() {
|
|||||||
상세 정보를 표시할 신청건이 없습니다.
|
상세 정보를 표시할 신청건이 없습니다.
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="mt-3 border border-neutral-200">
|
<div className="mt-3 border border-neutral-200">
|
||||||
<div className="bg-sky-50 px-4 py-3 text-sm font-semibold text-slate-700 border-b border-neutral-200">
|
<div className="bg-sky-50 px-4 py-3 text-sm font-semibold text-slate-700 border-b border-neutral-200">
|
||||||
요구수량
|
요구수량
|
||||||
</div>
|
</div>
|
||||||
@@ -337,8 +343,30 @@ export default function DemandStatusPage() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
|
{/* 수요신청 진행상태 */}
|
||||||
|
<div className="col-span-12 bg-sky-50 px-4 py-3 text-sm font-semibold text-slate-700 border-t border-b border-neutral-200">
|
||||||
|
수요신청 진행상태
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="col-span-12 md:col-span-4 grid grid-cols-12 border-b md:border-b-0 border-neutral-200">
|
||||||
|
<div className="col-span-5 bg-sky-50 px-3 py-4 flex items-center justify-center text-center font-semibold text-slate-700">
|
||||||
|
진행상태
|
||||||
|
</div>
|
||||||
|
<div className="col-span-7 px-3 py-4 flex items-center justify-center text-center">
|
||||||
|
{selected.status}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="col-span-12 md:col-span-4 grid grid-cols-12 border-b md:border-b-0 border-neutral-200">
|
||||||
|
<div className="col-span-5 bg-sky-50 px-3 py-4 flex items-center justify-center text-center font-semibold text-slate-700">
|
||||||
|
공급처매칭결과
|
||||||
|
</div>
|
||||||
|
<div className="col-span-7 px-3 py-4 flex items-center justify-center text-center">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
// apps/dm/app/(landing)/reuse/cases/greywater/page.tsx
|
// apps/dm/app/(landing)/reuse/cases/greywater/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "../../_components/SubPageHeader";
|
import SubPageHeader from "../../_components/SubPageHeader";
|
||||||
|
import greywaterOverall from "@/public/images/landing/cases/greywater_overall.png";
|
||||||
|
import greywaterFactory from "@/public/images/landing/cases/greywater_factory.png";
|
||||||
|
import greywaterBuilding from "@/public/images/landing/cases/greywater_building.png";
|
||||||
|
import greywaterUsage from "@/public/images/landing/cases/greywater_usage.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +26,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +64,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>전체 중수도 설치 및 이용 현황 (공장 및 발전시설 제외)</SectionTitle>
|
<SectionTitle>전체 중수도 설치 및 이용 현황 (공장 및 발전시설 제외)</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/greywater_overall.png" alt="전체 중수도 설치 및 이용 현황 설명" />
|
<ImgCard src={greywaterOverall} alt="전체 중수도 설치 및 이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +74,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>공장 및 발전시설 내 중수도 설치 및 이용 현황</SectionTitle>
|
<SectionTitle>공장 및 발전시설 내 중수도 설치 및 이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/greywater_factory.png" alt="공장 및 발전시설 내 중수도 설치 및 이용 현황 설명" />
|
<ImgCard src={greywaterFactory} alt="공장 및 발전시설 내 중수도 설치 및 이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +84,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-16">
|
<section className="pb-16">
|
||||||
<SectionTitle>중수도 건축물별 이용량 현황</SectionTitle>
|
<SectionTitle>중수도 건축물별 이용량 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/greywater_building.png" alt="중수도 건축물별 이용량 현황 설명" />
|
<ImgCard src={greywaterBuilding} alt="중수도 건축물별 이용량 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -88,7 +94,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>중수도 용도별 이용량 현황</SectionTitle>
|
<SectionTitle>중수도 용도별 이용량 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/greywater_usage.png" alt="중수도 용도별 이용량 현황 설명" />
|
<ImgCard src={greywaterUsage} alt="중수도 용도별 이용량 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
// apps/dm/app/(landing)/reuse/cases/rain/page.tsx
|
// apps/dm/app/(landing)/reuse/cases/rain/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "../../_components/SubPageHeader";
|
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 }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +25,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +63,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>빗물이용시설의 건축물별 빗물이용량 현황</SectionTitle>
|
<SectionTitle>빗물이용시설의 건축물별 빗물이용량 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/rainwater_building.png" alt="빗물이용시설의 건축물별 빗물이용량 현황 설명" />
|
<ImgCard src={rainwaterBuilding} alt="빗물이용시설의 건축물별 빗물이용량 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +73,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>빗물이용시설의 용도별 분포 (2023년 기준)</SectionTitle>
|
<SectionTitle>빗물이용시설의 용도별 분포 (2023년 기준)</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/rainwater_usage.png" alt="빗물이용시설의 용도별 분포 설명" />
|
<ImgCard src={rainwaterUsage} alt="빗물이용시설의 용도별 분포 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +83,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>빗물이용시설의 용도별 빗물이용량 현황</SectionTitle>
|
<SectionTitle>빗물이용시설의 용도별 빗물이용량 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/rainwater_usage_amount.png" alt="빗물이용시설의 용도별 빗물이용량 현황 설명" />
|
<ImgCard src={rainwaterUsageAmount} alt="빗물이용시설의 용도별 빗물이용량 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
// apps/dm/app/(landing)/reuse/cases/treated/page.tsx
|
// apps/dm/app/(landing)/reuse/cases/treated/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "../../_components/SubPageHeader";
|
import SubPageHeader from "../../_components/SubPageHeader";
|
||||||
|
import treatedWaterYear from "@/public/images/landing/cases/treated_water_year.png";
|
||||||
|
import treatedWaterUsage from "@/public/images/landing/cases/treated_water_usage.png";
|
||||||
|
import treatedWaterFacility from "@/public/images/landing/cases/treated_water_facility.png";
|
||||||
|
import treatedWaterRegion from "@/public/images/landing/cases/treated_water_region.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +26,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +64,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>연도별 하수처리수 재이용 현황</SectionTitle>
|
<SectionTitle>연도별 하수처리수 재이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/treated_water_year.png" alt="연도별 하수처리수 재이용 현황 설명" />
|
<ImgCard src={treatedWaterYear} alt="연도별 하수처리수 재이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +74,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>용도별 하수처리수 재이용 현황</SectionTitle>
|
<SectionTitle>용도별 하수처리수 재이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/treated_water_usage.png" alt="용도별 하수처리수 재이용 현황 설명" />
|
<ImgCard src={treatedWaterUsage} alt="용도별 하수처리수 재이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +84,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>하수처리시설 설치 및 이용 현황</SectionTitle>
|
<SectionTitle>하수처리시설 설치 및 이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/treated_water_facility.png" alt="하수처리시설 설치 및 이용 현황 설명" />
|
<ImgCard src={treatedWaterFacility} alt="하수처리시설 설치 및 이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -88,7 +94,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>시도별 하수처리수 재이용 현황</SectionTitle>
|
<SectionTitle>시도별 하수처리수 재이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/treated_water_region.png" alt="시도별 하수처리수 재이용 현황 설명" />
|
<ImgCard src={treatedWaterRegion} alt="시도별 하수처리수 재이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
// apps/dm/app/(landing)/reuse/intro/greywater/page.tsx
|
// apps/dm/app/(landing)/reuse/intro/greywater/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "../../_components/SubPageHeader";
|
import SubPageHeader from "../../_components/SubPageHeader";
|
||||||
|
import greywaterIntro from "@/public/images/landing/intro/greywater_intro.png";
|
||||||
|
import greywaterMandatory from "@/public/images/landing/intro/greywater_mandatory.png";
|
||||||
|
import greywaterStandard from "@/public/images/landing/intro/greywater_standard.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +25,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +63,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>중수 재이용 소개</SectionTitle>
|
<SectionTitle>중수 재이용 소개</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/greywater_intro.png" alt="중수 재이용 소개" />
|
<ImgCard src={greywaterIntro} alt="중수 재이용 소개" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +73,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>중수도 설치 의무 대상</SectionTitle>
|
<SectionTitle>중수도 설치 의무 대상</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/greywater_mandatory.png" alt="중수도 설치 의무 대상 설명" />
|
<ImgCard src={greywaterMandatory} alt="중수도 설치 의무 대상 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +83,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>중수도 시설기준 및 관리기준</SectionTitle>
|
<SectionTitle>중수도 시설기준 및 관리기준</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/greywater_standard.png" alt="중수도 시설기준 및 관리기준 설명" />
|
<ImgCard src={greywaterStandard} alt="중수도 시설기준 및 관리기준 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
// apps/dm/app/(landing)/reuse/intro/law/page.tsx
|
// apps/dm/app/(landing)/reuse/intro/law/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "../../_components/SubPageHeader";
|
import SubPageHeader from "../../_components/SubPageHeader";
|
||||||
|
import lawTimeline from "@/public/images/landing/intro/law_timeline.png";
|
||||||
|
import performanceLeft from "@/public/images/landing/intro/performance_left.png";
|
||||||
|
import domesticTextbox from "@/public/images/landing/intro/domestic_textbox.png";
|
||||||
|
import policyTimeline from "@/public/images/landing/intro/policy_timeline.png";
|
||||||
|
import relNote from "@/public/images/landing/intro/rel_note.png";
|
||||||
|
import linkage from "@/public/images/landing/intro/linkage.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +28,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +66,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>법제도 · 계획 및 기본계획 수립</SectionTitle>
|
<SectionTitle>법제도 · 계획 및 기본계획 수립</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/law_timeline.png" alt="법제도 타임라인" />
|
<ImgCard src={lawTimeline} alt="법제도 타임라인" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +76,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>제 2차 계획 대비 실적 현황</SectionTitle>
|
<SectionTitle>제 2차 계획 대비 실적 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/performance_left.png" alt="실적 현황 요약" />
|
<ImgCard src={performanceLeft} alt="실적 현황 요약" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +86,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>국내 관련 현황</SectionTitle>
|
<SectionTitle>국내 관련 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/domestic_textbox.png" alt="국내 관련 현황 설명" />
|
<ImgCard src={domesticTextbox} alt="국내 관련 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -88,7 +96,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>물 재이용 정책 변천 추이</SectionTitle>
|
<SectionTitle>물 재이용 정책 변천 추이</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/policy_timeline.png" alt="정책 변천 타임라인" />
|
<ImgCard src={policyTimeline} alt="정책 변천 타임라인" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -98,7 +106,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>타법령과의 관계도</SectionTitle>
|
<SectionTitle>타법령과의 관계도</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rel_note.png" alt="관계도 설명" />
|
<ImgCard src={relNote} alt="관계도 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -114,7 +122,7 @@ export default function WaterReuseLawPage() {
|
|||||||
• 물관리 계획(국가수도기본계획, 국가 및 유역하수도종합계획, 하천유역수자원관리계획 등)과의 연계성 확보 → 통합적인 관점에서 물이용 체계 구축 필요
|
• 물관리 계획(국가수도기본계획, 국가 및 유역하수도종합계획, 하천유역수자원관리계획 등)과의 연계성 확보 → 통합적인 관점에서 물이용 체계 구축 필요
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<ImgCard src="/images/landing/intro/linkage.png" alt="국내 연계 현황" />
|
<ImgCard src={linkage} alt="국내 연계 현황" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
// apps/dm/app/(landing)/reuse/intro/law/page.tsx
|
// apps/dm/app/(landing)/reuse/intro/law/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "../../_components/SubPageHeader";
|
import SubPageHeader from "../../_components/SubPageHeader";
|
||||||
|
import rainreuseIntro from "@/public/images/landing/intro/rainreuse_intro.png";
|
||||||
|
import rainreuseMandatory from "@/public/images/landing/intro/rainreuse_mandatory.png";
|
||||||
|
import rainwaterDesign from "@/public/images/landing/intro/rainwater_design.png";
|
||||||
|
import rainwaterStandards from "@/public/images/landing/intro/rainwater_standards.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +26,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +64,7 @@ export default function RainwaterReusePage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>빗물 재이용 소개</SectionTitle>
|
<SectionTitle>빗물 재이용 소개</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rainreuse_intro.png" alt="빗물 재이용 소개" />
|
<ImgCard src={rainreuseIntro} alt="빗물 재이용 소개" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +74,7 @@ export default function RainwaterReusePage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>빗물이용시설 설치 관리 법적 의무 대상</SectionTitle>
|
<SectionTitle>빗물이용시설 설치 관리 법적 의무 대상</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rainreuse_mandatory.png" alt="법적 의무 대상 설명" />
|
<ImgCard src={rainreuseMandatory} alt="법적 의무 대상 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +84,7 @@ export default function RainwaterReusePage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>빗물이용시설 설계 방안</SectionTitle>
|
<SectionTitle>빗물이용시설 설계 방안</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rainwater_design.png" alt="빗물이용시설 설계 방안 설명" />
|
<ImgCard src={rainwaterDesign} alt="빗물이용시설 설계 방안 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -88,7 +94,7 @@ export default function RainwaterReusePage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>빗물이용시설 시설기준 및 관리기준</SectionTitle>
|
<SectionTitle>빗물이용시설 시설기준 및 관리기준</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rainwater_standards.png" alt="빗물이용시설 시설기준 및 관리기준 설명" />
|
<ImgCard src={rainwaterStandards} alt="빗물이용시설 시설기준 및 관리기준 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
// apps/dm/app/(landing)/reuse/intro/treated/page.tsx
|
// apps/dm/app/(landing)/reuse/intro/treated/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "../../_components/SubPageHeader";
|
import SubPageHeader from "../../_components/SubPageHeader";
|
||||||
|
import treatedwaterIntro from "@/public/images/landing/intro/treatedwater_intro.png";
|
||||||
|
import treatedwaterMandatory from "@/public/images/landing/intro/treatedwater_mandatory.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +24,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +62,7 @@ export default function TreatedWaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>하수처리수</SectionTitle>
|
<SectionTitle>하수처리수</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/treatedwater_intro.png" alt="하수처리수 설명" />
|
<ImgCard src={treatedwaterIntro} alt="하수처리수 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +72,7 @@ export default function TreatedWaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>하수처리수 재이용시설 의무 대상</SectionTitle>
|
<SectionTitle>하수처리수 재이용시설 의무 대상</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/treatedwater_mandatory.png" alt="하수처리수 재이용시설 의무 대상 설명" />
|
<ImgCard src={treatedwaterMandatory} alt="하수처리수 재이용시설 의무 대상 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,15 +1,19 @@
|
|||||||
// apps/dm/app/(landing)/reuse/layout.tsx
|
// apps/dm/app/(landing)/reuse/layout.tsx
|
||||||
import "./reuse.module.css";
|
"use client";
|
||||||
// import type { ReactNode } from "react";
|
|
||||||
import TopNav from "./_components/TopNav";
|
import "./reuse.module.css";
|
||||||
|
|
||||||
|
import TopNav from "./_components/TopNav";
|
||||||
|
import { usePathname } from "next/navigation";
|
||||||
|
|
||||||
|
export default function ReuseLayout({ children }: { children: React.ReactNode }) {
|
||||||
|
const pathname = usePathname();
|
||||||
|
const hasLnb = pathname !== "/reuse"; // 예: 메인만 제외
|
||||||
|
|
||||||
export default function ReuseLandingLayout({ children }: { children: React.ReactNode }) {
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="pt-[83px]">
|
||||||
<div className="min-w-[1800px] overflow-x-auto">
|
{hasLnb && <TopNav />}
|
||||||
<TopNav />
|
<main className={hasLnb ? "ml-[260px]" : ""}>{children}</main>
|
||||||
<div className="pt-[83px]">{children}</div> {/* TopNav 높이만큼 */}
|
</div>
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// apps/dm/app/(landing)/reuse/page.tsx
|
// apps/dm/app/(landing)/reuse/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import { useMemo } from "react";
|
||||||
import TopNav from "./_components/TopNav";
|
import TopNav from "./_components/TopNav";
|
||||||
import SideIndicator from "./_components/SideIndicator";
|
import SideIndicator from "./_components/SideIndicator";
|
||||||
import { useScrollSpy } from "./_hooks/useScrollSpy";
|
import { useScrollSpy } from "./_hooks/useScrollSpy";
|
||||||
@@ -30,7 +31,8 @@ const LANDING_SECTIONS = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export default function ReuseLandingPage() {
|
export default function ReuseLandingPage() {
|
||||||
const activeId = useScrollSpy(LANDING_SECTIONS.map((s) => s.id));
|
const sectionIds = useMemo(() => LANDING_SECTIONS.map((s) => s.id), []);
|
||||||
|
const activeId = useScrollSpy(sectionIds);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="bg-white">
|
<main className="bg-white">
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
"use client";
|
||||||
|
import "../globals.css";
|
||||||
|
import { StoreProvider } from "../store";
|
||||||
|
|
||||||
|
export default function PopupLayout({
|
||||||
|
children,
|
||||||
|
}: Readonly<{
|
||||||
|
children: React.ReactNode;
|
||||||
|
}>) {
|
||||||
|
return <StoreProvider>{children}</StoreProvider>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,352 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import Gis from "@common/business_components/ui/map/Gis";
|
||||||
|
import { useEffect, useRef, useState } from "react";
|
||||||
|
import { mapService } from "../service";
|
||||||
|
import GisApp from "@common/business_components/ui/map/lib/gis.core";
|
||||||
|
import { SearchBar } from "@/components/ui/map/searchBar/searchBar";
|
||||||
|
import SelectedFcltList from "./selectedFcltList";
|
||||||
|
import type { SubsInfo } from "@/app/store/map/type";
|
||||||
|
|
||||||
|
const Map = () => {
|
||||||
|
const [treeData, setTreeData] = useState([]); // 초기값을 객체 또는 null로 설정
|
||||||
|
const gisMaps = useRef<any | null>(null);
|
||||||
|
const [isOpen, setIsOpen] = useState(false); // 팝업 열기/닫기 상태
|
||||||
|
const [isSearchModalOpen, setIsSearchModalOpen] = useState(true); // SearchModal 열림 상태
|
||||||
|
const [featureData, setFeatureData] = useState(null); // 선택된 피쳐 데이터
|
||||||
|
const [selectDataPk, setSelectDataPk] = useState<Record<string, any>>({});
|
||||||
|
const [selectedFclts, setSelectedFclts] = useState<any[]>([]);
|
||||||
|
|
||||||
|
//적용 버튼 클릭 이벤트
|
||||||
|
const onApply = () => {
|
||||||
|
if (selectedFclts.length > 3) {
|
||||||
|
alert("재이용시설 후보지는 최대 3개까지만 선택할 수 있습니다.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const subsInfoList: SubsInfo[] = selectedFclts.map((fclt) => ({
|
||||||
|
ruseUtztnFcltNm: fclt.ruseUtztnFcltNm,
|
||||||
|
ruseUtztnFcltCd: fclt.pbnstRuseFcltId,
|
||||||
|
}));
|
||||||
|
|
||||||
|
if (!window.opener || typeof window.opener.postMessage !== "function") {
|
||||||
|
alert("부모 창을 찾을 수 없습니다. 팝업이 'noopener'로 열렸거나, 보안 정책으로 차단되었을 수 있어요.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.opener.postMessage(
|
||||||
|
{
|
||||||
|
type: "SET_SUBS_INFO",
|
||||||
|
payload: subsInfoList, // 배열로 전송 (최대 3개)
|
||||||
|
},
|
||||||
|
"*"
|
||||||
|
);
|
||||||
|
|
||||||
|
window.close();
|
||||||
|
};
|
||||||
|
|
||||||
|
//트리 레이어 데이터 조회
|
||||||
|
const fetchData = async () => {
|
||||||
|
try {
|
||||||
|
const response = await mapService.getLyrStngs();
|
||||||
|
setTreeData(response); // API 응답 저장
|
||||||
|
} catch (error) {
|
||||||
|
console.error("데이터 불러오기 실패:", error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//하수처리시설코드로 재이용시설 목록 조회
|
||||||
|
const reuseData = async (ruseFcltPk: any) => {
|
||||||
|
if (!ruseFcltPk) {
|
||||||
|
console.warn("[reuseData] ruseFcltPk가 없습니다.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
console.log("[reuseData] API 호출 - ruseFcltPk:", ruseFcltPk);
|
||||||
|
const response = await mapService.getPbnstRuseFclts(ruseFcltPk);
|
||||||
|
console.log("[reuseData] API 응답 전체:", response);
|
||||||
|
// 응답이 배열이면 바로 사용, 객체면 .data 추출
|
||||||
|
const data = Array.isArray(response)
|
||||||
|
? response
|
||||||
|
: Array.isArray(response?.data)
|
||||||
|
? response.data
|
||||||
|
: response?.data
|
||||||
|
? [response.data]
|
||||||
|
: [];
|
||||||
|
console.log("[reuseData] 파싱된 data:", data);
|
||||||
|
setSelectedFclts((prev) => {
|
||||||
|
const newItems = data.filter(
|
||||||
|
(item: any) =>
|
||||||
|
item &&
|
||||||
|
Object.keys(item).length > 0 &&
|
||||||
|
!prev.some((f) => f.pbnstRuseFcltId === item.pbnstRuseFcltId)
|
||||||
|
);
|
||||||
|
console.log("[reuseData] 추가될 newItems:", newItems);
|
||||||
|
return [...prev, ...newItems];
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
console.error("데이터 불러오기 실패:", error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 컴포넌트 마운트 시 1회 실행
|
||||||
|
useEffect(() => {
|
||||||
|
fetchData();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
// 부모창에 초기 선택값 요청 (팝업 열릴 때 기존 선택 목록 받아오기)
|
||||||
|
useEffect(() => {
|
||||||
|
const origin = window.location.origin;
|
||||||
|
if (window.opener) {
|
||||||
|
window.opener.postMessage({ type: "REQUEST_INIT_SUBS_INFO" }, origin);
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
// 부모창에서 초기 선택값 수신
|
||||||
|
useEffect(() => {
|
||||||
|
const origin = window.location.origin;
|
||||||
|
|
||||||
|
const handler = (event: MessageEvent) => {
|
||||||
|
if (event.origin !== origin) return;
|
||||||
|
|
||||||
|
const data = event.data;
|
||||||
|
if (!data || typeof data !== "object") return;
|
||||||
|
|
||||||
|
if (data.type === "INIT_SUBS_INFO") {
|
||||||
|
const list = Array.isArray(data.payload) ? data.payload : [];
|
||||||
|
setSelectedFclts(
|
||||||
|
list.map((x) => ({
|
||||||
|
ruseUtztnFcltNm: x.ruseUtztnFcltNm ?? "",
|
||||||
|
pbnstRuseFcltId: x.ruseUtztnFcltCd ?? "",
|
||||||
|
}))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
window.addEventListener("message", handler);
|
||||||
|
return () => window.removeEventListener("message", handler);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
// 레이어 생성 후 초기화 처리
|
||||||
|
const onCheckedLayersChange = () => {
|
||||||
|
//수요처 ID
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const dmdInfoId = urlParams.get("dmdInfoId");
|
||||||
|
console.log("[하이라이트] dmdInfoId:", dmdInfoId);
|
||||||
|
|
||||||
|
//수요처 위치로 화면 이동
|
||||||
|
const maps = gisMaps.current;
|
||||||
|
const layer = GisApp.Module.layer as any;
|
||||||
|
const layerNm = "tb_wr_ruse_fclt_dmd_co";
|
||||||
|
const featureId = `${layerNm}.${dmdInfoId}`;
|
||||||
|
let foundFeature: any = null;
|
||||||
|
|
||||||
|
// 현재 로드된 레이어 목록 출력
|
||||||
|
const allLayerNames = maps
|
||||||
|
.getLayers()
|
||||||
|
.getArray()
|
||||||
|
.map((l: any) => l.get("lyrTyNm") || l.get("name") || "(unnamed)");
|
||||||
|
console.log("[하이라이트] 전체 레이어 목록:", allLayerNames);
|
||||||
|
console.log("[하이라이트] 탐색 대상 레이어:", layerNm);
|
||||||
|
console.log("[하이라이트] 탐색 대상 featureId:", featureId);
|
||||||
|
|
||||||
|
maps
|
||||||
|
.getLayers()
|
||||||
|
.getArray()
|
||||||
|
.forEach((layer: any) => {
|
||||||
|
if (layer.get("lyrTyNm") == layerNm) {
|
||||||
|
console.log("[하이라이트] 레이어 발견:", layerNm);
|
||||||
|
const source = layer.getSource?.();
|
||||||
|
if (source?.getFeatureById) {
|
||||||
|
const feature = source.getFeatureById(String(featureId).trim());
|
||||||
|
console.log("[하이라이트] feature 탐색결과:", feature);
|
||||||
|
if (feature) {
|
||||||
|
foundFeature = feature;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// feature 못 찾을 때 소스 내 전체 feature ID 출력
|
||||||
|
if (source?.getFeatures) {
|
||||||
|
const allIds = source.getFeatures().map((f: any) => f.getId());
|
||||||
|
console.log("[하이라이트] 소스 내 전체 feature ID:", allIds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!foundFeature) {
|
||||||
|
console.warn("[하이라이트] feature를 찾지 못했습니다. 위 레이어 목록/ID를 확인하세요.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (foundFeature) {
|
||||||
|
const geometry = foundFeature.getGeometry();
|
||||||
|
|
||||||
|
if (geometry) {
|
||||||
|
const extent = geometry.getExtent();
|
||||||
|
|
||||||
|
if (geometry.getType() === "Point") {
|
||||||
|
maps.getView().setCenter(geometry.getCoordinates());
|
||||||
|
maps.getView().setZoom(11);
|
||||||
|
} else {
|
||||||
|
maps.getView().fit(extent, {
|
||||||
|
duration: 300,
|
||||||
|
padding: [30, 30, 30, 30],
|
||||||
|
maxZoom: 16,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
layer.highLightFeature(
|
||||||
|
[foundFeature],
|
||||||
|
{
|
||||||
|
id: GisApp.hlLayerId,
|
||||||
|
zIndex: 10,
|
||||||
|
opacity: 1,
|
||||||
|
selectable: true,
|
||||||
|
},
|
||||||
|
{ width: 30 }
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
console.warn("수요처의 좌표정보를 찾을 수 없습니다. dmdInfoId:", dmdInfoId);
|
||||||
|
}
|
||||||
|
|
||||||
|
const formatNumber = (val: any) => {
|
||||||
|
const num = Number(val);
|
||||||
|
return isNaN(num) ? "-" : num.toLocaleString();
|
||||||
|
};
|
||||||
|
|
||||||
|
// 재이용시설 오버레이
|
||||||
|
maps
|
||||||
|
.getLayers()
|
||||||
|
.getArray()
|
||||||
|
.forEach((layer: any) => {
|
||||||
|
if (layer.get("lyrTyNm") === "tb_wr_bdst_ruse_fclt") {
|
||||||
|
const source = layer.getSource?.();
|
||||||
|
if (source?.getFeatures) {
|
||||||
|
const features = source.getFeatures();
|
||||||
|
|
||||||
|
features.forEach((feature: any) => {
|
||||||
|
// 필요한 고유 ID 또는 속성 가져오기 (예: ftrIdn 또는 feature.getId())
|
||||||
|
const featureId =
|
||||||
|
feature.getId() || feature.get("ftrIdn") || Math.random();
|
||||||
|
|
||||||
|
// HTML 또는 React 오버레이 컴포넌트 구성
|
||||||
|
const overlayContent = `
|
||||||
|
<div class="rounded-md border border-gray-300 bg-white shadow-md text-sm w-[120px]">
|
||||||
|
<!-- 헤더 -->
|
||||||
|
<div class="bg-cyan-700 text-white px-3 py-2 text-[11px] font-semibold text-center rounded-t-md">
|
||||||
|
${feature.get("swtrmt_fclt_nm") || "-"}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 테이블 -->
|
||||||
|
<table class="w-full text-sm text-gray-800 border-t border-gray-200">
|
||||||
|
<tbody>
|
||||||
|
<tr class="border-b border-gray-200">
|
||||||
|
<th class="bg-gray-100 text-gray-600 font-semibold text-[10px] text-left">용량(m³/일)</th>
|
||||||
|
<td class="text-right text-[10px] font-bold">${formatNumber(feature.get("fclt_cpct"))}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
feature.set("html", overlayContent);
|
||||||
|
feature.set("overLayId", `overLay.${featureId}`);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// 검색해서 재이용시설 선택하면 해당 시설로 화면 이동 처리
|
||||||
|
useEffect(() => {
|
||||||
|
console.warn(selectDataPk);
|
||||||
|
if (!selectDataPk || Object.keys(selectDataPk).length === 0) return;
|
||||||
|
const maps = gisMaps.current;
|
||||||
|
let foundFeature: any = null;
|
||||||
|
const layerNm = "tb_wr_bdst_ruse_fclt";
|
||||||
|
const featureId = `${layerNm}.${selectDataPk.bscFctCd}`;
|
||||||
|
maps
|
||||||
|
.getLayers()
|
||||||
|
.getArray()
|
||||||
|
.forEach((layer: any) => {
|
||||||
|
if (layer.get("lyrTyNm") == layerNm) {
|
||||||
|
const source = layer.getSource?.();
|
||||||
|
if (source?.getFeatureById) {
|
||||||
|
const feature = source.getFeatureById(String(featureId).trim());
|
||||||
|
if (feature) {
|
||||||
|
foundFeature = feature;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (foundFeature) {
|
||||||
|
const geometry = foundFeature.getGeometry();
|
||||||
|
if (geometry) {
|
||||||
|
const extent = geometry.getExtent();
|
||||||
|
|
||||||
|
maps.getView().fit(extent, {
|
||||||
|
duration: 300,
|
||||||
|
padding: [50, 50, 50, 50],
|
||||||
|
maxZoom: 16,
|
||||||
|
constrainResolution: true,
|
||||||
|
nearest: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.warn("OpenLayers Feature를 찾을 수 없습니다:", selectDataPk);
|
||||||
|
}
|
||||||
|
}, [selectDataPk]);
|
||||||
|
|
||||||
|
// 재이용시설 클릭 시 선택 시설목록에 추가
|
||||||
|
const onFeatureSelect = (data: any) => {
|
||||||
|
// feature의 모든 속성 출력 (어떤 키가 있는지 확인)
|
||||||
|
const properties = data.getProperties?.() ?? {};
|
||||||
|
console.log("[onFeatureSelect] feature 속성 전체:", properties);
|
||||||
|
// 처리시설코드
|
||||||
|
const swtrmtFcltCd = data.get("swtrmt_fclt_cd");
|
||||||
|
console.log("[onFeatureSelect] swtrmt_fclt_cd:", swtrmtFcltCd);
|
||||||
|
reuseData(swtrmtFcltCd);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div className="bg-container">
|
||||||
|
<Gis
|
||||||
|
showZoomLevel={true}
|
||||||
|
height='h-screen'
|
||||||
|
treeData={treeData}
|
||||||
|
isSearch={false}
|
||||||
|
gisMaps={gisMaps}
|
||||||
|
isMiniMap={false}
|
||||||
|
searchView={undefined}
|
||||||
|
detailView={undefined}
|
||||||
|
onFeatureSelect={onFeatureSelect}
|
||||||
|
setIsOpen={setIsOpen}
|
||||||
|
setFeatureData={setFeatureData}
|
||||||
|
featureData={featureData}
|
||||||
|
setIsSearchModalOpen={setIsSearchModalOpen}
|
||||||
|
isOpen={isOpen}
|
||||||
|
isSearchModalOpen={isSearchModalOpen}
|
||||||
|
onCheckedLayersChange={onCheckedLayersChange}
|
||||||
|
imgVisble={false}
|
||||||
|
searchBar={
|
||||||
|
<SearchBar
|
||||||
|
setHasuPk={(hasuPk: any) => {
|
||||||
|
if (hasuPk) setSelectDataPk(hasuPk);
|
||||||
|
}}
|
||||||
|
onApply={onApply}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
waterDepth={undefined}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<SelectedFcltList
|
||||||
|
data={selectedFclts}
|
||||||
|
onRemove={(updatedList) => setSelectedFclts(updatedList)}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Map;
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
import React from "react";
|
||||||
|
|
||||||
|
type FcltItem = {
|
||||||
|
pbnstRuseFcltId: string;
|
||||||
|
ruseUtztnFcltNm: string;
|
||||||
|
splyExtraCpct?: number;
|
||||||
|
ruseCpct?: number;
|
||||||
|
[key: string]: any;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function SelectedFcltList({
|
||||||
|
data = [],
|
||||||
|
onRemove,
|
||||||
|
}: {
|
||||||
|
data: FcltItem[];
|
||||||
|
onRemove: (updatedList: FcltItem[]) => void;
|
||||||
|
}) {
|
||||||
|
const handleDelete = (code: string) => {
|
||||||
|
const updatedList = data.filter((item) => item.pbnstRuseFcltId !== code);
|
||||||
|
onRemove(updatedList);
|
||||||
|
};
|
||||||
|
|
||||||
|
const TableContent = (
|
||||||
|
<>
|
||||||
|
<thead className="bg-gray-100 text-gray-600 text-[11px] font-medium border-b border-cyan-800">
|
||||||
|
<tr>
|
||||||
|
<th className="px-2 py-1.5 text-left w-1/3">시설명</th>
|
||||||
|
<th className="px-2 py-1.5 text-right whitespace-nowrap">
|
||||||
|
처리량(㎥/일)
|
||||||
|
</th>
|
||||||
|
<th className="px-2 py-1.5 text-right whitespace-nowrap">
|
||||||
|
재이용량(㎥/일)
|
||||||
|
</th>
|
||||||
|
<th className="px-2 py-1.5 text-center w-10">삭제</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{data.map((item) => (
|
||||||
|
<tr key={item.pbnstRuseFcltId} className="border-b border-gray-100 last:border-none hover:bg-gray-50/50">
|
||||||
|
<td className="px-2 py-1.5 text-[11px] font-medium text-gray-800 break-keep">{item.ruseUtztnFcltNm}</td>
|
||||||
|
<td className="px-2 py-1.5 text-right text-[11px] text-gray-600">
|
||||||
|
{Number(item.splyExtraCpct || 0).toLocaleString()}
|
||||||
|
</td>
|
||||||
|
<td className="px-2 py-1.5 text-right text-[11px] text-gray-600">
|
||||||
|
{Number(item.ruseCpct || 0).toLocaleString()}
|
||||||
|
</td>
|
||||||
|
<td className="px-2 py-1.5 text-center">
|
||||||
|
<button
|
||||||
|
onClick={() => handleDelete(item.pbnstRuseFcltId)}
|
||||||
|
className="text-gray-400 hover:text-red-500 text-[11px] font-bold transition-colors"
|
||||||
|
aria-label="삭제"
|
||||||
|
title="삭제"
|
||||||
|
>
|
||||||
|
✕
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
))}
|
||||||
|
</tbody>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="fixed right-20 top-[3.5rem] w-[22rem] max-h-[80vh] overflow-hidden bg-white/95 backdrop-blur-sm shadow-[0_4px_12px_rgba(0,0,0,0.1)] rounded-lg border border-gray-200 z-50 flex flex-col">
|
||||||
|
<h3 className="bg-cyan-700 text-white text-[13px] font-semibold p-2">
|
||||||
|
선택된 시설
|
||||||
|
</h3>
|
||||||
|
<div className="overflow-y-auto w-full">
|
||||||
|
<table className="w-full text-sm text-gray-800 border-t border-gray-200 table-fixed">
|
||||||
|
{TableContent}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export * from './map'
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/**
|
||||||
|
* 관망도 API
|
||||||
|
*/
|
||||||
|
import { DEV_URL_WR, DEV_URL_SN } from "@/components/ui/config";
|
||||||
|
|
||||||
|
export type LyrStngProps = {
|
||||||
|
lyr_sn: string
|
||||||
|
lyr_nm: string
|
||||||
|
upper_lyr_sn: string
|
||||||
|
drawOrdr: string
|
||||||
|
flterSql: string
|
||||||
|
gobjTy: string
|
||||||
|
lyrTpNm: string
|
||||||
|
useYn: string
|
||||||
|
minViewSize: string
|
||||||
|
iconNm: string
|
||||||
|
lblAtrbNm: string
|
||||||
|
fontNm: string
|
||||||
|
fontIntnColor: string
|
||||||
|
fontExtnColor: string
|
||||||
|
fontExtnWdth: string
|
||||||
|
lnWdth: string
|
||||||
|
lnColor: string
|
||||||
|
polgnColor: string
|
||||||
|
initEprssYn: string
|
||||||
|
clickPsblYn: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export const mapService = {
|
||||||
|
//레이어 설정 조회
|
||||||
|
getLyrStngs: async () => {
|
||||||
|
const response = await fetch(`${DEV_URL_SN}/map/lyrStngs/DM_NETWORK`, {
|
||||||
|
method: 'GET',
|
||||||
|
headers: {
|
||||||
|
'Accept': 'application/json',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return response.json();
|
||||||
|
},
|
||||||
|
getPbnstRuseFclts: async (ruseFcltPk: any) => {
|
||||||
|
const response = await fetch(`${DEV_URL_WR}/reuseFc/pubFc/${ruseFcltPk}`, {
|
||||||
|
method: 'GET',
|
||||||
|
headers: {
|
||||||
|
'Accept': 'application/json',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,7 +1,11 @@
|
|||||||
// apps/dm/app/(landing)/reuse/intro/greywater/page.tsx
|
// apps/dm/app/(landing)/reuse/intro/greywater/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "@/components/SubPageHeader";
|
import SubPageHeader from "@/components/SubPageHeader";
|
||||||
|
import greywaterIntro from "@/public/images/landing/intro/greywater_intro.png";
|
||||||
|
import greywaterMandatory from "@/public/images/landing/intro/greywater_mandatory.png";
|
||||||
|
import greywaterStandard from "@/public/images/landing/intro/greywater_standard.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +25,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +63,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>중수 재이용 소개</SectionTitle>
|
<SectionTitle>중수 재이용 소개</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/greywater_intro.png" alt="중수 재이용 소개" />
|
<ImgCard src={greywaterIntro} alt="중수 재이용 소개" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +73,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>중수도 설치 의무 대상</SectionTitle>
|
<SectionTitle>중수도 설치 의무 대상</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/greywater_mandatory.png" alt="중수도 설치 의무 대상 설명" />
|
<ImgCard src={greywaterMandatory} alt="중수도 설치 의무 대상 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +83,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>중수도 시설기준 및 관리기준</SectionTitle>
|
<SectionTitle>중수도 시설기준 및 관리기준</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/greywater_standard.png" alt="중수도 시설기준 및 관리기준 설명" />
|
<ImgCard src={greywaterStandard} alt="중수도 시설기준 및 관리기준 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
// apps/dm/app/(landing)/reuse/intro/law/page.tsx
|
// apps/dm/app/(landing)/reuse/intro/law/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "@/components/SubPageHeader";
|
import SubPageHeader from "@/components/SubPageHeader";
|
||||||
|
import lawTimeline from "@/public/images/landing/intro/law_timeline.png";
|
||||||
|
import performanceLeft from "@/public/images/landing/intro/performance_left.png";
|
||||||
|
import domesticTextbox from "@/public/images/landing/intro/domestic_textbox.png";
|
||||||
|
import policyTimeline from "@/public/images/landing/intro/policy_timeline.png";
|
||||||
|
import relNote from "@/public/images/landing/intro/rel_note.png";
|
||||||
|
import linkage from "@/public/images/landing/intro/linkage.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +28,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +66,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>법제도 · 계획 및 기본계획 수립</SectionTitle>
|
<SectionTitle>법제도 · 계획 및 기본계획 수립</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/law_timeline.png" alt="법제도 타임라인" />
|
<ImgCard src={lawTimeline} alt="법제도 타임라인" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +76,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>제 2차 계획 대비 실적 현황</SectionTitle>
|
<SectionTitle>제 2차 계획 대비 실적 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/performance_left.png" alt="실적 현황 요약" />
|
<ImgCard src={performanceLeft} alt="실적 현황 요약" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +86,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>국내 관련 현황</SectionTitle>
|
<SectionTitle>국내 관련 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/domestic_textbox.png" alt="국내 관련 현황 설명" />
|
<ImgCard src={domesticTextbox} alt="국내 관련 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -88,7 +96,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>물 재이용 정책 변천 추이</SectionTitle>
|
<SectionTitle>물 재이용 정책 변천 추이</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/policy_timeline.png" alt="정책 변천 타임라인" />
|
<ImgCard src={policyTimeline} alt="정책 변천 타임라인" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -98,7 +106,7 @@ export default function WaterReuseLawPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>타법령과의 관계도</SectionTitle>
|
<SectionTitle>타법령과의 관계도</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rel_note.png" alt="관계도 설명" />
|
<ImgCard src={relNote} alt="관계도 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -114,7 +122,7 @@ export default function WaterReuseLawPage() {
|
|||||||
• 물관리 계획(국가수도기본계획, 국가 및 유역하수도종합계획, 하천유역수자원관리계획 등)과의 연계성 확보 → 통합적인 관점에서 물이용 체계 구축 필요
|
• 물관리 계획(국가수도기본계획, 국가 및 유역하수도종합계획, 하천유역수자원관리계획 등)과의 연계성 확보 → 통합적인 관점에서 물이용 체계 구축 필요
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<ImgCard src="/images/landing/intro/linkage.png" alt="국내 연계 현황" />
|
<ImgCard src={linkage} alt="국내 연계 현황" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ export default function IntroLayout({ children }: { children: ReactNode }) {
|
|||||||
return (
|
return (
|
||||||
<div className="flex gap-0">
|
<div className="flex gap-0">
|
||||||
<Lnb />
|
<Lnb />
|
||||||
<main className="flex-1 px-[100px] pt-[80px]">{children}</main>
|
<main className="flex-1 px-[100px] pt-[80px]">
|
||||||
|
{children}
|
||||||
|
</main>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
// apps/dm/app/(landing)/reuse/intro/law/page.tsx
|
// apps/dm/app/(landing)/reuse/intro/law/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "@/components/SubPageHeader";
|
import SubPageHeader from "@/components/SubPageHeader";
|
||||||
|
import rainreuseIntro from "@/public/images/landing/intro/rainreuse_intro.png";
|
||||||
|
import rainreuseMandatory from "@/public/images/landing/intro/rainreuse_mandatory.png";
|
||||||
|
import rainwaterDesign from "@/public/images/landing/intro/rainwater_design.png";
|
||||||
|
import rainwaterStandards from "@/public/images/landing/intro/rainwater_standards.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +26,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +64,7 @@ export default function RainwaterReusePage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>빗물 재이용 소개</SectionTitle>
|
<SectionTitle>빗물 재이용 소개</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rainreuse_intro.png" alt="빗물 재이용 소개" />
|
<ImgCard src={rainreuseIntro} alt="빗물 재이용 소개" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +74,7 @@ export default function RainwaterReusePage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>빗물이용시설 설치 관리 법적 의무 대상</SectionTitle>
|
<SectionTitle>빗물이용시설 설치 관리 법적 의무 대상</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rainreuse_mandatory.png" alt="법적 의무 대상 설명" />
|
<ImgCard src={rainreuseMandatory} alt="법적 의무 대상 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +84,7 @@ export default function RainwaterReusePage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>빗물이용시설 설계 방안</SectionTitle>
|
<SectionTitle>빗물이용시설 설계 방안</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rainwater_design.png" alt="빗물이용시설 설계 방안 설명" />
|
<ImgCard src={rainwaterDesign} alt="빗물이용시설 설계 방안 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -88,7 +94,7 @@ export default function RainwaterReusePage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>빗물이용시설 시설기준 및 관리기준</SectionTitle>
|
<SectionTitle>빗물이용시설 시설기준 및 관리기준</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/rainwater_standards.png" alt="빗물이용시설 시설기준 및 관리기준 설명" />
|
<ImgCard src={rainwaterStandards} alt="빗물이용시설 시설기준 및 관리기준 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
// apps/dm/app/(landing)/reuse/intro/treated/page.tsx
|
// apps/dm/app/(landing)/reuse/intro/treated/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "@/components/SubPageHeader";
|
import SubPageHeader from "@/components/SubPageHeader";
|
||||||
|
import treatedwaterIntro from "@/public/images/landing/intro/treatedwater_intro.png";
|
||||||
|
import treatedwaterMandatory from "@/public/images/landing/intro/treatedwater_mandatory.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +24,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +62,7 @@ export default function TreatedWaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>하수처리수</SectionTitle>
|
<SectionTitle>하수처리수</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/treatedwater_intro.png" alt="하수처리수 설명" />
|
<ImgCard src={treatedwaterIntro} alt="하수처리수 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +72,7 @@ export default function TreatedWaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>하수처리수 재이용시설 의무 대상</SectionTitle>
|
<SectionTitle>하수처리수 재이용시설 의무 대상</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/intro/treatedwater_mandatory.png" alt="하수처리수 재이용시설 의무 대상 설명" />
|
<ImgCard src={treatedwaterMandatory} alt="하수처리수 재이용시설 의무 대상 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,13 +1,19 @@
|
|||||||
// app/(with-layout)/layout.tsx
|
// app/(with-layout)/layout.tsx
|
||||||
|
/**
|
||||||
|
* 메인을 제외한 메뉴안 페이지의 layout
|
||||||
|
*/
|
||||||
|
|
||||||
import "../reuse.module.css";
|
import "../reuse.module.css";
|
||||||
import { StoreProvider } from "../store";
|
import { StoreProvider } from "../store";
|
||||||
import TopNav from "@/components/TopNav";
|
import TopNav from "@/components/TopNav";
|
||||||
|
|
||||||
export default function ReuseLandingLayout({ children }: { children: React.ReactNode }) {
|
export default function WithLayout({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<StoreProvider>
|
<StoreProvider>
|
||||||
<TopNav />
|
<div className="pt-[83px]">{/* TopNav 높이만큼 */}
|
||||||
<div className="pt-[83px]">{children}</div> {/* TopNav 높이만큼 */}
|
<TopNav />
|
||||||
|
<main className="ml-[260px]">{children}</main>{/* Lnb 너비만큼 */}
|
||||||
|
</div>
|
||||||
</StoreProvider>
|
</StoreProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
// apps/dm/app/(landing)/reuse/cases/greywater/page.tsx
|
// apps/dm/app/(landing)/reuse/cases/greywater/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "@/components/SubPageHeader";
|
import SubPageHeader from "@/components/SubPageHeader";
|
||||||
|
import greywaterOverall from "@/public/images/landing/cases/greywater_overall.png";
|
||||||
|
import greywaterFactory from "@/public/images/landing/cases/greywater_factory.png";
|
||||||
|
import greywaterBuilding from "@/public/images/landing/cases/greywater_building.png";
|
||||||
|
import greywaterUsage from "@/public/images/landing/cases/greywater_usage.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +26,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +64,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>전체 중수도 설치 및 이용 현황 (공장 및 발전시설 제외)</SectionTitle>
|
<SectionTitle>전체 중수도 설치 및 이용 현황 (공장 및 발전시설 제외)</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/greywater_overall.png" alt="전체 중수도 설치 및 이용 현황 설명" />
|
<ImgCard src={greywaterOverall} alt="전체 중수도 설치 및 이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +74,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>공장 및 발전시설 내 중수도 설치 및 이용 현황</SectionTitle>
|
<SectionTitle>공장 및 발전시설 내 중수도 설치 및 이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/greywater_factory.png" alt="공장 및 발전시설 내 중수도 설치 및 이용 현황 설명" />
|
<ImgCard src={greywaterFactory} alt="공장 및 발전시설 내 중수도 설치 및 이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +84,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-16">
|
<section className="pb-16">
|
||||||
<SectionTitle>중수도 건축물별 이용량 현황</SectionTitle>
|
<SectionTitle>중수도 건축물별 이용량 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/greywater_building.png" alt="중수도 건축물별 이용량 현황 설명" />
|
<ImgCard src={greywaterBuilding} alt="중수도 건축물별 이용량 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -88,7 +94,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>중수도 용도별 이용량 현황</SectionTitle>
|
<SectionTitle>중수도 용도별 이용량 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/greywater_usage.png" alt="중수도 용도별 이용량 현황 설명" />
|
<ImgCard src={greywaterUsage} alt="중수도 용도별 이용량 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
// apps/dm/app/(landing)/reuse/cases/rain/page.tsx
|
// apps/dm/app/(landing)/reuse/cases/rain/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "@/components/SubPageHeader";
|
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 }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +25,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +63,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>빗물이용시설의 건축물별 빗물이용량 현황</SectionTitle>
|
<SectionTitle>빗물이용시설의 건축물별 빗물이용량 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/rainwater_building.png" alt="빗물이용시설의 건축물별 빗물이용량 현황 설명" />
|
<ImgCard src={rainwaterBuilding} alt="빗물이용시설의 건축물별 빗물이용량 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +73,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>빗물이용시설의 용도별 분포 (2023년 기준)</SectionTitle>
|
<SectionTitle>빗물이용시설의 용도별 분포 (2023년 기준)</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/rainwater_usage.png" alt="빗물이용시설의 용도별 분포 설명" />
|
<ImgCard src={rainwaterUsage} alt="빗물이용시설의 용도별 분포 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +83,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>빗물이용시설의 용도별 빗물이용량 현황</SectionTitle>
|
<SectionTitle>빗물이용시설의 용도별 빗물이용량 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/rainwater_usage_amount.png" alt="빗물이용시설의 용도별 빗물이용량 현황 설명" />
|
<ImgCard src={rainwaterUsageAmount} alt="빗물이용시설의 용도별 빗물이용량 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
// apps/dm/app/(landing)/reuse/cases/treated/page.tsx
|
// apps/dm/app/(landing)/reuse/cases/treated/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import SubPageHeader from "@/components/SubPageHeader";
|
import SubPageHeader from "@/components/SubPageHeader";
|
||||||
|
import treatedWaterYear from "@/public/images/landing/cases/treated_water_year.png";
|
||||||
|
import treatedWaterUsage from "@/public/images/landing/cases/treated_water_usage.png";
|
||||||
|
import treatedWaterFacility from "@/public/images/landing/cases/treated_water_facility.png";
|
||||||
|
import treatedWaterRegion from "@/public/images/landing/cases/treated_water_region.png";
|
||||||
|
|
||||||
function SectionTitle({ children }: { children: React.ReactNode }) {
|
function SectionTitle({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
@@ -21,17 +26,18 @@ function Hr({ className = "" }: HrProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImgCardProps = {
|
type ImgCardProps = {
|
||||||
src: string;
|
src: StaticImageData;
|
||||||
alt: string;
|
alt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ImgCard({ src, alt }: ImgCardProps) {
|
function ImgCard({ src, alt }: ImgCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full overflow-x-auto">
|
<div className="w-full overflow-x-auto">
|
||||||
<img
|
<Image
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
className="block mx-auto max-w-none"
|
className="block mx-auto max-w-none"
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +64,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="mt-6">
|
<section className="mt-6">
|
||||||
<SectionTitle>연도별 하수처리수 재이용 현황</SectionTitle>
|
<SectionTitle>연도별 하수처리수 재이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/treated_water_year.png" alt="연도별 하수처리수 재이용 현황 설명" />
|
<ImgCard src={treatedWaterYear} alt="연도별 하수처리수 재이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -68,7 +74,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>용도별 하수처리수 재이용 현황</SectionTitle>
|
<SectionTitle>용도별 하수처리수 재이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/treated_water_usage.png" alt="용도별 하수처리수 재이용 현황 설명" />
|
<ImgCard src={treatedWaterUsage} alt="용도별 하수처리수 재이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -78,7 +84,7 @@ export default function GreywaterPage() {
|
|||||||
<section>
|
<section>
|
||||||
<SectionTitle>하수처리시설 설치 및 이용 현황</SectionTitle>
|
<SectionTitle>하수처리시설 설치 및 이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/treated_water_facility.png" alt="하수처리시설 설치 및 이용 현황 설명" />
|
<ImgCard src={treatedWaterFacility} alt="하수처리시설 설치 및 이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -88,7 +94,7 @@ export default function GreywaterPage() {
|
|||||||
<section className="pb-[200px]">
|
<section className="pb-[200px]">
|
||||||
<SectionTitle>시도별 하수처리수 재이용 현황</SectionTitle>
|
<SectionTitle>시도별 하수처리수 재이용 현황</SectionTitle>
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ImgCard src="/images/landing/cases/treated_water_region.png" alt="시도별 하수처리수 재이용 현황 설명" />
|
<ImgCard src={treatedWaterRegion} alt="시도별 하수처리수 재이용 현황 설명" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,82 @@
|
|||||||
|
@import "../../../packages/common/components/src/base.css";
|
||||||
|
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
|
||||||
|
@layer base {
|
||||||
|
:root {
|
||||||
|
--background: 0 0% 100%;
|
||||||
|
--foreground: 0 0% 3.9%;
|
||||||
|
--card: 0 0% 100%;
|
||||||
|
--card-foreground: 0 0% 3.9%;
|
||||||
|
--popover: 0 0% 100%;
|
||||||
|
--popover-foreground: 0 0% 3.9%;
|
||||||
|
--primary: 0 0% 9%;
|
||||||
|
--primary-foreground: 0 0% 98%;
|
||||||
|
--secondary: 0 0% 96.1%;
|
||||||
|
--secondary-foreground: 0 0% 9%;
|
||||||
|
--muted: 0 0% 96.1%;
|
||||||
|
--muted-foreground: 0 0% 45.1%;
|
||||||
|
--accent: 0 0% 96.1%;
|
||||||
|
--accent-foreground: 0 0% 9%;
|
||||||
|
--destructive: 0 84.2% 60.2%;
|
||||||
|
--destructive-foreground: 0 0% 98%;
|
||||||
|
--border: 0 0% 89.8%;
|
||||||
|
--input: 0 0% 89.8%;
|
||||||
|
--ring: 0 0% 3.9%;
|
||||||
|
--chart-1: 12 76% 61%;
|
||||||
|
--chart-2: 173 58% 39%;
|
||||||
|
--chart-3: 197 37% 24%;
|
||||||
|
--chart-4: 43 74% 66%;
|
||||||
|
--chart-5: 27 87% 67%;
|
||||||
|
--radius: 0.5rem
|
||||||
|
}
|
||||||
|
.dark {
|
||||||
|
--background: 0 0% 3.9%;
|
||||||
|
--foreground: 0 0% 98%;
|
||||||
|
--card: 0 0% 3.9%;
|
||||||
|
--card-foreground: 0 0% 98%;
|
||||||
|
--popover: 0 0% 3.9%;
|
||||||
|
--popover-foreground: 0 0% 98%;
|
||||||
|
--primary: 0 0% 98%;
|
||||||
|
--primary-foreground: 0 0% 9%;
|
||||||
|
--secondary: 0 0% 14.9%;
|
||||||
|
--secondary-foreground: 0 0% 98%;
|
||||||
|
--muted: 0 0% 14.9%;
|
||||||
|
--muted-foreground: 0 0% 63.9%;
|
||||||
|
--accent: 0 0% 14.9%;
|
||||||
|
--accent-foreground: 0 0% 98%;
|
||||||
|
--destructive: 0 62.8% 30.6%;
|
||||||
|
--destructive-foreground: 0 0% 98%;
|
||||||
|
--border: 0 0% 14.9%;
|
||||||
|
--input: 0 0% 14.9%;
|
||||||
|
--ring: 0 0% 83.1%;
|
||||||
|
--chart-1: 220 70% 50%;
|
||||||
|
--chart-2: 160 60% 45%;
|
||||||
|
--chart-3: 30 80% 55%;
|
||||||
|
--chart-4: 280 65% 60%;
|
||||||
|
--chart-5: 340 75% 55%
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@layer base {
|
||||||
|
* {
|
||||||
|
@apply border-border;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
@apply bg-background text-foreground;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "NotoSansKR";
|
||||||
|
src: url("/fonts/NotoSansKR-Regular.woff2") format("woff2");
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "NotoSansKR", sans-serif;
|
||||||
|
}
|
||||||
@@ -1,9 +1,19 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
|
const DEFAULT_THRESHOLD = [0, 0.01, 0.1, 0.25, 0.5, 0.75];
|
||||||
|
|
||||||
export function useScrollSpy(sectionIds: string[], options?: IntersectionObserverInit) {
|
export function useScrollSpy(sectionIds: string[], options?: IntersectionObserverInit) {
|
||||||
const [activeId, setActiveId] = useState(sectionIds[0] ?? "");
|
const [activeId, setActiveId] = useState(sectionIds[0] ?? "");
|
||||||
const ratiosRef = useRef<Map<string, number>>(new Map());
|
const ratiosRef = useRef<Map<string, number>>(new Map());
|
||||||
|
const activeIdRef = useRef(activeId);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
activeIdRef.current = activeId;
|
||||||
|
}, [activeId]);
|
||||||
|
|
||||||
|
const threshold = options?.threshold ?? DEFAULT_THRESHOLD;
|
||||||
|
const thresholdKey = Array.isArray(threshold) ? threshold.join("|") : String(threshold);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const els = sectionIds
|
const els = sectionIds
|
||||||
@@ -26,7 +36,7 @@ export function useScrollSpy(sectionIds: string[], options?: IntersectionObserve
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ✅ 전체 섹션 중 가장 ratio 큰 항목을 active로
|
// ✅ 전체 섹션 중 가장 ratio 큰 항목을 active로
|
||||||
let bestId = activeId;
|
let bestId = activeIdRef.current;
|
||||||
let bestRatio = -1;
|
let bestRatio = -1;
|
||||||
|
|
||||||
for (const [id, ratio] of ratiosRef.current.entries()) {
|
for (const [id, ratio] of ratiosRef.current.entries()) {
|
||||||
@@ -39,17 +49,15 @@ export function useScrollSpy(sectionIds: string[], options?: IntersectionObserve
|
|||||||
if (bestId) setActiveId(bestId);
|
if (bestId) setActiveId(bestId);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
root: null,
|
root: options?.root ?? null,
|
||||||
threshold: [0, 0.01, 0.1, 0.25, 0.5, 0.75],
|
threshold,
|
||||||
rootMargin: DEFAULT_ROOT_MARGIN,
|
rootMargin: options?.rootMargin ?? DEFAULT_ROOT_MARGIN,
|
||||||
...options,
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
els.forEach((el) => io.observe(el));
|
els.forEach((el) => io.observe(el));
|
||||||
return () => io.disconnect();
|
return () => io.disconnect();
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [sectionIds, options?.root, options?.rootMargin, threshold, thresholdKey]);
|
||||||
}, [sectionIds.join("|"), options?.rootMargin, JSON.stringify(options?.threshold)]);
|
|
||||||
|
|
||||||
return activeId;
|
return activeId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_sections/Cases.tsx
|
// apps/dm/app/(landing)/reuse/_sections/Cases.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
|
import section03 from "@/public/images/landing/section_03.png";
|
||||||
|
|
||||||
export default function Cases() {
|
export default function Cases() {
|
||||||
return (
|
return (
|
||||||
<section id="cases" className="bg-[#EAF6F6]">
|
<section id="cases" className="bg-[#EAF6F6]">
|
||||||
@@ -50,10 +53,11 @@ export default function Cases() {
|
|||||||
w-full max-w-[720px]
|
w-full max-w-[720px]
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/section_03.png"
|
src={section03}
|
||||||
alt="물 재이용 현황 데이터 테이블"
|
alt="물 재이용 현황 데이터 테이블"
|
||||||
className="w-full h-auto object-cover"
|
className="w-full h-auto object-cover"
|
||||||
|
style={{ width: "100%", height: "auto" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -62,4 +66,4 @@ export default function Cases() {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// app/main/_sections/Hero.tsx
|
// app/main/_sections/Hero.tsx
|
||||||
|
import Image from "next/image";
|
||||||
import styles from "../../reuse.module.css";
|
import styles from "../../reuse.module.css";
|
||||||
|
|
||||||
export default function Hero() {
|
export default function Hero() {
|
||||||
@@ -21,9 +22,15 @@ export default function Hero() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="absolute inset-x-0 bottom-[120px] flex flex-col items-center justify-items-center gap-2 mt-10">
|
<div className="absolute inset-x-0 bottom-[120px] flex flex-col items-center justify-items-center gap-2 mt-10">
|
||||||
<img src="/images/landing/scroll_down.svg" alt="" className="w-[26px] h-[40px]" />
|
<Image
|
||||||
|
src="/images/landing/scroll_down.svg"
|
||||||
|
alt=""
|
||||||
|
width={26}
|
||||||
|
height={40}
|
||||||
|
className="w-[26px] h-[40px]"
|
||||||
|
/>
|
||||||
<span className="text-white/80 text-base tracking-[.25em]">scroll down</span>
|
<span className="text-white/80 text-base tracking-[.25em]">scroll down</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_sections/IntroCards.tsx
|
// apps/dm/app/(landing)/reuse/_sections/IntroCards.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image, { type StaticImageData } from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import card01 from "@/public/images/landing/card_01.jpg";
|
||||||
|
import card02 from "@/public/images/landing/card_02.jpg";
|
||||||
|
import card03 from "@/public/images/landing/card_03.jpg";
|
||||||
|
import card04 from "@/public/images/landing/card_04.jpg";
|
||||||
|
|
||||||
type IntroCardItem = {
|
type IntroCardItem = {
|
||||||
title: string;
|
title: string;
|
||||||
desc: string;
|
desc: string;
|
||||||
image: string;
|
image: StaticImageData;
|
||||||
href: string;
|
href: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -14,25 +19,25 @@ const INTRO_CARDS: IntroCardItem[] = [
|
|||||||
{
|
{
|
||||||
title: "물 재이용 법",
|
title: "물 재이용 법",
|
||||||
desc: "물의 재이용 촉진 및 지원에 관한 법률을 시행하고, 일부 법률은 개정되었습니다.",
|
desc: "물의 재이용 촉진 및 지원에 관한 법률을 시행하고, 일부 법률은 개정되었습니다.",
|
||||||
image: "/images/landing/card_01.jpg",
|
image: card01,
|
||||||
href: "/reuse/intro/law",
|
href: "/reuse/intro/law",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "친환경 수자원 빗물",
|
title: "친환경 수자원 빗물",
|
||||||
desc: "가뭄을 극복하고 홍수를 예방하기 위해 비가 내릴 때 빗물을 모아두었다가 사용합니다.",
|
desc: "가뭄을 극복하고 홍수를 예방하기 위해 비가 내릴 때 빗물을 모아두었다가 사용합니다.",
|
||||||
image: "/images/landing/card_02.jpg",
|
image: card02,
|
||||||
href: "/reuse/intro/rain",
|
href: "/reuse/intro/rain",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "알뜰하게 재이용되는 중수",
|
title: "알뜰하게 재이용되는 중수",
|
||||||
desc: "한번 사용한 물을 중수도 시설을 통해 재생하여 개별적 또는 지역적으로 재이용할 수 있습니다.",
|
desc: "한번 사용한 물을 중수도 시설을 통해 재생하여 개별적 또는 지역적으로 재이용할 수 있습니다.",
|
||||||
image: "/images/landing/card_03.jpg",
|
image: card03,
|
||||||
href: "/reuse/intro/greywater",
|
href: "/reuse/intro/greywater",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "하수처리수 재이용",
|
title: "하수처리수 재이용",
|
||||||
desc: "사용하고 버려진 공공하수처리장으로 모여진 물을 용도에 맞는 처리 후 재이용 할 수 있습니다.",
|
desc: "사용하고 버려진 공공하수처리장으로 모여진 물을 용도에 맞는 처리 후 재이용 할 수 있습니다.",
|
||||||
image: "/images/landing/card_04.jpg",
|
image: card04,
|
||||||
href: "/reuse/intro/treated",
|
href: "/reuse/intro/treated",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -61,10 +66,12 @@ export default function IntroCards() {
|
|||||||
className="group relative h-[280px] md:h-[320px] lg:h-[500px] overflow-hidden rounded-2xl cursor-pointer focus:outline-none focus:ring-2 focus:ring-sky-400/60"
|
className="group relative h-[280px] md:h-[320px] lg:h-[500px] overflow-hidden rounded-2xl cursor-pointer focus:outline-none focus:ring-2 focus:ring-sky-400/60"
|
||||||
>
|
>
|
||||||
{/* 배경 이미지 (이미 그라디언트 포함) */}
|
{/* 배경 이미지 (이미 그라디언트 포함) */}
|
||||||
<img
|
<Image
|
||||||
src={card.image}
|
src={card.image}
|
||||||
alt={card.title}
|
alt={card.title}
|
||||||
className="absolute inset-0 h-full w-full object-cover transition-transform duration-500 hover:scale-105"
|
fill
|
||||||
|
sizes="(min-width: 1024px) 25vw, (min-width: 768px) 50vw, 100vw"
|
||||||
|
className="absolute inset-0 h-full w-full object-cover transition-transform duration-500 hover:scale-105"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* 텍스트 영역 */}
|
{/* 텍스트 영역 */}
|
||||||
@@ -83,4 +90,4 @@ export default function IntroCards() {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// apps/dm/app/(landing)/reuse/page.tsx
|
// apps/dm/app/(landing)/reuse/page.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import { useMemo } from "react";
|
||||||
import TopNav from "@/components/TopNav";
|
import TopNav from "@/components/TopNav";
|
||||||
import SideIndicator from "./SideIndicator";
|
import SideIndicator from "./SideIndicator";
|
||||||
import { useScrollSpy } from "./_hooks/useScrollSpy";
|
import { useScrollSpy } from "./_hooks/useScrollSpy";
|
||||||
@@ -30,7 +31,8 @@ const LANDING_SECTIONS = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export default function ReuseLandingPage() {
|
export default function ReuseLandingPage() {
|
||||||
const activeId = useScrollSpy(LANDING_SECTIONS.map((s) => s.id));
|
const sectionIds = useMemo(() => LANDING_SECTIONS.map((s) => s.id), []);
|
||||||
|
const activeId = useScrollSpy(sectionIds);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="bg-white">
|
<main className="bg-white">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { fetchType, getFetch, postFetch } from "@/components/ui/api";
|
import { fetchType, getFetch, postFetch, getFetchWithCount } from "@/components/ui/api";
|
||||||
import type { SelectDataType } from "@common/business_components/ui";
|
import type { SelectDataType } from "@common/business_components/ui";
|
||||||
import type { TableUpperProps } from "../common";
|
import type { TableUpperProps } from "../common";
|
||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
@@ -10,34 +10,27 @@ import { z } from "zod";
|
|||||||
=====================================*/
|
=====================================*/
|
||||||
|
|
||||||
export const sdmInfoFormSchema = z.object({
|
export const sdmInfoFormSchema = z.object({
|
||||||
sdmNm: z.string().min(1, "수요처를 선택해주세요"),
|
dmdInfoId: z.string().optional(),
|
||||||
demandYmd: z.date().optional(),
|
dmndTmng: z.date().optional(),
|
||||||
demandQnty: z
|
dmndQty: z.number().min(1, "요구수량을 입력해주세요"),
|
||||||
.string()
|
wntUntprc: z.number().min(1, "희망단가를 입력해주세요"),
|
||||||
.min(1, "요구수량을 입력해주세요")
|
useUsgCd: z.string().min(1, "사용용도를 선택해주세요"),
|
||||||
.regex(/^[0-9]+$/, "요구수량은 숫자만 입력 가능합니다"),
|
/** 수질 */
|
||||||
usePurpose: z.string().optional(),
|
|
||||||
money: z.string().regex(/^[0-9]+$/, "희망단가는 숫자만 입력 가능합니다"),
|
|
||||||
/**요구수질 */
|
|
||||||
reqWaterQlty: z.string().optional(),
|
|
||||||
grssClfg: z.number().nullish(),
|
grssClfg: z.number().nullish(),
|
||||||
tn: z.number().nullish(),
|
tn: z.number().nullish(),
|
||||||
combResdch: z.number().nullish(),
|
combResdch: z.number().nullish(),
|
||||||
tph: z.number().nullish(),
|
tph: z.number().nullish(),
|
||||||
trbt: z.number().nullish(),
|
trbt: z.number().nullish(),
|
||||||
ph: z.string().nullish(),
|
ph: z.string().nullish(),
|
||||||
bod: z.number().nullish(),
|
blgcOxygDmndQnt: z.number().nullish(),
|
||||||
/**컬럼확인필요 */
|
|
||||||
clIonQnt: z.number().nullish(),
|
clIonQnt: z.number().nullish(),
|
||||||
smll: z.string(),
|
smll: z.string(),
|
||||||
cdtnv: z.number().nullish(),
|
cdtnv: z.number().nullish(),
|
||||||
crmty: z.number().nullish(),
|
crmty: z.number().nullish(),
|
||||||
|
|
||||||
rmrk: z.string().optional(),
|
rmrk: z.string().optional(),
|
||||||
/* telno: z.string()
|
|
||||||
.min(8, "전화번호는 8자 이상 입력해주세요")
|
splyCndtList: z
|
||||||
.max(12, "전화번호는 12자 이내로 입력해주세요")
|
|
||||||
.regex(/^[0-9-]+$/, "전화번호는 숫자와 하이픈(-)만 입력 가능합니다"), */
|
|
||||||
candidateTitle: z
|
|
||||||
.array(
|
.array(
|
||||||
z.object({
|
z.object({
|
||||||
ruseUtztnFcltNm: z.string(),
|
ruseUtztnFcltNm: z.string(),
|
||||||
@@ -45,58 +38,6 @@ export const sdmInfoFormSchema = z.object({
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
.optional(),
|
.optional(),
|
||||||
}).superRefine((data, ctx) => {
|
|
||||||
const disabledFields = disableRules[data.usePurpose ?? ""] || [];
|
|
||||||
// 모든 수질 관련 필드
|
|
||||||
// 총대장균군수는 null 값을 불검출로 표시하기때문에 해당 검사에서 제외함.
|
|
||||||
const allFields: (keyof typeof data)[] = [
|
|
||||||
"tn", "combResdch", "tph",
|
|
||||||
"trbt", "ph", "bod", "clIonQnt",
|
|
||||||
"smll", "cdtnv", "crmty",
|
|
||||||
];
|
|
||||||
|
|
||||||
const allFieldsName: Record<string, string> = {
|
|
||||||
tn: "총질소(T-N)(mg/L)",
|
|
||||||
combResdch: "결합잔류염소(mg/L)",
|
|
||||||
tph: "총인(T-P)(mg/L)",
|
|
||||||
trbt: "탁도(NTU)",
|
|
||||||
ph: "수소이온농도(pH)",
|
|
||||||
bod: "생물학적 산소요구량(BOD)(mg/L)",
|
|
||||||
clIonQnt: "염화물(mgCL/L)",
|
|
||||||
smll: "냄새",
|
|
||||||
cdtnv: "전기전도도(㎲/cm)",
|
|
||||||
crmty: "색도(도)",
|
|
||||||
};
|
|
||||||
allFields.forEach((field) => {
|
|
||||||
const isDisabled = disabledFields.includes(field);
|
|
||||||
if (!isDisabled) {
|
|
||||||
// disabled가 아닌 필드는 반드시 값이 있어야 함
|
|
||||||
const value = data[field];
|
|
||||||
if (typeof value === "string") {
|
|
||||||
if (value.trim().length === 0) {
|
|
||||||
ctx.addIssue({
|
|
||||||
code: z.ZodIssueCode.custom,
|
|
||||||
path: [field],
|
|
||||||
message: `${allFieldsName[field]} 을 입력해주세요.`,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else if (typeof value === "number") {
|
|
||||||
if (value <= 0 || Number.isNaN(value)) {
|
|
||||||
ctx.addIssue({
|
|
||||||
code: z.ZodIssueCode.custom,
|
|
||||||
path: [field],
|
|
||||||
message: `${allFieldsName[field]} 을 입력해주세요.`,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else if (value == null) {
|
|
||||||
ctx.addIssue({
|
|
||||||
code: z.ZodIssueCode.custom,
|
|
||||||
path: [field],
|
|
||||||
message: `${allFieldsName[field]} 을 입력해주세요.`,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type SdmInfoFormData = z.infer<typeof sdmInfoFormSchema>;
|
export type SdmInfoFormData = z.infer<typeof sdmInfoFormSchema>;
|
||||||
@@ -136,8 +77,9 @@ export type DemandCompBizType = {
|
|||||||
dmdInfoSn: number | '';
|
dmdInfoSn: number | '';
|
||||||
status: string | '';
|
status: string | '';
|
||||||
splyCndtList: SupplyCandidate[] | [],
|
splyCndtList: SupplyCandidate[] | [],
|
||||||
ruseUtztnFcltNm?: string | ''
|
ruseUtztnFcltNm?: string | '';
|
||||||
|
regDt: string | '';
|
||||||
|
mdfcnDt : string | '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// 공급 후보자 타입 정의
|
// 공급 후보자 타입 정의
|
||||||
@@ -394,7 +336,7 @@ const defaultRules: Record<string, object> = {
|
|||||||
|
|
||||||
// 사용용도
|
// 사용용도
|
||||||
const useTypesData: SelectDataType[] = [
|
const useTypesData: SelectDataType[] = [
|
||||||
{ text: '청소', val: "청소" },
|
/* { text: '청소', val: "청소" },
|
||||||
{ text: "화장실용수", val: "화장실용수" },
|
{ text: "화장실용수", val: "화장실용수" },
|
||||||
{ text: "세척", val: "세척" },
|
{ text: "세척", val: "세척" },
|
||||||
{ text: "살수", val: "살수" },
|
{ text: "살수", val: "살수" },
|
||||||
@@ -402,7 +344,7 @@ const useTypesData: SelectDataType[] = [
|
|||||||
{ text: "농업_간접용수", val: "농업_간접용수" },
|
{ text: "농업_간접용수", val: "농업_간접용수" },
|
||||||
{ text: "농업_직접용수", val: "농업_직접용수" },
|
{ text: "농업_직접용수", val: "농업_직접용수" },
|
||||||
{ text: "하천", val: "하천" },
|
{ text: "하천", val: "하천" },
|
||||||
{ text: "공업", val: "공업" },
|
{ text: "공업", val: "공업" }, */
|
||||||
];
|
];
|
||||||
|
|
||||||
// 유사사례 모달 헤더
|
// 유사사례 모달 헤더
|
||||||
@@ -513,13 +455,28 @@ const postSdmData = async (data: DemandCompType) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 수요정보 등록
|
// 수요정보 등록
|
||||||
const postSdmInfoData = async (data: DemandCompBizType) => {
|
const postSdmInfoData = async (data: SdmInfoFormData): Promise<boolean> => {
|
||||||
try {
|
try {
|
||||||
await postFetch("/reuseFc/request/demandInfo", data);
|
await postFetch("/reuseFc/request/demandInfo", data);
|
||||||
toast.success('수요 정보 등록에 성공하였습니다.');
|
alert('수요 정보 등록에 성공하였습니다.');
|
||||||
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
toast.error('수요 정보 등록에 실패하였습니다.');
|
alert('수요 정보 등록에 실패하였습니다.');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 수요정보 수정
|
||||||
|
const fetchUpdateSdmInfoData = async (data: SdmInfoFormData): Promise<boolean> => {
|
||||||
|
try {
|
||||||
|
await postFetch("/reuseFc/request/updateDemandInfo", data);
|
||||||
|
alert('수요 정보 수정에 성공하였습니다.');
|
||||||
|
return true;
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
alert('수요 정보 수정에 실패하였습니다.');
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -595,12 +552,15 @@ const fetchGetSimilarCaseList = async (part: string, value: number | string) =>
|
|||||||
export type SdmActions = {
|
export type SdmActions = {
|
||||||
initializeSdmData: () => void;
|
initializeSdmData: () => void;
|
||||||
insertSdmData: (data: DemandCompType) => Promise<void>;
|
insertSdmData: (data: DemandCompType) => Promise<void>;
|
||||||
insertSdmInfoData: (data: DemandCompBizType) => Promise<void>;
|
insertSdmInfoData: (data: SdmInfoFormData) => Promise<boolean>;
|
||||||
|
updateSdmInfoData: (data: SdmInfoFormData) => Promise<boolean>;
|
||||||
getDemandCompList: (searchText: string, pageCnt: number) => Promise<void>;
|
getDemandCompList: (searchText: string, pageCnt: number) => Promise<void>;
|
||||||
actionLogin: (data: DemandCompType) => Promise<void>;
|
actionLogin: (data: DemandCompType) => Promise<void>;
|
||||||
getSdmInfoStatusList: (dmdInfoId: string) => Promise<void>;
|
getSdmInfoStatusList: (dmdInfoId: string) => Promise<void>;
|
||||||
getSimilarCaseList: (part: string, value: number | string) => Promise<void>;
|
getSimilarCaseList: (part: string, value: number | string) => Promise<void>;
|
||||||
actionLogout: () => Promise<void>;
|
actionLogout: () => Promise<void>;
|
||||||
|
|
||||||
|
getUseTypesData: () => Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SdmType = {
|
export type SdmType = {
|
||||||
@@ -668,8 +628,12 @@ export const SdmReducer = (set: any): SdmActions => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
insertSdmInfoData: async (data: DemandCompBizType) => {
|
insertSdmInfoData: async (data: SdmInfoFormData): Promise<boolean> => {
|
||||||
postSdmInfoData(data);
|
return await postSdmInfoData(data);
|
||||||
|
},
|
||||||
|
|
||||||
|
updateSdmInfoData: async (data: SdmInfoFormData): Promise<boolean> => {
|
||||||
|
return await fetchUpdateSdmInfoData(data);
|
||||||
},
|
},
|
||||||
|
|
||||||
// 수요처 정보
|
// 수요처 정보
|
||||||
@@ -766,7 +730,6 @@ export const SdmReducer = (set: any): SdmActions => {
|
|||||||
ruseBizNm: maskedBizNm,
|
ruseBizNm: maskedBizNm,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
console.log(similarCaseList);
|
|
||||||
|
|
||||||
if (similarCaseList && similarCaseList.length !== 0) {
|
if (similarCaseList && similarCaseList.length !== 0) {
|
||||||
set((state: SdmType) => ({
|
set((state: SdmType) => ({
|
||||||
@@ -795,6 +758,24 @@ export const SdmReducer = (set: any): SdmActions => {
|
|||||||
successLogin: false,
|
successLogin: false,
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
},
|
||||||
|
|
||||||
|
getUseTypesData: async () => {
|
||||||
|
//http://dev.onasys.co.kr:3000/server/cms-service/api/v1/lwpo-cds?lwpoCdNm=&sort=regDt,desc&upCd=WR018&page=0&size=10
|
||||||
|
|
||||||
|
const upCd = await getFetchWithCount(
|
||||||
|
fetchType.CS,
|
||||||
|
"/cms-service/api/v1/lwpo-cds/?lwpoCdNm=&sort=regDt,desc&upCd=WR018&page=0&size=100"
|
||||||
|
);
|
||||||
|
|
||||||
|
const comUseTypes = upCd.content.filter(el=>el.lwpoCdNm != '친수용수').map((el: any) => ({ text: el.lwpoCdNm, val: el.lwpoCd }));
|
||||||
|
|
||||||
|
set((state: SdmType) => ({
|
||||||
|
Sdm: {
|
||||||
|
...state.Sdm,
|
||||||
|
useTypesData: comUseTypes,
|
||||||
|
}
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,16 @@ type SuggestionSeed = {
|
|||||||
bldgNoMno: number;
|
bldgNoMno: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 주소 검색 API를 호출해 우편번호/주소 목록을 조회한다.
|
||||||
|
* @param searchQuery 조회 조건 객체
|
||||||
|
* @param searchQuery.roadNm 도로명
|
||||||
|
* @param searchQuery.bldgNoMno 건물 본번
|
||||||
|
* @param searchQuery.bldgNoSno 건물 부번
|
||||||
|
* @param searchQuery.page 0부터 시작하는 페이지 번호
|
||||||
|
* @param searchQuery.size 페이지당 조회 건수
|
||||||
|
* @returns 주소 목록과 전체 건수를 포함한 응답 객체
|
||||||
|
*/
|
||||||
async function findAddress(searchQuery: ZipSearchParams): Promise<ZipListResponse> {
|
async function findAddress(searchQuery: ZipSearchParams): Promise<ZipListResponse> {
|
||||||
if (!searchQuery) return {};
|
if (!searchQuery) return {};
|
||||||
|
|
||||||
@@ -68,6 +78,12 @@ async function findAddress(searchQuery: ZipSearchParams): Promise<ZipListRespons
|
|||||||
return (await response.json()) as ZipListResponse;
|
return (await response.json()) as ZipListResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 자동완성 후보를 만들기 위해 주소 항목에서 도로명과 건물 본번을 추출한다.
|
||||||
|
* 우선 API 응답 필드의 값을 사용하고, 값이 없으면 표시 주소 문자열을 파싱해 보정한다.
|
||||||
|
* @param item 주소 검색 결과 1건
|
||||||
|
* @returns 자동완성 생성에 사용할 도로명/건물본번 또는 추출 실패 시 null
|
||||||
|
*/
|
||||||
function extractSuggestionSeed(item: Zip): SuggestionSeed | null {
|
function extractSuggestionSeed(item: Zip): SuggestionSeed | null {
|
||||||
const ext = item as Zip & {
|
const ext = item as Zip & {
|
||||||
roadNm?: string;
|
roadNm?: string;
|
||||||
@@ -97,6 +113,11 @@ function extractSuggestionSeed(item: Zip): SuggestionSeed | null {
|
|||||||
return { roadNm, bldgNoMno };
|
return { roadNm, bldgNoMno };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 검색어에 허용되지 않는 특수문자나 SQL 예약어가 포함되어 있는지 검사한다.
|
||||||
|
* @param search 사용자가 입력한 검색 문자열
|
||||||
|
* @returns 검색 가능하면 true, 차단 대상이면 false
|
||||||
|
*/
|
||||||
function searchFilter(search: string): boolean {
|
function searchFilter(search: string): boolean {
|
||||||
if (search.length === 0) return true;
|
if (search.length === 0) return true;
|
||||||
|
|
||||||
@@ -132,6 +153,13 @@ function searchFilter(search: string): boolean {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 단일 입력 주소 문자열을 "도로명 + 건물번호" 구조로 파싱해 API 조회 파라미터로 변환한다.
|
||||||
|
* 예) "테헤란로 152-1" -> { roadNm: "테헤란로", bldgNoMno: 152, bldgNoSno: 1, page }
|
||||||
|
* @param input 사용자가 입력한 주소 검색어
|
||||||
|
* @param page 1부터 시작하는 요청 페이지 번호
|
||||||
|
* @returns 파싱 성공 시 API 조회 파라미터와 정규화된 검색어, 실패 시 오류 메시지
|
||||||
|
*/
|
||||||
export function parsePostcodeInput(
|
export function parsePostcodeInput(
|
||||||
input: string,
|
input: string,
|
||||||
page = 1,
|
page = 1,
|
||||||
@@ -205,6 +233,12 @@ export function parsePostcodeInput(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 전체 도로명 주소 문자열에서 재검색에 사용할 "도로명 건물번호" 입력값만 추출한다.
|
||||||
|
* 예) "테헤란로 152, OO빌딩" -> "테헤란로 152"
|
||||||
|
* @param roadAddr 화면에 표시된 도로명 주소 문자열
|
||||||
|
* @returns 재검색 입력란에 넣을 수 있는 문자열, 추출 실패 시 빈 문자열
|
||||||
|
*/
|
||||||
export function extractSearchInputFromRoadAddr(roadAddr: string): string {
|
export function extractSearchInputFromRoadAddr(roadAddr: string): string {
|
||||||
const firstSegment = roadAddr.split(",")[0]?.trim() ?? "";
|
const firstSegment = roadAddr.split(",")[0]?.trim() ?? "";
|
||||||
if (!firstSegment) return "";
|
if (!firstSegment) return "";
|
||||||
@@ -216,6 +250,12 @@ export function extractSearchInputFromRoadAddr(roadAddr: string): string {
|
|||||||
return `${parts.slice(0, -1).join(" ")} ${bldgToken}`.trim();
|
return `${parts.slice(0, -1).join(" ")} ${bldgToken}`.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 사용자가 입력 중인 도로명을 기준으로 자동완성 후보를 조회한다.
|
||||||
|
* 건물번호가 함께 입력된 경우에는 마지막 숫자 토큰을 제외한 도로명만으로 후보를 찾는다.
|
||||||
|
* @param input 사용자가 입력창에 입력한 원본 문자열
|
||||||
|
* @returns 최대 5개의 "도로명 건물본번" 자동완성 문자열 목록
|
||||||
|
*/
|
||||||
export async function fetchPostcodeSuggestions(input: string): Promise<string[]> {
|
export async function fetchPostcodeSuggestions(input: string): Promise<string[]> {
|
||||||
const normalized = input.replace(/\s+/g, " ").trim();
|
const normalized = input.replace(/\s+/g, " ").trim();
|
||||||
const parts = normalized.split(" ");
|
const parts = normalized.split(" ");
|
||||||
@@ -252,6 +292,15 @@ export async function fetchPostcodeSuggestions(input: string): Promise<string[]>
|
|||||||
return suggestions;
|
return suggestions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 우편번호 검색 API를 호출해 화면 표시용 우편번호 목록 형태로 변환한다.
|
||||||
|
* @param params 조회 조건 객체
|
||||||
|
* @param params.roadNm 검색할 도로명
|
||||||
|
* @param params.bldgNoMno 건물 본번
|
||||||
|
* @param params.bldgNoSno 건물 부번
|
||||||
|
* @param params.page 1부터 시작하는 화면 페이지 번호
|
||||||
|
* @returns 전체 건수와 화면 표시용 주소 목록
|
||||||
|
*/
|
||||||
export async function fetchPostcode(
|
export async function fetchPostcode(
|
||||||
params: PostcodeSearchParams,
|
params: PostcodeSearchParams,
|
||||||
): Promise<PostcodeSearchResult> {
|
): Promise<PostcodeSearchResult> {
|
||||||
|
|||||||
@@ -0,0 +1,327 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useEffect, useMemo, useState } from "react";
|
||||||
|
|
||||||
|
export type CandidateSite = {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
sewageM3d: number; // 하수처리량
|
||||||
|
reuseM3d: number; // 재이용량
|
||||||
|
// 지도 연동 시 사용(현재는 UI/구조용)
|
||||||
|
lat?: number;
|
||||||
|
lng?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
open: boolean;
|
||||||
|
onClose: () => void;
|
||||||
|
onApply: (selected: CandidateSite[]) => void;
|
||||||
|
initialSelected?: CandidateSite[];
|
||||||
|
maxSelect?: number; // 기본 3개
|
||||||
|
};
|
||||||
|
|
||||||
|
const MOCK_SITES: CandidateSite[] = [
|
||||||
|
{ id: "1", name: "서호생태 수자원 재이용1", sewageM3d: 1300, reuseM3d: 1300, lat: 35.0, lng: 128.0 },
|
||||||
|
{ id: "2", name: "서호생태 수자원 재이용2", sewageM3d: 1300, reuseM3d: 1300, lat: 35.01, lng: 128.01 },
|
||||||
|
{ id: "3", name: "서호생태 수자원 재이용3", sewageM3d: 1300, reuseM3d: 1300, lat: 35.02, lng: 128.02 },
|
||||||
|
];
|
||||||
|
|
||||||
|
export default function CandidateSiteModal({
|
||||||
|
open,
|
||||||
|
onClose,
|
||||||
|
onApply,
|
||||||
|
initialSelected = [],
|
||||||
|
maxSelect = 3,
|
||||||
|
}: Props) {
|
||||||
|
const [q, setQ] = useState("");
|
||||||
|
const [selected, setSelected] = useState<CandidateSite[]>(initialSelected);
|
||||||
|
|
||||||
|
// 지도 마커 컴포넌트
|
||||||
|
function MapMarker({ label }: { label?: string }) {
|
||||||
|
return (
|
||||||
|
<div className="relative -translate-x-1/2 -translate-y-full">
|
||||||
|
<svg width="72" height="66" viewBox="0 0 72 92">
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="pinGrad" x1="0" y1="0" x2="0" y2="1">
|
||||||
|
<stop offset="0%" stopColor="#2EDAA0" />
|
||||||
|
<stop offset="100%" stopColor="#02A7D8" />
|
||||||
|
</linearGradient>
|
||||||
|
|
||||||
|
<filter id="pinShadow" x="-50%" y="-50%" width="200%" height="200%">
|
||||||
|
<feDropShadow dx="0" dy="2" stdDeviation="2" floodColor="#000" floodOpacity="0.18" />
|
||||||
|
</filter>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
{/* pin body */}
|
||||||
|
<path
|
||||||
|
filter="url(#pinShadow)"
|
||||||
|
d="M36 2C21 2 9 14 9 29c0 22 24 50 26.4 52.7a2 2 0 0 0 3.2 0C40.9 79 63 51 63 29 63 14 51 2 36 2z"
|
||||||
|
fill="url(#pinGrad)"
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* 내부 흰 원 */}
|
||||||
|
<circle cx="36" cy="29" r="20" fill="#FFFFFF" />
|
||||||
|
|
||||||
|
{label && (
|
||||||
|
<text
|
||||||
|
x="36"
|
||||||
|
y="36"
|
||||||
|
textAnchor="middle"
|
||||||
|
fontSize="18"
|
||||||
|
fontWeight="700"
|
||||||
|
fill="#1F2937"
|
||||||
|
>
|
||||||
|
{label}
|
||||||
|
</text>
|
||||||
|
)}
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 모달 열릴 때마다 초기 선택값 동기화
|
||||||
|
useEffect(() => {
|
||||||
|
if (open) setSelected(initialSelected);
|
||||||
|
if (open) setQ("");
|
||||||
|
}, [open, initialSelected]);
|
||||||
|
|
||||||
|
// ESC 닫기
|
||||||
|
useEffect(() => {
|
||||||
|
if (!open) return;
|
||||||
|
const onKeyDown = (e: KeyboardEvent) => {
|
||||||
|
if (e.key === "Escape") onClose();
|
||||||
|
};
|
||||||
|
window.addEventListener("keydown", onKeyDown);
|
||||||
|
return () => window.removeEventListener("keydown", onKeyDown);
|
||||||
|
}, [open, onClose]);
|
||||||
|
|
||||||
|
const filtered = useMemo(() => {
|
||||||
|
const keyword = q.trim();
|
||||||
|
if (!keyword) return MOCK_SITES;
|
||||||
|
return MOCK_SITES.filter((s) => s.name.includes(keyword));
|
||||||
|
}, [q]);
|
||||||
|
|
||||||
|
const isSelected = (id: string) => selected.some((s) => s.id === id);
|
||||||
|
|
||||||
|
const toggleSelect = (item: CandidateSite) => {
|
||||||
|
setSelected((prev) => {
|
||||||
|
const exists = prev.some((p) => p.id === item.id);
|
||||||
|
if (exists) return prev.filter((p) => p.id !== item.id);
|
||||||
|
|
||||||
|
if (prev.length >= maxSelect) return prev; // 최대 개수 초과 방지
|
||||||
|
return [...prev, item];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const removeChip = (id: string) => setSelected((prev) => prev.filter((p) => p.id !== id));
|
||||||
|
|
||||||
|
if (!open) return null;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className="fixed inset-0 z-[1000] flex items-center justify-center"
|
||||||
|
role="dialog"
|
||||||
|
aria-modal="true"
|
||||||
|
aria-label="후보지 조회"
|
||||||
|
>
|
||||||
|
{/* overlay */}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="absolute inset-0 bg-black/30"
|
||||||
|
aria-label="모달 닫기"
|
||||||
|
onClick={onClose}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* panel */}
|
||||||
|
<div className="relative w-[94vw] max-w-[1400px] rounded-xl bg-white shadow-xl">
|
||||||
|
{/* header */}
|
||||||
|
<div className="flex items-center justify-between px-8 py-6">
|
||||||
|
<h2 className="text-2xl font-extrabold text-neutral-900">후보지 조회</h2>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
aria-label="닫기"
|
||||||
|
onClick={onClose}
|
||||||
|
className="grid h-10 w-10 place-items-center rounded-sm hover:bg-neutral-100"
|
||||||
|
>
|
||||||
|
✕
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div className="h-px w-full bg-neutral-200" />
|
||||||
|
|
||||||
|
{/* body */}
|
||||||
|
<div className="px-8 py-6">
|
||||||
|
<div className="grid grid-cols-12 gap-6">
|
||||||
|
{/* left: search + table */}
|
||||||
|
<div className="col-span-12 lg:col-span-5">
|
||||||
|
<div className="mb-3 text-lg font-semibold text-neutral-900">후보지 검색</div>
|
||||||
|
|
||||||
|
<div className="relative">
|
||||||
|
<input
|
||||||
|
value={q}
|
||||||
|
onChange={(e) => setQ(e.target.value)}
|
||||||
|
placeholder="주소검색"
|
||||||
|
className="h-12 w-full rounded-sm border border-neutral-300 bg-white px-4 pr-12 text-sm outline-none focus:border-sky-500"
|
||||||
|
/>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
aria-label="검색"
|
||||||
|
onClick={() => setQ((v) => v.trim())}
|
||||||
|
className="absolute right-2 top-1/2 -translate-y-1/2 grid h-9 w-9 place-items-center rounded-full text-[#01ACE5] hover:bg-slate-100"
|
||||||
|
>
|
||||||
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
|
||||||
|
<path
|
||||||
|
d="M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth="2"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M21 21l-4.3-4.3"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth="2"
|
||||||
|
strokeLinecap="round"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* table header */}
|
||||||
|
<div className="mt-4 overflow-hidden rounded-sm border border-neutral-200">
|
||||||
|
<div className="grid grid-cols-12 bg-emerald-50/70 px-4 py-3 text-sm font-semibold text-neutral-800">
|
||||||
|
<div className="col-span-6 flex items-center justify-center">시설명</div>
|
||||||
|
<div className="col-span-2 text-center">
|
||||||
|
하수처리량<br />(m³/일)
|
||||||
|
</div>
|
||||||
|
<div className="col-span-2 text-center">
|
||||||
|
재이용량<br />(m³/일)
|
||||||
|
</div>
|
||||||
|
<div className="col-span-2 text-center">선택</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* rows */}
|
||||||
|
<div className="max-h-[420px] overflow-auto">
|
||||||
|
{filtered.length === 0 ? (
|
||||||
|
<div className="px-4 py-10 text-center text-sm text-neutral-500">
|
||||||
|
검색 결과가 없습니다.
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
filtered.map((s, idx) => {
|
||||||
|
const picked = isSelected(s.id);
|
||||||
|
const disabled = !picked && selected.length >= maxSelect;
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
key={s.id}
|
||||||
|
className="grid grid-cols-12 items-center gap-2 border-t border-neutral-200 px-4 py-3 text-sm"
|
||||||
|
>
|
||||||
|
<div className="col-span-6 truncate">
|
||||||
|
<span className="mr-2 text-neutral-500">{idx + 1}</span>
|
||||||
|
{s.name}
|
||||||
|
</div>
|
||||||
|
<div className="col-span-2 text-center">{s.sewageM3d.toLocaleString()}</div>
|
||||||
|
<div className="col-span-2 text-center">{s.reuseM3d.toLocaleString()}</div>
|
||||||
|
<div className="col-span-2 flex justify-center">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
disabled={disabled}
|
||||||
|
onClick={() => toggleSelect(s)}
|
||||||
|
className={[
|
||||||
|
"h-8 rounded-sm px-3 text-xs",
|
||||||
|
picked ? "bg-gray-600 text-white" : "bg-sky-500 text-white hover:bg-sky-600",
|
||||||
|
disabled ? "cursor-not-allowed opacity-40" : "",
|
||||||
|
].join(" ")}
|
||||||
|
>
|
||||||
|
{picked ? "해제" : "선택"}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* <div className="mt-2 text-xs text-neutral-500">
|
||||||
|
최대 {maxSelect}개까지 선택 가능합니다.
|
||||||
|
</div> */}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* right: map */}
|
||||||
|
<div className="col-span-12 lg:col-span-7">
|
||||||
|
<div className="h-[520px] w-full overflow-hidden rounded-sm border border-neutral-200 bg-neutral-50 relative">
|
||||||
|
{/* TODO: 실제 지도 SDK 연동 시 이 영역 교체 */}
|
||||||
|
<div className="absolute inset-0 grid place-items-center text-sm text-neutral-500">
|
||||||
|
지도 영역(추후 지도 SDK 연동)
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 선택된 항목의 "가짜 마커" */}
|
||||||
|
{selected.map((s, i) => {
|
||||||
|
const POS = [
|
||||||
|
{ top: "40%", left: "45%" },
|
||||||
|
{ top: "25%", left: "75%" },
|
||||||
|
{ top: "70%", left: "80%" },
|
||||||
|
] as const;
|
||||||
|
|
||||||
|
const pos = POS[i % POS.length] ?? POS[0];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
key={s.id}
|
||||||
|
className="absolute"
|
||||||
|
style={{ top: pos.top, left: pos.left }}
|
||||||
|
>
|
||||||
|
<MapMarker label={String(i + 1)} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* selected chips */}
|
||||||
|
<div className="mt-6">
|
||||||
|
<div className="mb-2 text-lg font-semibold text-neutral-900">
|
||||||
|
선택된 시설 <span className="text-sm font-normal text-neutral-500">(시설명/하수처리량(m³/일)/재이용량(m³/일))</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="min-h-[52px] rounded-sm border border-neutral-200 bg-white px-4 py-3">
|
||||||
|
{selected.length === 0 ? (
|
||||||
|
<div className="text-sm text-neutral-500">선택된 시설이 없습니다.</div>
|
||||||
|
) : (
|
||||||
|
<div className="flex flex-wrap gap-3">
|
||||||
|
{selected.map((s) => (
|
||||||
|
<div
|
||||||
|
key={s.id}
|
||||||
|
className="inline-flex items-center gap-3 rounded-sm bg-[#EAF5F5] px-4 py-3 text-sm text-[#01ACE5]"
|
||||||
|
>
|
||||||
|
<span className="font-medium">
|
||||||
|
{s.name} / {s.sewageM3d.toLocaleString()}(m³/일) / {s.reuseM3d.toLocaleString()}(m³/일)
|
||||||
|
</span>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
aria-label="삭제"
|
||||||
|
onClick={() => removeChip(s.id)}
|
||||||
|
className="grid h-7 w-7 place-items-center rounded-sm hover:bg-sky-100 text-neutral-700 font-semibold"
|
||||||
|
>
|
||||||
|
✕
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* footer button */}
|
||||||
|
<div className="mt-6 flex justify-center pb-2">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() => onApply(selected)}
|
||||||
|
className="h-11 rounded-sm bg-[#0B4EA2] px-10 text-base text-white hover:opacity-90"
|
||||||
|
>
|
||||||
|
후보지 확인 및 적용
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_components/ImageSlider.tsx
|
// apps/dm/app/(landing)/reuse/_components/ImageSlider.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
import { useEffect, useMemo, useRef, useState } from "react";
|
import { useEffect, useMemo, useRef, useState } from "react";
|
||||||
|
|
||||||
type Slide = { src: string; alt?: string };
|
type Slide = { src: string; alt?: string };
|
||||||
@@ -86,10 +87,12 @@ export default function CaseImageSlider({
|
|||||||
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
||||||
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_left_arrow.png"
|
src="/images/landing/icon_left_arrow.png"
|
||||||
alt="이전"
|
alt="이전"
|
||||||
className="w-[12px] h-[22px]"
|
width={12}
|
||||||
|
height={22}
|
||||||
|
className="w-[12px] h-[22px]"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -102,10 +105,12 @@ export default function CaseImageSlider({
|
|||||||
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
||||||
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_right_arrow.png"
|
src="/images/landing/icon_right_arrow.png"
|
||||||
alt="다음"
|
alt="다음"
|
||||||
className="w-[12px] h-[22px]"
|
width={12}
|
||||||
|
height={22}
|
||||||
|
className="w-[12px] h-[22px]"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -129,10 +134,13 @@ export default function CaseImageSlider({
|
|||||||
>
|
>
|
||||||
{safeSlides.map((s, i) => (
|
{safeSlides.map((s, i) => (
|
||||||
<div key={`${s.src}-${i}`} className="min-w-full">
|
<div key={`${s.src}-${i}`} className="min-w-full">
|
||||||
<img
|
<Image
|
||||||
src={s.src}
|
src={s.src}
|
||||||
alt={s.alt ?? `slide-${i + 1}`}
|
alt={s.alt ?? `slide-${i + 1}`}
|
||||||
|
width={583}
|
||||||
|
height={400}
|
||||||
className="w-full h-full object-contain"
|
className="w-full h-full object-contain"
|
||||||
|
style={{ width: "100%", height: "100%" }}
|
||||||
draggable={false}
|
draggable={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import React, {
|
|||||||
useRef,
|
useRef,
|
||||||
useState,
|
useState,
|
||||||
} from "react";
|
} from "react";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CaseTabsCarousel.tsx (FINAL OPTIMIZED)
|
* CaseTabsCarousel.tsx (FINAL OPTIMIZED)
|
||||||
@@ -459,10 +460,12 @@ export default function CaseTabsCarousel() {
|
|||||||
].join(" ")}
|
].join(" ")}
|
||||||
aria-label="이전"
|
aria-label="이전"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_left_arrow.png"
|
src="/images/landing/icon_left_arrow.png"
|
||||||
alt="이전"
|
alt="이전"
|
||||||
className="w-6 h-6 object-contain"
|
width={24}
|
||||||
|
height={24}
|
||||||
|
className="w-6 h-6 object-contain"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -480,10 +483,12 @@ export default function CaseTabsCarousel() {
|
|||||||
].join(" ")}
|
].join(" ")}
|
||||||
aria-label="다음"
|
aria-label="다음"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_right_arrow.png"
|
src="/images/landing/icon_right_arrow.png"
|
||||||
alt="다음"
|
alt="다음"
|
||||||
className="w-6 h-6 object-contain"
|
width={24}
|
||||||
|
height={24}
|
||||||
|
className="w-6 h-6 object-contain"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -513,10 +518,13 @@ export default function CaseTabsCarousel() {
|
|||||||
className="overflow-hidden rounded-[22px] border-2 border-sky-400 bg-white"
|
className="overflow-hidden rounded-[22px] border-2 border-sky-400 bg-white"
|
||||||
>
|
>
|
||||||
<div className="h-[241px] w-full bg-slate-100 border-b border-b-blue-300">
|
<div className="h-[241px] w-full bg-slate-100 border-b border-b-blue-300">
|
||||||
<img
|
<Image
|
||||||
src={c.imageSrc}
|
src={c.imageSrc}
|
||||||
alt={c.title}
|
alt={c.title}
|
||||||
|
width={640}
|
||||||
|
height={241}
|
||||||
className="h-full w-full object-cover"
|
className="h-full w-full object-cover"
|
||||||
|
style={{ width: "100%", height: "100%" }}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// apps/dm/app/(landing)/reuse/_components/ImageSlider.tsx
|
// apps/dm/app/(landing)/reuse/_components/ImageSlider.tsx
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
import { useEffect, useMemo, useRef, useState } from "react";
|
import { useEffect, useMemo, useRef, useState } from "react";
|
||||||
|
|
||||||
type Slide = { src: string; alt?: string };
|
type Slide = { src: string; alt?: string };
|
||||||
@@ -86,10 +87,12 @@ export default function CaseImageSlider({
|
|||||||
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
||||||
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_left_arrow.png"
|
src="/images/landing/icon_left_arrow.png"
|
||||||
alt="이전"
|
alt="이전"
|
||||||
className="w-[12px] h-[22px]"
|
width={12}
|
||||||
|
height={22}
|
||||||
|
className="w-[12px] h-[22px]"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -102,10 +105,12 @@ export default function CaseImageSlider({
|
|||||||
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
w-[80px] h-[80px] rounded-full border border-black/20 bg-white
|
||||||
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
grid place-items-center shadow-sm hover:bg-black/[0.03]"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/icon_right_arrow.png"
|
src="/images/landing/icon_right_arrow.png"
|
||||||
alt="다음"
|
alt="다음"
|
||||||
className="w-[12px] h-[22px]"
|
width={12}
|
||||||
|
height={22}
|
||||||
|
className="w-[12px] h-[22px]"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -129,10 +134,13 @@ export default function CaseImageSlider({
|
|||||||
>
|
>
|
||||||
{safeSlides.map((s, i) => (
|
{safeSlides.map((s, i) => (
|
||||||
<div key={`${s.src}-${i}`} className="min-w-full">
|
<div key={`${s.src}-${i}`} className="min-w-full">
|
||||||
<img
|
<Image
|
||||||
src={s.src}
|
src={s.src}
|
||||||
alt={s.alt ?? `slide-${i + 1}`}
|
alt={s.alt ?? `slide-${i + 1}`}
|
||||||
|
width={583}
|
||||||
|
height={400}
|
||||||
className="w-full h-full object-contain"
|
className="w-full h-full object-contain"
|
||||||
|
style={{ width: "100%", height: "100%" }}
|
||||||
draggable={false}
|
draggable={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import { useEffect, useMemo, useState } from "react";
|
import { useEffect, useMemo, useState } from "react";
|
||||||
@@ -68,11 +69,21 @@ export default function Lnb() {
|
|||||||
}, [pathname, secondLevelMenus]);
|
}, [pathname, secondLevelMenus]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<aside className="w-[260px] min-w-[260px] shrink-0">
|
<aside
|
||||||
|
className={[
|
||||||
|
"fixed left-0 top-[83px]", // ✅ 화면 고정 + TopNav 아래로
|
||||||
|
"w-[260px] min-w-[260px] shrink-0",
|
||||||
|
"h-[calc(100vh-83px)]", // ✅ 남은 높이만큼
|
||||||
|
"overflow-y-auto", // ✅ LNB 내부 스크롤
|
||||||
|
"bg-white z-50", // ✅ 겹침 방지
|
||||||
|
].join(" ")}
|
||||||
|
>
|
||||||
|
{/* 타이틀 */}
|
||||||
<div className="flex h-[120px] items-center justify-center bg-gradient-to-r from-cyan-500 to-green-500 text-[40px] font-bold text-white">
|
<div className="flex h-[120px] items-center justify-center bg-gradient-to-r from-cyan-500 to-green-500 text-[40px] font-bold text-white">
|
||||||
{currentTopMenu?.menuKornNm?.trim().split(/\s+/).pop() ?? ""}
|
{currentTopMenu?.menuKornNm?.trim().split(/\s+/).pop() ?? ""}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* 메뉴 */}
|
||||||
<ul>
|
<ul>
|
||||||
{secondLevelMenus.map((item) => {
|
{secondLevelMenus.map((item) => {
|
||||||
const hasChildren = hasAnyChild(item);
|
const hasChildren = hasAnyChild(item);
|
||||||
@@ -120,9 +131,11 @@ export default function Lnb() {
|
|||||||
isOpen ? "rotate-180" : "rotate-0",
|
isOpen ? "rotate-180" : "rotate-0",
|
||||||
].join(" ")}
|
].join(" ")}
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/landing/drop_arrow.svg"
|
src="/images/landing/drop_arrow.svg"
|
||||||
alt="menu toggle icon"
|
alt="menu toggle icon"
|
||||||
|
width={28}
|
||||||
|
height={28}
|
||||||
className="h-7 w-7"
|
className="h-7 w-7"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
//8880
|
//8880
|
||||||
import { AUTH_USER_ID, CLAIM_NAME } from "@/src/shared/config";
|
import { AUTH_USER_ID, CLAIM_NAME } from "@/src/shared/config";
|
||||||
import { getCookie } from "@common/components/lib/cookie";
|
import { getCookie } from "@common/components/lib/cookie";
|
||||||
|
import { DEV_URL_FO, DEV_URL_WR, LOCAL_URL } from "../config/";
|
||||||
|
|
||||||
|
|
||||||
const tokenId = getCookie(AUTH_USER_ID);
|
const tokenId = getCookie(AUTH_USER_ID);
|
||||||
@@ -10,7 +11,9 @@ export const fetchType = {
|
|||||||
COMMON: "common",
|
COMMON: "common",
|
||||||
WR: "wr",
|
WR: "wr",
|
||||||
FO: "fo",
|
FO: "fo",
|
||||||
SN: "sn"
|
SN: "sn",
|
||||||
|
LOCAL: "LOCAL",
|
||||||
|
CS: "CS",
|
||||||
};
|
};
|
||||||
|
|
||||||
const API_VERSION = "/api/v1"
|
const API_VERSION = "/api/v1"
|
||||||
@@ -44,6 +47,55 @@ export const getFetch = async (type: string, url: string) => {
|
|||||||
return res;
|
return res;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const getFetchWithCount = async (type: string, url: string) => {
|
||||||
|
const div =
|
||||||
|
type === fetchType.COMMON
|
||||||
|
? DEV_URL_FO
|
||||||
|
: type === fetchType.LOCAL
|
||||||
|
? LOCAL_URL
|
||||||
|
: type === fetchType.CS
|
||||||
|
? ""
|
||||||
|
: DEV_URL_WR;
|
||||||
|
const apiUrl = div + url;
|
||||||
|
|
||||||
|
const response = await fetch(apiUrl, {
|
||||||
|
method: "GET",
|
||||||
|
headers: {
|
||||||
|
accept: "application/json",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
console.log(`오류 발생: ${response.status}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const contentType = response.headers.get("content-type") ?? "";
|
||||||
|
|
||||||
|
if (contentType.includes("application/json")) {
|
||||||
|
// JSON 응답 처리
|
||||||
|
const res = await response.json();
|
||||||
|
|
||||||
|
return res;
|
||||||
|
} else if(contentType.includes('application/octet-stream')) {
|
||||||
|
// 파일 응답 처리 (ex. PDF, Excel 등)
|
||||||
|
|
||||||
|
console.log('contentType ' ,contentType)
|
||||||
|
const blob = await response.blob();
|
||||||
|
const blobUrl = window.URL.createObjectURL(blob);
|
||||||
|
const a = document.createElement("a");
|
||||||
|
const filename = "downloaded_file.PDF";
|
||||||
|
|
||||||
|
a.href = blobUrl;
|
||||||
|
a.download = filename;
|
||||||
|
a.click();
|
||||||
|
window.URL.revokeObjectURL(blobUrl);
|
||||||
|
|
||||||
|
return null; // 다운로드이므로 반환값 없음
|
||||||
|
}else{
|
||||||
|
throw Error('오류 발생')
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
export const postFetch = async (url: string, params: RequestParams) => {
|
export const postFetch = async (url: string, params: RequestParams) => {
|
||||||
const baseUrl = servers[fetchType.WR];
|
const baseUrl = servers[fetchType.WR];
|
||||||
const response = await fetch(baseUrl + url, {
|
const response = await fetch(baseUrl + url, {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { PROXY_HOST } from "@/src/shared/config/env";
|
import { PROXY_HOST } from "@/src/shared/config/env";
|
||||||
|
|
||||||
export const LOCAL_URL = PROXY_HOST;
|
export const LOCAL_URL = PROXY_HOST;
|
||||||
export const DEV_URL_FO = "/operation-service";
|
export const DEV_URL_FO = "/operation-service/api/v1";
|
||||||
export const DEV_URL_WR = "/reuse-service";
|
export const DEV_URL_WR = "/reuse-service/api/v1";
|
||||||
export const DEV_URL_SN = "/sewerage-service";
|
export const DEV_URL_SN = "/sewerage-service/api/v1";
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ export default function SearchInputText({
|
|||||||
value={textValue || ""}
|
value={textValue || ""}
|
||||||
onChange={handleInputChange}
|
onChange={handleInputChange}
|
||||||
onKeyDown={handleKeyDown}
|
onKeyDown={handleKeyDown}
|
||||||
className="w-full h-[3.2rem] !text-xl pl-3 text-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
|
className="w-full h-8 text-xs pl-2 pr-2 text-gray-600 border border-gray-300 rounded focus:outline-none focus:ring-1 focus:ring-blue-500"
|
||||||
placeholder={`${label}을(를) 입력하세요`}
|
placeholder={`${label}을(를) 입력하세요`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setTextValue("");
|
setTextValue("");
|
||||||
@@ -109,10 +109,10 @@ export default function SearchInputText({
|
|||||||
searchList.map((item, index) => (
|
searchList.map((item, index) => (
|
||||||
<div
|
<div
|
||||||
key={index}
|
key={index}
|
||||||
className={`w-full cursor-pointer overflow-auto px-5 py-3 text-left !text-xl ${
|
className={`w-full cursor-pointer px-3 py-2 text-left text-xs ${
|
||||||
highlightIndex === index
|
highlightIndex === index
|
||||||
? "bg-blue-100"
|
? "bg-blue-50"
|
||||||
: "hover:bg-gray-100"
|
: "hover:bg-gray-50"
|
||||||
}`}
|
}`}
|
||||||
onClick={() => handleSuggestionClick(item.bscFctNm)}
|
onClick={() => handleSuggestionClick(item.bscFctNm)}
|
||||||
role="button"
|
role="button"
|
||||||
@@ -127,7 +127,7 @@ export default function SearchInputText({
|
|||||||
</div>
|
</div>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<div className="!text-xl w-full px-5 py-3 hover:bg-gray-100 cursor-pointer overflow-auto">
|
<div className="text-xs w-full px-3 py-2 hover:bg-gray-50 cursor-pointer text-gray-500">
|
||||||
검색 결과가 없습니다.
|
검색 결과가 없습니다.
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -62,50 +62,51 @@ export function SearchBar({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex justify-center w-full px-4 py-3">
|
<div className="flex justify-center w-full px-4 py-2">
|
||||||
<div className="flex items-center w-full max-w-screen-lg rounded-xl bg-white shadow-md px-6 py-4 space-x-3">
|
<div className="flex items-center w-auto shadow-md px-4 py-2 space-x-2 bg-white/95 backdrop-blur-sm rounded-lg text-sm border border-gray-200">
|
||||||
<SelectBox
|
<SelectBox
|
||||||
labelClass="w-[40px]"
|
labelClass="w-[50px] text-xs font-medium text-gray-700"
|
||||||
className="w-[200px]"
|
className="w-[110px]"
|
||||||
label="시도"
|
label="시도"
|
||||||
selectClass="rounded-lg bg-white"
|
selectClass="rounded bg-white text-xs h-8"
|
||||||
selectArray={Common.selectSidoData || []}
|
selectArray={Common.selectSidoData || []}
|
||||||
onSelectValue={(val) => onSelectValue(val.toString(), "ctpvCd")}
|
onSelectValue={(val) => onSelectValue(val.toString(), "ctpvCd")}
|
||||||
value={sidoValue || Common.selectSidoData[0]?.val || ""}
|
value={sidoValue || Common.selectSidoData[0]?.val || ""}
|
||||||
/>
|
/>
|
||||||
<SelectBox
|
<SelectBox
|
||||||
labelClass="w-[65px]"
|
labelClass="w-[70px] text-xs font-medium text-gray-700"
|
||||||
className="w-[200px]"
|
className="w-[110px]"
|
||||||
label="시군구"
|
label="시군구"
|
||||||
selectClass="rounded-lg bg-white"
|
selectClass="rounded bg-white text-xs h-8"
|
||||||
selectArray={filteredSigunData || []}
|
selectArray={filteredSigunData || []}
|
||||||
onSelectValue={(val) => onSelectValue(val.toString(), "sggCd")}
|
onSelectValue={(val) => onSelectValue(val.toString(), "sggCd")}
|
||||||
value={sigunValue}
|
value={sigunValue}
|
||||||
/>
|
/>
|
||||||
<Label className="text-gray-600">하수재이용시설</Label>
|
<Label className="text-gray-700 text-xs font-medium pl-2 pr-1">하수재이용시설</Label>
|
||||||
<SearchInputText
|
<div className="w-[180px]">
|
||||||
label="시설명"
|
<SearchInputText
|
||||||
initValue={undefined}
|
label="시설명 입력"
|
||||||
setValue={(searchNm?: string) => {
|
initValue={undefined}
|
||||||
let sggOrCity = "";
|
setValue={(searchNm?: string) => {
|
||||||
if (searchNm) {
|
let sggOrCity = "";
|
||||||
if (sigunValue === "0" || sigunValue === "") {
|
if (searchNm) {
|
||||||
sggOrCity = sidoValue;
|
if (sigunValue === "0" || sigunValue === "") {
|
||||||
} else {
|
sggOrCity = sidoValue;
|
||||||
sggOrCity = sigunValue;
|
} else {
|
||||||
|
sggOrCity = sigunValue;
|
||||||
|
}
|
||||||
|
findRuseFclt(sggOrCity, searchNm);
|
||||||
}
|
}
|
||||||
findRuseFclt(sggOrCity, searchNm);
|
}}
|
||||||
}
|
setRtnData={(rtnData: any) => {
|
||||||
}}
|
setHasuPk(rtnData);
|
||||||
setRtnData={(rtnData: any) => {
|
}}
|
||||||
setHasuPk(rtnData);
|
searchList={map.ruseFcltList || []}
|
||||||
}}
|
/>
|
||||||
searchList={map.ruseFcltList || []}
|
</div>
|
||||||
/>
|
|
||||||
<Button
|
<Button
|
||||||
color="sky"
|
color="sky"
|
||||||
className="ml-2 text-white"
|
className="ml-2 text-white !h-8 !py-0 !px-3 !text-xs font-semibold rounded"
|
||||||
size="sm"
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
onApply();
|
onApply();
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const eslintConfig = [
|
|||||||
{rules:{
|
{rules:{
|
||||||
// other rules..
|
// other rules..
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
"@next/next/no-img-element": "off",
|
// "@next/next/no-img-element": "off",
|
||||||
...(isProd ? { "react-hooks/exhaustive-deps": "off" } : {}),
|
...(isProd ? { "react-hooks/exhaustive-deps": "off" } : {}),
|
||||||
}},
|
}},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ const serverApiUrl = process.env.NEXT_PUBLIC_CS_SERVER_API_URL;
|
|||||||
const GEOSERVER_URL = process.env.NEXT_PUBLIC_GEOSERVER_URL || "";
|
const GEOSERVER_URL = process.env.NEXT_PUBLIC_GEOSERVER_URL || "";
|
||||||
const LX_GEOSERVER_URL = process.env.NEXT_PUBLIC_LX_GEOSERVER_URL || "";
|
const LX_GEOSERVER_URL = process.env.NEXT_PUBLIC_LX_GEOSERVER_URL || "";
|
||||||
const GATEWAY_URL = process.env.NEXT_PUBLIC_GATEWAY_URL || "";
|
const GATEWAY_URL = process.env.NEXT_PUBLIC_GATEWAY_URL || "";
|
||||||
|
const SEWERAGE_API_URL = process.env.NEXT_PUBLIC_SEWERAGE_API_URL || "";
|
||||||
const BUSINESS_JUSO_API_URL = process.env.NEXT_PUBLIC_FINDADRESS_URL || "";
|
const BUSINESS_JUSO_API_URL = process.env.NEXT_PUBLIC_FINDADRESS_URL || "";
|
||||||
const AdressKey = process.env.NEXT_PRIVATE_WR_ADDRESS_KEY || "";
|
const AdressKey = process.env.NEXT_PRIVATE_WR_ADDRESS_KEY || "";
|
||||||
|
|
||||||
@@ -28,15 +29,6 @@ export function middleware(req: NextRequest) {
|
|||||||
console.log(`[Middleware] Request URL: ${req.url}`);
|
console.log(`[Middleware] Request URL: ${req.url}`);
|
||||||
const searchParams = req.nextUrl.searchParams;
|
const searchParams = req.nextUrl.searchParams;
|
||||||
|
|
||||||
// if (pathname.startsWith("/server")) {
|
|
||||||
// const queryParams = searchParams.toString();
|
|
||||||
// const newUrl = `${serverApiUrl}${pathname.replace("/server", "")}${
|
|
||||||
// queryParams ? `?${queryParams}` : ""
|
|
||||||
// }`;
|
|
||||||
// console.log(`[Middleware] Rewriting from '/server' path to: ${newUrl}`);
|
|
||||||
// return NextResponse.rewrite(new URL(newUrl));
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (pathname.startsWith("/server")) {
|
if (pathname.startsWith("/server")) {
|
||||||
const decodedParams = Array.from(searchParams.entries())
|
const decodedParams = Array.from(searchParams.entries())
|
||||||
.map(([key, value]) => `${key}=${decodeURIComponent(value)}`)
|
.map(([key, value]) => `${key}=${decodeURIComponent(value)}`)
|
||||||
@@ -81,6 +73,8 @@ export function middleware(req: NextRequest) {
|
|||||||
if (pathname.startsWith("/geoserver")) {
|
if (pathname.startsWith("/geoserver")) {
|
||||||
let queryParams = searchParams.toString();
|
let queryParams = searchParams.toString();
|
||||||
const typename = searchParams.get("TYPENAME");
|
const typename = searchParams.get("TYPENAME");
|
||||||
|
const startYmd = searchParams.get("START_YMD") ?? null;
|
||||||
|
const endYmd = searchParams.get("END_YMD") ?? null;
|
||||||
console.log("typename ", typename);
|
console.log("typename ", typename);
|
||||||
|
|
||||||
let newUrl = `${GEOSERVER_URL}${pathname.replace("/geoserver", "")}${queryParams ? `?${queryParams}` : ""}`;
|
let newUrl = `${GEOSERVER_URL}${pathname.replace("/geoserver", "")}${queryParams ? `?${queryParams}` : ""}`;
|
||||||
@@ -111,8 +105,10 @@ export function middleware(req: NextRequest) {
|
|||||||
) {
|
) {
|
||||||
const url = req.nextUrl.clone();
|
const url = req.nextUrl.clone();
|
||||||
url.searchParams.set("TYPENAME", typename.replace("hasudo:", ""));
|
url.searchParams.set("TYPENAME", typename.replace("hasudo:", ""));
|
||||||
|
if (startYmd) url.searchParams.set("startYmd", startYmd);
|
||||||
|
if (endYmd) url.searchParams.set("endYmd", endYmd);
|
||||||
queryParams = url.searchParams.toString();
|
queryParams = url.searchParams.toString();
|
||||||
newUrl = `${GATEWAY_URL}/api/v1/map/geometry${queryParams ? `?${queryParams}` : ""}`;
|
newUrl = `${GATEWAY_URL}/sewerage-service/api/v1/map/geometry${queryParams ? `?${queryParams}` : ""}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`[Middleware] Rewriting from '/geoserver' path to: ${newUrl}`);
|
console.log(`[Middleware] Rewriting from '/geoserver' path to: ${newUrl}`);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev -p 3015",
|
"dev": "next dev -p 3015",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start:dm": "next start -p 3015",
|
"start:dm_new": "next start -p 3015",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
"@eslint/eslintrc": "^3",
|
"@eslint/eslintrc": "^3",
|
||||||
"@types/webpack": "^5.28.5",
|
"@types/webpack": "^5.28.5",
|
||||||
"eslint": "^9",
|
"eslint": "^9",
|
||||||
"eslint-config-next": "15.1.7",
|
"eslint-config-next": "15.3.8",
|
||||||
"postcss": "^8",
|
"postcss": "^8",
|
||||||
"tailwindcss": "^3.4.1",
|
"tailwindcss": "^3.4.1",
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
}
|
}
|
||||||
|
|||||||
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 919 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 961 B |
|
After Width: | Height: | Size: 810 B |
|
After Width: | Height: | Size: 970 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 896 B |
|
After Width: | Height: | Size: 837 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 790 B |
|
After Width: | Height: | Size: 855 B |
|
After Width: | Height: | Size: 1.1 KiB |