From a542c2a83a70b88968414c02db100a118fc95bd5 Mon Sep 17 00:00:00 2001 From: Yunseong Choe <68419358+marunemo@users.noreply.github.com> Date: Sat, 22 Oct 2022 13:59:54 +0000 Subject: [PATCH] [Design]Style orgainzational card and form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 조직도 세부 내용 및 form 디자인 수정 #60 --- .../web-next/componenets/OrganizationCard.js | 10 +++++- .../web-next/componenets/OrganizationForm.js | 32 +++++++++++++------ .../styles/OrganizationCard.module.css | 17 ++++------ .../styles/OrganizationForm.module.css | 28 ++++++++++++++-- front-end/web-next/styles/globals.css | 6 ++++ 5 files changed, 70 insertions(+), 23 deletions(-) diff --git a/front-end/web-next/componenets/OrganizationCard.js b/front-end/web-next/componenets/OrganizationCard.js index a7c541e5..f00e93d1 100644 --- a/front-end/web-next/componenets/OrganizationCard.js +++ b/front-end/web-next/componenets/OrganizationCard.js @@ -19,6 +19,7 @@ function OrganizationCard(props) { return ( <> + +
{props.data.Name} {props.data.Rank}
-
{props.data.DoDID}
+ diff --git a/front-end/web-next/componenets/OrganizationForm.js b/front-end/web-next/componenets/OrganizationForm.js index a037c297..aee964bb 100644 --- a/front-end/web-next/componenets/OrganizationForm.js +++ b/front-end/web-next/componenets/OrganizationForm.js @@ -1,5 +1,5 @@ import { useState, useCallback, useEffect } from 'react'; -import { Modal, Image, Row, Col, Select } from 'antd'; +import { Modal, Image, Row, Col, Input, Select } from 'antd'; import Styles from '../styles/OrganizationForm.module.css'; function InfoElement(props) { @@ -14,8 +14,8 @@ function InfoElement(props) { function InputElement(props) { return (
-
{props.label}
- +
{props.label}
+
) } @@ -23,7 +23,7 @@ function InputElement(props) { function ParentSelectElement(props) { return (
-
{props.label}
+
{props.label}
serializedEdit('Name', event.target.value)} /> + + serializedEdit('Name', event.target.value)} + /> serializedEdit('DoDID', event.target.value)} /> + + + serializedEdit('DoDID', event.target.value)} /> + @@ -116,7 +130,7 @@ function OrganizationForm(props) { serializedEdit('MilNumber', event.target.value)} /> - + .ant-modal-content, +.organizationForm > .ant-modal-content { + border-radius: 30px; + padding: 5px; } \ No newline at end of file