최정임 최정임 2023-02-21
230221 최정임 css 디자인 수정
@11f8e5dc699a67bd87f848ac77be89a7a4e37d71
client/resources/css/common.css
--- client/resources/css/common.css
+++ client/resources/css/common.css
@@ -1,3 +1,4 @@
+
 /* layout 공통 */
 /* grid */
 
client/resources/css/layout.css
--- client/resources/css/layout.css
+++ client/resources/css/layout.css
@@ -13,16 +13,17 @@
   grid-template-areas:
     "nav header"
     "nav  main";
-  grid-template-columns: 250px 1fr;
+  grid-template-columns: 315px 1fr;
   grid-template-rows: 0.1fr 2.9fr;
 }
 #layout.expander{
   grid-template-columns: 50px 1fr;
 }
 header {
-  padding: 1rem;
+  padding: 1rem 3rem;
   background-color: white;
   grid-area: header;
+  height: 87px;
 }
 
 .page-title span {
@@ -33,56 +34,59 @@
 
 nav{
   height: 100%;
-  background-color: #242d2e;
+  background-color: #f2f0eb;
   grid-area: nav;
 }
-
+.nav{
+  position: relative;
+  box-shadow: 1px 1px 5px 1px rgb(0 0 0 / 20%);}
+.nav > div > ul{margin-top: 7rem;}
 .logo {
   padding: 2rem 1rem;
   font-size: large;
   text-align: center;
-  color: #ffffff;
+  background: #ffffff;
   font-weight: bold;
 }
+.logo img{width: 273px;}
 /* 네비게이션 */
 
-.sidebar-item {
-  margin: 1rem 0;
-}
 
 .sidebar-item>a {
   font-size: 1.6rem;
   color: #ffffff;
   margin: 0 3rem;
-
+  
 }
 
 /* mui icon */
 .MuiSvgIcon-root {
   display: block;
 }
-
 .sidebar-title {
-  margin: 0 3rem;
+  margin: 0 auto;
+  width: 150px;
 }
 
 .sidebar-title span {
-  font-size: 1.6rem;
-  color: #e6e5e5;
+  font-size: 2rem;
+  font-weight: bold;
+  color: #333333;
+  
 }
 
 .sidebar-title .toggle {
   transition: transform .3s;
 }
-
 .sidebar-item.open .toggle {
   transform: rotate(180deg);
-
+  
 }
 nav li{cursor: pointer;}
-nav .sidebar-item{padding: 1rem 0 0 0;}
+nav .sidebar-item{padding: 1.4rem 0 ;}
+.sidebar-item:hover{background: #f25430;}
+.sidebar-item:hover span, .sidebar-item:hover .toggle{color: #ffffff;}
 .sidebar-content{background: #7D9D9C;}
-.sidebar-content .sidebar-item{padding: 1rem 0;}
 .sidebar-content .sidebar-item:hover{
   background: #d1e4e3;
 }
@@ -106,30 +110,26 @@
 .sidebar-content .sidebar-item:hover a {
   font-weight: bold;
 }
-
-.info-wrap{
-  border-top: 1px solid #4b4b4b;
-}
-
-.bottom-section {
-  padding: 3rem 2rem;
-}
-
-.info-id {
+.info-wrap .usericon{width: 5rem; height: 5rem; border: 1px solid #f25430; border-radius: 50px; margin-right: 2rem;}
+.header-info-id{font-size: 1.6rem; margin-right: 2rem; color: #733c1d; font-weight: 600;}
+.header-info-id::after{content: "님"; font-size: 1.6rem;}
+.info-id, .logout {
+  width: 123px;
+  height: 40px;
+  background: #f25430;
+  border-radius: 30px;
   font-size: 1.5rem;
   color: #ffffff;
+  display: flex;
+  align-items: center;
+  margin-right: 2rem;
 }
-.logout{
-  text-decoration: underline;
-  font-size: 1.5rem;
-  color: #ffffff;
-}
-
+.logout{background: #f26e50;}
 #pages {
   max-width: 100%;
   height: 100%;
-  padding: 2rem;
-  background-color: #e6e5e5;
+  padding: 3rem;
+  background-color: #f2f0eb;
   grid-area: main;
 }
 
@@ -142,15 +142,18 @@
 .content-wrap {
   max-width: 100%;
   height: 100%;
-  padding: 2em;
+  padding: 4rem 5rem;
   background-color: #ffffff;
 }
 
 /* hierarchy menu */
 .hierarchy-menu {
-  background-color: #f8f8f8;
-  color: #333333;
+  box-shadow: 1px 1px 5px 1px rgb(0 0 0 / 20%);
+  color: #733c1d;
   overflow-y: auto;
+  max-height: 57rem;
+  width: 46rem;
+  border-radius: 30px;
 }
 .hierarchy-menu a { 
   color: #333333;
client/resources/css/main.css
--- client/resources/css/main.css
+++ client/resources/css/main.css
@@ -1,18 +1,13 @@
 /* 공통 */
 .logo {
   font-size: 2.4rem;
-  font-family: "KoPubDotumBold_0";
+  font-family: 'AuctionGothic_Medium';
 }
-
+header > div{height: 100%;}
 header .page-title span {
-  font-family: "KoPubDotumBold_0";
-  font-size: 2.2rem;
+  font-size: 1.7rem;
+  margin: 0 auto;
 }
-
-.page-title svg {
-  display: none;
-}
-
 .join-btn{
   background-color: transparent;
 }
@@ -54,11 +49,6 @@
   margin: 0 1rem 0 3rem;
 }
 /* hierarchy menu */
-.hierarchy-menu {
-  background-color: #f8f8f8;
-  color: #333333;
-  overflow-y: auto;
-}
 .hierarchy-menu a { 
   color: #333333;
   text-decoration: none;
client/resources/css/reset.css
--- client/resources/css/reset.css
+++ client/resources/css/reset.css
@@ -1,7 +1,11 @@
+
+
+
 * {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
+  font-family:"AuctionGothic_Medium";
 }
 
 html {
@@ -37,6 +41,7 @@
   width: 100%;
   border-collapse: collapse;
   border: 1px solid #e4dccf;
+  font-family:"AuctionGothic_Medium";
 }
 th{
   padding: 0.5rem;
@@ -102,9 +107,4 @@
 textarea{
   width: 100%;
   height: 150px;
-}
-
-@font-face{
-  font-family: "KoPubDotumBold_0" ;
-  src: url(/client/resources/files/font/KoPubDotumBold_0.ttf);
 }
(No newline at end of file)
 
client/resources/files/images/logo.png (Binary) (added)
+++ client/resources/files/images/logo.png
Binary file is not shown
client/views/component/ContentTitle.jsx
--- client/views/component/ContentTitle.jsx
+++ client/views/component/ContentTitle.jsx
@@ -1,19 +1,21 @@
 import React from 'react'
 import styled from 'styled-components'
 
-export default function ContentTitle({contentTitle}) {
+export default function ContentTitle({contentTitle, explanation}) {
   return (
-    <ContentTitleStyled>{contentTitle}</ContentTitleStyled>
+    <div className='flex-start'>
+      <ContentTitleStyled>{contentTitle}</ContentTitleStyled>
+      <Explanation>{explanation}</Explanation>
+    </div>
   )
 }
 
 const ContentTitleStyled = styled.p`
-  position: relative;
-  width: 100%;
-  font-size: 1.6rem;
+  font-size: 4rem;
   font-weight: bold;
-  margin-bottom: 4rem;
-  &::after {
+  margin: 0 3rem 2rem 0;
+  color: #733c1d;
+  /* &::after {
     content: "";
     position: absolute;
     left: 0;
@@ -33,6 +35,11 @@
     width: 1rem;
     margin-right: 1rem;
     background-color: #7D9D9C;
-  }
+  } */
   
-`
(No newline at end of file)
+`
+
+const Explanation = styled.p`
+  font-size: 2.6rem;
+  color: #733c1d;
+`;
(No newline at end of file)
client/views/component/SubTitle.jsx
--- client/views/component/SubTitle.jsx
+++ client/views/component/SubTitle.jsx
@@ -11,14 +11,19 @@
 }
 
 const TitleStyle = styled.h4`
-  font-size: 1.6rem;
+  font-size: 2.5rem;
   font-weight: bold;
   padding: 0.5rem;
   margin-right: 1rem;
+  color: #733c1d;
 `;
 const Explanation = styled.p`
-  font-size: 1.4rem;
+  font-size: 1.8rem;
   padding: 0.5rem;
-  color: ${(color) => color ? color : "#eeeeee"};
-  border-left: 2px solid #cccccc;
+  color: ${(color) => color ? color : "#733c1d"};
+  &::before {
+    content: "";
+    border-left: #f25430 2px solid;
+    padding-right: 1rem;
+  } 
 `;
client/views/index.jsx
--- client/views/index.jsx
+++ client/views/index.jsx
@@ -14,7 +14,7 @@
 import "../resources/css/layout.css";
 import "../resources/css/common.css";
 import "../resources/css/main.css";
-import "../resources/css/responsive.css"
+import "../resources/css/responsive.css";
 
 
 const root = ReactDOM.createRoot(document.getElementById("root"));
client/views/layout/Header.jsx
--- client/views/layout/Header.jsx
+++ client/views/layout/Header.jsx
@@ -1,6 +1,7 @@
 import React from "react";
 import MenuIcon from "@mui/icons-material/Menu";
 import Weather from "../pages/main/Weather.jsx";
+import PersonIcon from "@mui/icons-material/Person";
 
 function Header({ title }) {
 
@@ -10,8 +11,18 @@
     <header>
       <div className="header-flex flex flex-align">
         <div className="page-title flex flex-align">
-          <MenuIcon />
-          <span>{title}</span>
+          {/* <MenuIcon /> */}
+          <div className="info-wrap flex">
+            <div className="usericon"><PersonIcon sx={{ width:48, height:48,}} /></div>
+            <p className="header-info-id">admin1</p>
+            <div className="bottom-section flex">
+              <div className="info-id" onClick={() => {
+                navigate("/Join");
+              }}><span>계정추가</span></div>
+              <div className="logout"><span>로그아웃</span></div>
+            </div>
+          </div>
+          {/* <span>{title}</span> */}
         </div>
         <Weather />
       </div>
client/views/layout/Menu.jsx
--- client/views/layout/Menu.jsx
+++ client/views/layout/Menu.jsx
@@ -1,9 +1,8 @@
 import React from "react";
 import SidebarItem from "./SidebarItem.jsx";
 import Button from "../component/Button.jsx";
-import GroupAddIcon from '@mui/icons-material/GroupAdd';
-import LogoutIcon from '@mui/icons-material/Logout';
 import { useNavigate } from "react-router";
+import logo from "../../resources/files/images/logo.png";
 
 export default function Sidebar({items}) {
   const [menuToggle, setMenuToggle] = React.useState(false);
@@ -14,21 +13,13 @@
       className={!menuToggle ? "nav" : "burger__menu"}
       onClick={() => (menuToggle ? setMenuToggle(false) : setMenuToggle(true))}
     >
-      <h1 className="logo">시니어 케어 시스템</h1>
+      <h1 className="logo"><img src={logo} alt="" /></h1>
       <div className="flex-align-column" style={{ height: `calc(100% - 72px)` }}>
         <ul>
           {items.map((item, index) => (
             <SidebarItem key={index} item={item} />
           ))}
         </ul>
-        <div className="info-wrap ">
-          <div className="bottom-section flex">
-            <div className="info-id" onClick={() => {
-            navigate("/Join");
-          }}><GroupAddIcon sx={{ width: "20px", height: "20px", color: "#ffffff",}} />계정추가</div>
-            <div className="logout"><LogoutIcon sx={{ width: "20px", height: "20px", color: "#ffffff",}}/>로그아웃</div>
-          </div>
-        </div>
       </div>
     </nav>
   );
client/views/layout/SidebarItem.jsx
--- client/views/layout/SidebarItem.jsx
+++ client/views/layout/SidebarItem.jsx
@@ -21,7 +21,7 @@
           </div>
           <KeyboardArrowDownIcon
             className="toggle"
-            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
+            sx={{ fontSize: 20, color: "#333333",}}
           />
         </div>
         <ul className="sidebar-content">
client/views/pages/user_management/UserAuthoriySelect.jsx
--- client/views/pages/user_management/UserAuthoriySelect.jsx
+++ client/views/pages/user_management/UserAuthoriySelect.jsx
@@ -289,7 +289,7 @@
         </div>
       </Modal>
       <div className="content-wrap">
-        <ContentTitle contentTitle={"사용자 관리"} />
+        <ContentTitle contentTitle={"사용자 관리"} explanation={"관리기관 리스트 및 시행기관 사용자 리스트를 확인할 수 있습니다."}/>
         <div
           className="flex-align-start"
           style={{ height: "calc(100% - 61px)" }}
Add a comment
List