From a81c73245d50205f69310e927c2bfe2474b98e62 Mon Sep 17 00:00:00 2001 From: hyun-woo-jae <84082016+hyun-woo-jae@users.noreply.github.com> Date: Wed, 10 Apr 2024 22:03:54 +0900 Subject: [PATCH] Add files via upload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit posting page editor 수정 --- Postingpage.js | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Postingpage.js diff --git a/Postingpage.js b/Postingpage.js new file mode 100644 index 0000000..b590224 --- /dev/null +++ b/Postingpage.js @@ -0,0 +1,63 @@ +import React, { useState } from "react"; +import { CssBaseline, Container, Button, TextField } from "@mui/material"; + +export default function PostingBubble() { + const [postTitle, setPostTitle] = useState(""); + const [contents, setContents] = useState(""); + + const handleTitleChange = (e) => { + setPostTitle(e.target.value); + }; + + const handleContentChange = (e) => { + setContents(e.target.value); + }; + + const handleSubmit = () => { + // 제출 로직을 구현하시면 됩니다. 예를 들어, 콘솔에 제목과 내용을 출력하는 방식으로 구현합니다. + console.log("제목:", postTitle); + console.log("내용:", contents); + + // 실제 서버로 데이터를 전송하거나 다른 작업을 수행할 수 있습니다. + }; + + return ( + + + + + + + + + ); +}