diff --git a/src/App.tsx b/src/App.tsx
index 28c2406..64c3359 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,5 +1,5 @@
import './App.css'
-import { CommentItem, CommentListContainer, CommentPagination, SubCommentData } from './Comment';
+import { CommentInput, CommentItem, CommentListContainer, CommentPagination, SubCommentData } from './Comment';
import CommentHeader from './CommentHeader';
import { Footer } from './Footer';
import { GalleryContent } from './Gallery';
@@ -163,6 +163,7 @@ const comments: SubCommentData[] = [
function App() {
return (
+
@@ -198,6 +199,7 @@ function App() {
}} />
+
@@ -205,6 +207,7 @@ function App() {
+
)
diff --git a/src/Comment.tsx b/src/Comment.tsx
index 511c9ad..c9a17b8 100644
--- a/src/Comment.tsx
+++ b/src/Comment.tsx
@@ -1,6 +1,7 @@
import { Separator } from "./Separator";
import { AuthorData } from "./table";
import { cn } from "./util/cn";
+import React, { useState } from 'react';
interface CommentDataBase {
id: number;
@@ -261,4 +262,209 @@ export const CommentPagination: React.FC = ({
);
-};
\ No newline at end of file
+};
+
+export function CommentInput() {
+ const [isNicknameTooltipVisible, setIsNicknameTooltipVisible] = useState(true); // Show initially based on HTML
+ const [isDcConInfoVisible, setIsDcConInfoVisible] = useState(false); // Hidden initially
+
+ // TODO: Implement state for input values
+ // const [nickname, setNickname] = useState('');
+ // const [password, setPassword] = useState('');
+ // const [comment, setComment] = useState('');
+
+ const toggleDcConInfo = () => setIsDcConInfoVisible(!isDcConInfoVisible);
+ const hideNicknameTooltip = () => setIsNicknameTooltipVisible(false);
+
+ return (
+
+ {/* Use flexbox for layout instead of floats */}
+
+
+ {/* Left Column: Nickname/Password */}
+
+ {/* Nickname Input */}
+
+
+
+ {/* Nickname Tooltip */}
+ {isNicknameTooltipVisible && (
+
+
+
+ ㅇㅇ는 갤러리에서 권장하는 비회원 전용
+ 갤닉네임입니다. (삭제 시 닉네임 등록 가능)
+
+
+
+
+
+ )}
+
+ {/* Actual Input */}
+
setNickname(e.target.value)}
+ className="align-top text-xs font-apple w-[126px] h-[28px] leading-tight-29 py-[1px] px-[7px] text-custom-blue-dark border-none outline-none"
+ placeholder="닉네임" // Use placeholder attribute
+ />
+ {/* Delete Button (Implement functionality if needed) */}
+
+
+ {/* Hidden 'Use Gallery Nickname' Button */}
+
+
+
+ {/* Password Input */}
+
+
+ setPassword(e.target.value)}
+ className="align-top text-xs font-apple w-[126px] h-[28px] leading-tight-29 py-[1px] px-[7px] border-none outline-none"
+ placeholder="비밀번호" // Use placeholder attribute
+ />
+
+
+
+ {/* Right Column: Textarea and Buttons */}
+ {/* Calculate width: 100% - left column width - gap. Or use flex-grow */}
+
{/* Adjust margin as needed */}
+ {/* Textarea */}
+
+
+
+
+ {/* Buttons Row */}
+
+ {/* Left Buttons (DCCon) */}
+
+
+
+
+ {/* DCCon/NFT Info Popup */}
+ {isDcConInfoVisible && (
+
{/* Positioned above button */}
+
+
+
NFT 이벤트
+
+ {/* Placeholder for Image */}
+
(Image Placeholder)
+
+
+
+
획득법
+
+
① NFT 발행
+
작성한 게시물을 NFT로 발행하면 일주일 동안 사용할 수 있습니다. (최초 1회)
+
+
꿀팁!
+
발행 후 NFT를 구매할 수 있는 클레이를 받을 수 있어요.받으러 가기
+
+
+
+
② NFT 구매
+
다른 이용자의 NFT를 구매하면 한 달 동안 사용할 수 있습니다. (구매 시마다 갱신)
+
+
꿀팁!
+
구매 후 클레이를 한 번 더 받을 수 있어요.받으러 가기
+
+
+
+
+
사용법
+
디시콘에서
+ 지갑연결
+ 시 바로 사용 가능합니다.
+
+
+
+
+
+ )}
+
+
+ {/* Right Buttons (Register) */}
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/index.css b/src/index.css
index 36b3cb8..9375590 100644
--- a/src/index.css
+++ b/src/index.css
@@ -3,13 +3,20 @@
/* --- Extend Tailwind Theme using @theme --- */
@theme {
+
--color-custom-blue-dark: rgb(41 54 124);
+ --color-custom-blue-hover: rgb(59 72 144);
+ --color-custom-blue-register-hover: rgb(98 109 166);
--color-custom-gray-dark: rgb(51 51 51);
--color-custom-gray-medium: rgb(153 153 153);
--color-custom-gray-light: rgb(238 238 238);
+ --color-custom-gray-very-light: rgb(250 250 250);
--color-custom-green: rgb(0 153 51);
+ --color-custom-green-light: rgb(152 202 51);
--color-custom-red-text: rgb(211 25 0);
--color-custom-border-gray: rgb(204 204 204);
+ --color-custom-border-input: rgb(206 205 206);
+ --color-custom-dropdown-title-bg: rgb(243 247 255);
--color-custom-dropdown-bg: rgb(243 243 243);
--color-custom-dropdown-text: rgb(85 85 85);