From fb10b9ee95fa8edc84d8209c73fd4f95c3116f4e Mon Sep 17 00:00:00 2001 From: ttaerrim Date: Sun, 28 Jan 2024 13:16:27 +0900 Subject: [PATCH 01/11] =?UTF-8?q?=E2=9C=A8=20=EA=B7=B8=EB=A3=B9=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/frontend/src/hooks/useRouter.tsx | 5 +++++ app/frontend/src/pages/Groups/Create/index.css.ts | 9 +++++++++ app/frontend/src/pages/Groups/Create/index.tsx | 11 +++++++++++ app/frontend/src/pages/index.ts | 1 + 4 files changed, 26 insertions(+) create mode 100644 app/frontend/src/pages/Groups/Create/index.css.ts create mode 100644 app/frontend/src/pages/Groups/Create/index.tsx diff --git a/app/frontend/src/hooks/useRouter.tsx b/app/frontend/src/hooks/useRouter.tsx index 75f2a8cba..4c72aec70 100644 --- a/app/frontend/src/hooks/useRouter.tsx +++ b/app/frontend/src/hooks/useRouter.tsx @@ -11,6 +11,7 @@ import { Groups, ProfilePage, NotFound, + GroupCreatePage, } from '@/pages'; export const useRouter = () => @@ -50,6 +51,10 @@ export const useRouter = () => path: 'groups', element: , }, + { + path: 'group/new', + element: , + }, ], }, { diff --git a/app/frontend/src/pages/Groups/Create/index.css.ts b/app/frontend/src/pages/Groups/Create/index.css.ts new file mode 100644 index 000000000..a18f318b7 --- /dev/null +++ b/app/frontend/src/pages/Groups/Create/index.css.ts @@ -0,0 +1,9 @@ +import { style } from '@vanilla-extract/css'; + +export const container = style({ + display: 'flex', + flexDirection: 'column', + gap: '3.6rem', + maxWidth: '80rem', + margin: '0 auto', +}); diff --git a/app/frontend/src/pages/Groups/Create/index.tsx b/app/frontend/src/pages/Groups/Create/index.tsx new file mode 100644 index 000000000..1a2454f9c --- /dev/null +++ b/app/frontend/src/pages/Groups/Create/index.tsx @@ -0,0 +1,11 @@ +import { Input } from '@/components'; + +import * as styles from './index.css'; + +export function GroupCreatePage() { + return ( +
+ +
+ ); +} diff --git a/app/frontend/src/pages/index.ts b/app/frontend/src/pages/index.ts index be3bc46ce..70f8f4827 100644 --- a/app/frontend/src/pages/index.ts +++ b/app/frontend/src/pages/index.ts @@ -1,5 +1,6 @@ export * from './Calendar'; export * from './Groups'; +export * from './Groups/Create'; export * from './Main'; export * from './Map'; export * from './Mogaco'; From 9438b36d9189fe61d9c17c6407ca1bd0ff444fd8 Mon Sep 17 00:00:00 2001 From: ttaerrim Date: Sun, 28 Jan 2024 13:32:25 +0900 Subject: [PATCH 02/11] =?UTF-8?q?=F0=9F=94=A8=20=EA=B7=B8=EB=A3=B9=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=ED=8F=BC=20=ED=95=84=EB=93=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/Groups/Create/index.tsx | 42 ++++++++++++++++++- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/app/frontend/src/pages/Groups/Create/index.tsx b/app/frontend/src/pages/Groups/Create/index.tsx index 1a2454f9c..2836f2375 100644 --- a/app/frontend/src/pages/Groups/Create/index.tsx +++ b/app/frontend/src/pages/Groups/Create/index.tsx @@ -1,11 +1,49 @@ -import { Input } from '@/components'; +import { TextLabel, Button } from '@morak/ui'; + +import { FormInput } from '@/components'; import * as styles from './index.css'; export function GroupCreatePage() { return (
- + + +
+
+ +
+
+ +
+
+ +
+ +
+
+ +
+ ); } From 5093d810dacc497b33717feb9b652f5d2ba99e09 Mon Sep 17 00:00:00 2001 From: ttaerrim Date: Sun, 28 Jan 2024 13:39:06 +0900 Subject: [PATCH 03/11] =?UTF-8?q?=F0=9F=92=84=20=EA=B7=B8=EB=A3=B9=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=ED=8E=98=EC=9D=B4=EC=A7=80=20css=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/Groups/Create/index.css.ts | 23 ++++++++++++++++++- .../src/pages/Groups/Create/index.tsx | 22 ++++++++---------- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/app/frontend/src/pages/Groups/Create/index.css.ts b/app/frontend/src/pages/Groups/Create/index.css.ts index a18f318b7..3a922fdba 100644 --- a/app/frontend/src/pages/Groups/Create/index.css.ts +++ b/app/frontend/src/pages/Groups/Create/index.css.ts @@ -1,9 +1,30 @@ import { style } from '@vanilla-extract/css'; +import { sansRegular14 } from '@/styles/font.css'; + export const container = style({ display: 'flex', flexDirection: 'column', - gap: '3.6rem', + gap: '2.4rem', maxWidth: '80rem', margin: '0 auto', }); + +export const groupWrapper = style({ + display: 'flex', + gap: '1.2rem', +}); +export const inputField = style([ + sansRegular14, + { + display: 'flex', + alignItems: 'center', + gap: '0.4rem', + }, +]); + +export const inputWrapper = style({ + display: 'flex', + flexDirection: 'column', + gap: '0.8rem', +}); diff --git a/app/frontend/src/pages/Groups/Create/index.tsx b/app/frontend/src/pages/Groups/Create/index.tsx index 2836f2375..19733bdc1 100644 --- a/app/frontend/src/pages/Groups/Create/index.tsx +++ b/app/frontend/src/pages/Groups/Create/index.tsx @@ -8,24 +8,22 @@ export function GroupCreatePage() { return (
- -
-
-
-
- - ( - <> - {['approve', 'code'].map((type) => { - const onChangeCheckbox = ( - e: React.ChangeEvent, - ) => { - const joinType = e.target.id as GroupJoin; - if (value.includes(joinType)) { - const newValue = value.filter((item) => item !== joinType); - onChange(newValue); - } else { - onChange([...value, joinType]); - } - }; - return ( - - ); - })} - - )} - /> -
+ {groupType === 'private' && ( +
+ + ( + <> + {['approve', 'code'].map((type) => { + const onChangeCheckbox = ( + e: React.ChangeEvent, + ) => { + const joinType = e.target.id as GroupJoin; + if (value.includes(joinType)) { + const newValue = value.filter( + (item) => item !== joinType, + ); + onChange(newValue); + } else { + onChange([...value, joinType]); + } + }; + return ( + + ); + })} + + )} + /> +
+ )}
- {groupType === 'private' && ( -
- - -
- )}