From f34c9cf1a7c81c103c626745b093239434e8480a Mon Sep 17 00:00:00 2001 From: Likilee Date: Sun, 7 Aug 2022 18:07:03 +0900 Subject: [PATCH] =?UTF-8?q?feat(client/style):=20=EB=AA=87=EA=B0=80?= =?UTF-8?q?=EC=A7=80=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - mui ThemeProvider를 적용하고 몇 가지 색상을 적용해보았습니다. #342 --- packages/client/public/logo192.png | Bin 0 -> 8934 bytes packages/client/src/App.tsx | 75 ++++++++++++++++-- .../components/Sticker/Sticker.tsx | 5 +- .../presentation/pages/DashBoardPage.tsx | 8 +- 4 files changed, 76 insertions(+), 12 deletions(-) create mode 100644 packages/client/public/logo192.png diff --git a/packages/client/public/logo192.png b/packages/client/public/logo192.png new file mode 100644 index 0000000000000000000000000000000000000000..18b934ea3ab7c5543967e7c2b379200c19a51502 GIT binary patch literal 8934 zcmbtac|4T+zn>N=!)XyJ(cqjG8DpEVr?Q=vX(N=x7=vLJ%h;20N_Iy{Wi5`%lHJ%s z2xUDAW2{*UjUjuC;XX6WjMwjV?z#7MZ~yRpp3n0BtnV@3f-YS!6cRWf00M!8&it-- z1q9lR2Z1(KZ|4V|xX(e$fFJuw`eq~}qAke-<$?j7vLRYyAZPF>JIoaf%Ert2BSs4Z z+TxBiHY1rK&ugHGczF~{M&1+e1ZaamS~{LiD6}Jn1hK~0VF}vOlcg2X5Uh>1v?&~^ zfOOKu*kgb9cEK2VUob{{JEGNXq;*a}v^+Hc19%Jx1@Xk=2(B8Q+R|*h8o=+Y$1rIK zTZH7OExiWH40#EnOLW0N;PMD4T2TcKQB{{$L@2AMtII)@6cp893TiM#WvC)TLq$PD zNeQz4Pa5#%Vq>duMbBW}7jV*+wkMICG+;0f4-a_{WqG2D9ZXSOT^**N1XEIi0uoSH zF9HeW2_?A7a4hIyT+uFAClZ!OfUqp0tch+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_GYZ}3>chL;1jCY z_c%|+W9Gvs!CsY57v56>IKl@yo?wg?-L9XSTHZ85xv~)ZZOR$Rtm>p9sQZWvQ*R_` zvJB!Xj&PZeJ>%T3#^pYzbHFbVgbpgt7S*|kuip&5L8)%l0mKv#)if!s>T2G^iW-2q4^^RWKy*Piq5ewyXqMvW6ZnxV3e$&Mp@k>=46S6(6#qBC+R|Nk*UZO19>R$z@mT;mNo?@ht~`+`Z$(YQ^a`x364H@xy{Gbv$kR_dTLD;31a&!^;>SAb$@~gV615EVb!5(2oL}<<26Mb~u`)Qw{;{acisgahq zA;%F5dj<{zMZu(@CUTtdO;MeFCbZ1yXmVjh@Nr5@2(n4JeuOUY}5I-M@G~@IGN{LdXi~CO3vOTl@P}6Y0JL{(D#O zt2(!BhxPjw;lJeYxHRJwtI?R-A}tjaOKyHBl>*Yt|8+mUW~w0Pd-ai8y3kP4XoLPN zrS95%jvHhC(I5k6p_M(-4oyQMRzDVx0jq7{JK2FT&OZphF@Q8`PjMwu)_927a5?e6`0xaij%WKJg9%OHBwCHAt_-mKqU`b?*BaL_XTDq4IF3+cdw%1;+EVw0N2zmC zo+9a?)(ztypvUx%O|q8;D{Xa+Q#s>IH-JpdJRba&K~-KXa3wU|cb;6SNniSL6t`@Z z-!swhVte7rl5Yjj144Iv#m)!S3`K-Bd5uth|I8!R`DV*}hgbSE<`DzN^~wMznqdi3*;$Rety)R#G z;MJ(q#K{wf32VGsF?B!H`vxgfQ}w#ZlFQL3N47Zdad)A{P54z!ZO>7UySZdVF0n4H zTK?$}5faU?HK;=~gtlT1u=Y$eHUG=KA~JK-emui{+rB*;ST)ZyNm<5&);ZeO;jnMt zPbbY^D}HPhKXxF>Xm!MIFj-`zJ3(qJsdI)}v!W>L`D#G)@y@WPCUHL7Zx{Jnp*?|3(~p#KmY&$ literal 0 HcmV?d00001 diff --git a/packages/client/src/App.tsx b/packages/client/src/App.tsx index e8e1044..bddd90e 100644 --- a/packages/client/src/App.tsx +++ b/packages/client/src/App.tsx @@ -1,16 +1,79 @@ +import { createTheme, ThemeProvider } from '@mui/material'; +import { red } from '@mui/material/colors'; import React from 'react'; import { Route, Routes } from 'react-router-dom'; import DashBoardPage from './dashboard/presentation/pages/DashBoardPage'; import Login from './dashboard/presentation/pages/Login'; +const Colors = { + cyan: '#65C2C2', + magenta: '#EA6390', + yellow: '#F7C667', + blue: '#6492C1', + white: '#FFF', + grey100: '#F5F5F5', +}; + +const theme = createTheme({ + palette: { + mode: 'light', + common: {}, + primary: { + main: Colors.cyan, + }, + secondary: { + main: Colors.magenta, + }, + // error: {}, + warning: { + main: Colors.yellow, + }, + info: { + main: Colors.blue, + }, + // success: {}, + background: { + paper: '#f2f2f2', + default: '#fff', + }, + }, + components: { + MuiAppBar: { + styleOverrides: { + root: { + backgroundColor: Colors.white, + boxShadow: 'none', + borderBottom: '1px solid #e5e5e5', + }, + }, + }, + MuiDrawer: { + styleOverrides: { + paper: { + backgroundColor: Colors.white, + }, + }, + }, + MuiPaper: { + styleOverrides: { + root: { + backgroundColor: Colors.grey100, + }, + }, + }, + }, +}); + function App() { return ( -
- - } /> - } /> - -
+ +
+ + } /> + } /> + +
+
); } diff --git a/packages/client/src/dashboard/presentation/components/Sticker/Sticker.tsx b/packages/client/src/dashboard/presentation/components/Sticker/Sticker.tsx index 51762c6..bf9dba4 100644 --- a/packages/client/src/dashboard/presentation/components/Sticker/Sticker.tsx +++ b/packages/client/src/dashboard/presentation/components/Sticker/Sticker.tsx @@ -3,6 +3,7 @@ import StickerContentFactory, { } from './StickerContentFactory'; import useMode from '../../../application/services/useMode'; import EditToolBar from '../Common/EditToolBar'; +import { Card } from '@mui/material'; interface StickerProps { id: string; @@ -14,7 +15,7 @@ function Sticker(props: StickerProps) { const { id, data, handleStickerRemove } = props; const { getControlMode } = useMode(); return ( - <> + {getControlMode() === 'edit' && ( )} @@ -22,7 +23,7 @@ function Sticker(props: StickerProps) { type={data.type} contentProps={data.contentProps} /> - + ); } diff --git a/packages/client/src/dashboard/presentation/pages/DashBoardPage.tsx b/packages/client/src/dashboard/presentation/pages/DashBoardPage.tsx index e1092b7..aa44149 100644 --- a/packages/client/src/dashboard/presentation/pages/DashBoardPage.tsx +++ b/packages/client/src/dashboard/presentation/pages/DashBoardPage.tsx @@ -1,4 +1,4 @@ -import { Box, CssBaseline } from '@mui/material'; +import { Box, CssBaseline, Paper } from '@mui/material'; import AppBar from '../components/AppBar/AppBar'; import ProfileMenu from '../components/AppBar/ProfileMenu/ProfileMenu'; import Board from '../components/Board/Board'; @@ -30,7 +30,7 @@ function DashBoardPage() { .then((response: any) => response.data) .then((data) => setUser(data)) .catch((error) => { - navigate(`/`); + // navigate(`/`); }); } }); @@ -76,7 +76,7 @@ function DashBoardPage() { ); return ( - + @@ -89,7 +89,7 @@ function DashBoardPage() {