Skip to content

Commit

Permalink
Merge branch 'dev' into Feat/#24
Browse files Browse the repository at this point in the history
  • Loading branch information
s0zzang authored Oct 21, 2024
2 parents 70c24d5 + 17ba945 commit 5f70ff0
Show file tree
Hide file tree
Showing 54 changed files with 7,747 additions and 1,974 deletions.
14 changes: 12 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="icons/favicon.icon" />

<!-- -->
<link rel="apple-touch-icon" href="public/icons/apple-touch-icon-180x180.png" sizes="180x180" />
<link
rel="mask-icon"
href="public/icons/maskable-icon-512x512.png
"
color="#FFFFFF"
/>
<meta name="theme-color" content="#ffffff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Wish</title>
</head>
<body>
<div id="root"></div>
Expand Down
8,101 changes: 6,313 additions & 1,788 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
"preview": "vite preview",
"gen-pwa": "pwa-assets-generator --preset minimal public/icons/logo.svg"
},
"dependencies": {
"@emotion/react": "^11.13.3",
Expand All @@ -25,6 +26,7 @@
"@eslint/js": "^9.11.1",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vite-pwa/assets-generator": "^0.2.6",
"@vitejs/plugin-react": "^4.3.2",
"eslint": "^9.11.1",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
Expand All @@ -33,6 +35,7 @@
"prettier": "^3.3.3",
"typescript": "^5.5.3",
"typescript-eslint": "^8.7.0",
"vite": "^5.4.8"
"vite": "^5.4.8",
"vite-plugin-pwa": "^0.20.5"
}
}
Binary file added public/icons/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/favicon.ico
Binary file not shown.
Binary file added public/icons/logo-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/maskable-icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/pwa-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/pwa-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/pwa-64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/Images/checkArrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/Images/checkedArrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/Images/icon-send.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/Images/img-speech-bubble.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/Images/img-wish-emotion.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/assets/Images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/assets/Images/subfertility.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/Images/welcome.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 23 additions & 1 deletion src/components/Auth/AuthError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
import styled from '@emotion/styled';
import variables from '@styles/Variables';

// 디폴트 형식과 툴팁형식을 제공함

interface AuthErrorProps {
message: string;
type?: 'default' | 'tooltip';
}

const AuthErrorContainer = styled.div`
Expand All @@ -13,7 +16,26 @@ const AuthErrorContainer = styled.div`
padding-top: 1.2rem;
`;

const AuthError = ({ message }: AuthErrorProps) => {
const AuthErrorTypeToolTip = styled.div`
color: #ffa997;
padding: 0.6rem;
background-color: #ffefeb;
font-size: ${variables.size.medium};
padding-left: 1.2rem;
padding-top: 1.2rem;
position: absolute;
z-index: 1000;
width: 36.8rem;
bottom: 20rem;
box-sizing: border-box;
border-radius: ${variables.borderRadius};
`;

const AuthError = ({ message, type = 'default' }: AuthErrorProps) => {
if (type === 'tooltip') {
return <AuthErrorTypeToolTip>X {message}</AuthErrorTypeToolTip>;
}

return <AuthErrorContainer>{message}</AuthErrorContainer>;
};

Expand Down
Loading

0 comments on commit 5f70ff0

Please sign in to comment.