-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop-frontend' into feature/#671
- Loading branch information
Showing
53 changed files
with
693 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+264 KB
frontend/src/common/assets/fonts/PartialSansKR/PartialSansKR-Regular.otf
Binary file not shown.
Binary file added
BIN
+116 KB
frontend/src/common/assets/fonts/PartialSansKR/PartialSansKR-Regular.woff2
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
frontend/src/components/Funnel/FunnelErrorMessage/FunnelErrorMessage.style.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { css, Theme } from '@emotion/react'; | ||
|
||
export const errorMessage = ({ theme }: { theme: Theme }) => css` | ||
font-size: 1.4rem; | ||
color: ${theme.colorPalette.red[500]}; | ||
text-align: center; | ||
`; |
18 changes: 18 additions & 0 deletions
18
frontend/src/components/Funnel/FunnelErrorMessage/FunnelErrorMessage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { useTheme } from '@emotion/react'; | ||
import * as S from './FunnelErrorMessage.style'; | ||
|
||
interface FunnelErrorMessageProps { | ||
isError: boolean; | ||
errorMessage: string; | ||
} | ||
|
||
export default function FunnelErrorMessage(props: FunnelErrorMessageProps) { | ||
const { isError, errorMessage } = props; | ||
|
||
const theme = useTheme(); | ||
|
||
if (!isError) { | ||
return null; | ||
} | ||
return <div css={S.errorMessage({ theme })}>{errorMessage}</div>; | ||
} |
19 changes: 19 additions & 0 deletions
19
frontend/src/components/Funnel/FunnelInputErrorMessage/FunnelInputErrorMessage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { useTheme } from '@emotion/react'; | ||
import { HTMLAttributes, PropsWithChildren } from 'react'; | ||
|
||
interface FunnelInputErrorMessageProps | ||
extends HTMLAttributes<HTMLSpanElement> {} | ||
|
||
export default function FunnelInputErrorMessage( | ||
props: PropsWithChildren<FunnelInputErrorMessageProps>, | ||
) { | ||
const { children, ...rest } = props; | ||
|
||
const theme = useTheme(); | ||
|
||
return ( | ||
<span css={[theme.typography.b3]} {...rest}> | ||
{children} | ||
</span> | ||
); | ||
} |
10 changes: 6 additions & 4 deletions
10
frontend/src/components/Funnel/FunnelQuestion/FunnelQuestion.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export default function PeopleIcon() { | ||
return ( | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M10.5 8C9.85746 8 9.23621 7.71312 8.74996 7.1925C8.27715 6.68469 7.9884 6.0075 7.93746 5.28625C7.88309 4.51688 8.11778 3.80937 8.59809 3.29375C9.0784 2.77813 9.74996 2.5 10.5 2.5C11.2447 2.5 11.9181 2.78312 12.3968 3.2975C12.8803 3.81687 13.1156 4.52312 13.0612 5.28594C13.009 6.00812 12.7206 6.685 12.2487 7.19219C11.7637 7.71312 11.1428 8 10.5 8ZM14.6197 13.5H6.38059C6.24812 13.5007 6.11726 13.471 5.99807 13.4132C5.87888 13.3554 5.77455 13.271 5.69309 13.1666C5.60668 13.0533 5.54701 12.922 5.51855 12.7824C5.49008 12.6429 5.49356 12.4987 5.52871 12.3606C5.79184 11.3041 6.44371 10.4278 7.41371 9.82687C8.27465 9.29375 9.37059 9 10.5 9C11.6515 9 12.7187 9.28125 13.5847 9.81406C14.5568 10.4119 15.2097 11.2931 15.4715 12.3625C15.5063 12.5006 15.5093 12.6448 15.4806 12.7843C15.4518 12.9238 15.3919 13.055 15.3053 13.1681C15.2239 13.2721 15.1198 13.3561 15.001 13.4136C14.8821 13.4711 14.7517 13.5007 14.6197 13.5ZM4.59371 8.125C3.49403 8.125 2.52715 7.1025 2.43746 5.84594C2.39309 5.20219 2.59371 4.60687 2.99996 4.17031C3.40184 3.73812 3.96871 3.5 4.59371 3.5C5.21871 3.5 5.78121 3.73938 6.18528 4.17406C6.59465 4.61406 6.79465 5.20812 6.74778 5.84656C6.65809 7.10281 5.69153 8.125 4.59371 8.125ZM6.64559 9.10781C6.0959 8.83906 5.38246 8.70469 4.59403 8.70469C3.6734 8.70469 2.77934 8.94469 2.07621 9.38031C1.27903 9.875 0.742777 10.5953 0.526214 11.465C0.494522 11.5901 0.491525 11.7207 0.517446 11.8471C0.543367 11.9736 0.597537 12.0925 0.675902 12.195C0.750261 12.2905 0.845522 12.3676 0.95436 12.4205C1.0632 12.4733 1.18271 12.5005 1.30371 12.5H4.77246C4.83101 12.5 4.8877 12.4794 4.93264 12.4419C4.97759 12.4044 5.00794 12.3523 5.0184 12.2947C5.02184 12.275 5.02621 12.2553 5.03121 12.2359C5.29621 11.1716 5.91715 10.2722 6.83465 9.61656C6.8684 9.59224 6.89554 9.55988 6.91362 9.52241C6.9317 9.48495 6.94014 9.44356 6.93819 9.40201C6.93623 9.36046 6.92394 9.32005 6.90242 9.28445C6.88091 9.24884 6.85084 9.21917 6.81496 9.19812C6.7659 9.16937 6.70965 9.13906 6.64559 9.10781Z" | ||
fill="#9EA2AE" | ||
/> | ||
</svg> | ||
); | ||
} |
Oops, something went wrong.