diff --git a/src/app/admin/(block)/image/components/image-box.tsx b/src/app/admin/(block)/image/components/image-box.tsx index 0ffac6b5..066561f7 100644 --- a/src/app/admin/(block)/image/components/image-box.tsx +++ b/src/app/admin/(block)/image/components/image-box.tsx @@ -5,7 +5,6 @@ import Link from "next/link"; import ErrorBoundary from "@components/error-boundary"; interface Props { - // handeInputImageClick: () => void; selectedImageUrl: string; connectingUrl?: string; title: string | null; @@ -13,25 +12,14 @@ interface Props { const ImageBox = ({ selectedImageUrl, connectingUrl, title }: Props) => { return ( -
+
- {/**/} - {/* */} - {/**/} -
+
{ } alt={title ? `${title} 이미지` : "기본 이미지"} fill + className="object-cover" + sizes="(max-width: 640px) 100vw, + (max-width: 768px) 90vw, + 80vw" />
{title && (
{title} diff --git a/src/app/admin/(block)/image/page.tsx b/src/app/admin/(block)/image/page.tsx index 2ec12335..6c9dfd4b 100644 --- a/src/app/admin/(block)/image/page.tsx +++ b/src/app/admin/(block)/image/page.tsx @@ -36,75 +36,12 @@ const Page = () => { } else await blockApis.handleResponseError(response); }; - // const addImageBlock = async () => { - // const token = sessionStorage.getItem("token"); - // if (!token) { - // router.push("/login"); - // return; - // } - // const nowSequence = await getSequence(token); - // - // try { - // const response = await fetch( - // `${process.env.NEXT_PUBLIC_API_URL}/api/link/add`, - // { - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: `Bearer ${token}`, - // }, - // body: JSON.stringify(params), - // }, - // ); - // if (response.ok) { - // alert("이미지 블록 추가 완료"); - // router.push("/admin"); - // } else { - // const { status } = response; - // console.log(status); - // if (status === 500) { - // alert("서버 에러"); - // } - // } - // } catch (error) { - // console.log(error); - // } - // }; - const handleAddButtonClick = (e: FormEvent) => { e.preventDefault(); if (!selectedImageUrl) return; addImageBlock(); }; - // const handeInputImageClick = () => { - // inputImageRef.current?.click(); - // }; - - // const selectFile = (e: React.ChangeEvent) => { - // const file = e.target.files?.[0]; - // if (!file) { - // return; - // } - // const reader = new FileReader(); - // reader.onload = (e) => { - // const dataUrl = e.target?.result; - // if (typeof dataUrl !== "string") { - // return; - // } - // setPreviewImageUrl(dataUrl); - // }; - // reader.readAsDataURL(file); - // }; - - // const handleAddButtonClick = () => { - // if (!checkImageUrl(imageUrl)) { - // alert("이미지 URL을 확인해주세요."); - // return; - // } - // setSelectedImageUrl(imageUrl || previewImageUrl); - // }; - const setImageText = (text: string) => { if (!checkUrl(text) && text !== "") { alert("URL을 입력해주세요."); @@ -129,14 +66,6 @@ const Page = () => { required aria-label="이미지 URL을 입력하세요" /> - {/**/} -
- arrow_down +
+ 표시할 블록이 없음을 나타내는 아이콘 +

지금 공개된 링크가 없습니다

- 소식받기 버튼을 눌러주세요 + + 소식받기 + {" "} + 버튼을 눌러주세요

새로운 링크가 생기면 알려드리겠습니다

- +
); } diff --git a/src/styles/global.css b/src/styles/global.css index 1545a325..9d864790 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -49,18 +49,17 @@ [data-theme="dark"] { --background: #121212; --foreground: #f5f5f5; - /* Primary Colors - 다크 모드 수정 */ - --primary: #ff6b31; /* 다크모드에서 더 선명하게 */ - --primary-100: #1a0c04; /* 더 어둡게 조정 */ - --primary-200: #331808; /* 더 어둡게 조정 */ - --primary-250: #662410; /* 조정 */ - --primary-300: #993618; /* 조정 */ - --primary-350: #cc4820; /* 조정 */ - --primary-400: #ff5b1a; /* 유지 */ - --primary-450: #ff6b31; /* 유지 */ - /* Input Colors - 다크 모드 수정 */ - --input-color-line: #993618; /* 더 밝게 조정 */ - --input-color-bg: #1a0c04; /* 더 어둡게 조정 */ + /* Primary Colors - 다크 모드 */ + --primary: #ff6b31; + --primary-100: #1a0c04; + --primary-200: #331808; + --primary-250: #662410; + --primary-300: #993618; + --primary-350: #cc4820; + --primary-400: #ff5b1a; + --primary-450: #ff6b31; + --input-color-line: #993618; + --input-color-bg: #1a0c04; } /* 시스템 설정에 맞춘 다크 모드 테마 적용 */