+
요청 분야
-
-
+ {fields.map((field, i) => {
+ return (
+
+ );
+ })}
-
-
-
+ 장르
+ {genres.map((genre, i) => {
+ return (
+
+ );
+ })}
-
-
-
요청 분야
-
- {fields.map((field, i) => {
- return (
-
- );
- })}
-
-
- 장르
- {genres.map((genre, i) => {
- return (
-
- );
- })}
-
-
- 분위기
- {moods.map((mood, i) => {
- return (
-
- );
- })}
-
+
+ 분위기
+ {moods.map((mood, i) => {
+ return (
+
+ );
+ })}
-
-
요청하기
-
+
+
+
요청하기
>
);
};
diff --git a/src/presentation/page/create/styled.js b/src/presentation/page/create/styled.js
index ae25736..91457b8 100644
--- a/src/presentation/page/create/styled.js
+++ b/src/presentation/page/create/styled.js
@@ -125,13 +125,9 @@ const RadioButton = ({ title, onClick, keyword, value }) => {
return (
<>
{keyword === value ? (
-
- {value}
-
+
{value}
) : (
-
- {value}
-
+
{value}
)}
>
);
diff --git a/src/presentation/page/home/index.jsx b/src/presentation/page/home/index.jsx
index 48e3bdf..74a7124 100644
--- a/src/presentation/page/home/index.jsx
+++ b/src/presentation/page/home/index.jsx
@@ -1,6 +1,7 @@
import React from "react";
import Modal from "react-modal";
import Login from "./LoginModal";
+import Error from "./loginErrorModal";
import BG from "assets/bg.png";
import SignIn from "./SignInModal";
import {
@@ -15,6 +16,8 @@ const Home = () => {
const [modalIsOpen, setIsOpen] = React.useState(false);
const [LoginModalIsOpen, setLoginModalIsOpen] = React.useState(true);
const [signInModalIsOpen, setSigninModalIsOpen] = React.useState(false);
+ const [errorModalIsOpen, setErrorModalIsOpen] = React.useState(false);
+ const [loginError, setLoginError] = React.useState("");
function openModal() {
setIsOpen(true);
@@ -32,11 +35,17 @@ const Home = () => {
setSigninModalIsOpen(true);
setLoginModalIsOpen(false);
}
+ function closeErrorModal() {
+ setErrorModalIsOpen(false);
+ }
+ function openErrorModal() {
+ setErrorModalIsOpen(true);
+ }
return (
-
+
{
)}
- {signInModalIsOpen && }
+ {signInModalIsOpen && (
+
+
+
+
+
+ )}
+
+
+
diff --git a/src/presentation/page/home/loginErrorModal.js b/src/presentation/page/home/loginErrorModal.js
new file mode 100644
index 0000000..31cee9b
--- /dev/null
+++ b/src/presentation/page/home/loginErrorModal.js
@@ -0,0 +1,17 @@
+import React from "react";
+import { ErrorModalContainer } from "./styled";
+
+const LoginErrorModal = ({ closeErrorModal, error }) => {
+ return (
+
+
+ {error}
+
+
+
+ );
+};
+
+export default LoginErrorModal;
diff --git a/src/presentation/page/home/styled.js b/src/presentation/page/home/styled.js
index cfb1d81..9b9b0b9 100644
--- a/src/presentation/page/home/styled.js
+++ b/src/presentation/page/home/styled.js
@@ -1,6 +1,7 @@
import styled from "styled-components";
import { css } from "styled-components";
import Color from "utils/style/color";
+import { FontFamily } from "utils/style/default";
const customStyles = {
content: {
@@ -12,7 +13,7 @@ const customStyles = {
marginRight: "-50%",
transform: "translate(-50%, -50%)",
border: "0.5px solid white",
- borderRadius: "20px",
+ borderRadius: "10px",
boxShadow: "0 4px 4px 0 rgba(0,0,0,0.3)",
},
overlay: {
@@ -32,7 +33,7 @@ const HomeNav = styled.div`
width: 100%;
justify-content: space-between;
position: absolute;
- color: ${Color.MAIN_COLOR};
+ color: white;
top: 2em;
button {
border: none;
@@ -44,19 +45,19 @@ const HomeNav = styled.div`
font-weight: 700;
background-color: inherit;
font-family: "Krona One";
- color: ${Color.MAIN_COLOR};
+ color: white;
}
& button:last-child {
width: 7em;
height: 2.2em;
margin-right: 2em;
- background-color: #ed8c1b;
- color: white;
+ background-color: white;
+ color: ${Color.MAIN_COLOR};
border: 1px solid inherit;
- font-family: "Krona One";
+ font-family: ${FontFamily.KoreanFont};
border-radius: 20px;
font-size: 19px;
- font-weight: 300;
+ font-weight: 700;
}
`;
@@ -83,12 +84,10 @@ const ModalButton = css`
margin: 0.5em 0.5em;
width: 25rem;
height: 3.7rem;
- font-family: "Noto Sans KR", sans-serif;
+ font-family: ${FontFamily.EnglishFont}, ${FontFamily.KoreanFont};
`;
const ModalInput = css`
${ModalButton}
- border: solid 2px #c1c1c1;
- padding-left: 2rem;
`;
const LoginModalContainer = styled.div`
@@ -103,8 +102,9 @@ const LoginModalContainer = styled.div`
& > form > h2 {
color: ${Color.MAIN_COLOR};
font-family: "Krona One";
- font-size: 2.7em;
+ font-size: 32px;
cursor: default;
+ margin-top: 10px;
}
& > form > .Modal__Button--Cancel {
background-color: inherit;
@@ -119,6 +119,10 @@ const LoginModalContainer = styled.div`
& > form > input {
${ModalInput};
font-size: 1.3em;
+ border: none;
+ border-bottom: solid 1px #909090;
+ border-radius: 0;
+ font-family: ${FontFamily.KoreanFont};
&:focus {
outline: none;
}
@@ -128,13 +132,14 @@ const LoginModalContainer = styled.div`
}
& > form > #LoginModal__LoginButton {
${ModalButton}
- width:27rem;
+ width:10rem;
border: 1px solid ${Color.MAIN_COLOR};
background-color: ${Color.MAIN_COLOR};
color: white;
- font-family: "Krona One";
+ font-family: ${FontFamily.KoreanFont};
+ font-weight: 700;
cursor: pointer;
- font-size: 1.5rem;
+ font-size: 1.2rem;
margin-top: 2rem;
}
& > form > #LoginModal__SignInButton {
@@ -143,7 +148,7 @@ const LoginModalContainer = styled.div`
cursor: pointer;
text-decoration: underline;
font-family: "Noto Sans KR";
- color: #909090;
+ color: #505050;
margin-top: 2rem;
}
`;
@@ -173,14 +178,18 @@ const SignInModalContainer = styled.div`
font-size: 2em;
opacity: 0.5;
}
- & > input {
+ & input {
${ModalInput};
font-size: 1.3em;
+ border: none;
+ border-bottom: solid 1px #909090;
+ border-radius: 0;
+ font-family: ${FontFamily.KoreanFont};
&:focus {
outline: none;
}
}
- & > input::placeholder {
+ & input::placeholder {
color: #c1c1c1;
}
& > .SingInModal__SignUpButton {
@@ -194,6 +203,45 @@ const SignInModalContainer = styled.div`
font-size: 1.5rem;
margin-top: 2rem;
}
+ & > div {
+ position: relative;
+ & > img {
+ position: absolute;
+ right: 0;
+ top: 25%;
+ display: none;
+ }
+ }
+`;
+
+/////////////////////////////////////////
+const ErrorModalContainer = styled.div`
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ position: relative;
+ font-family: ${FontFamily.KoreanFont};
+ & > button {
+ cursor: pointer;
+ }
+ & > button:first-child {
+ position: absolute;
+ right: 0;
+ top: 0;
+ border: none;
+ background-color: inherit;
+ font-size: 20px;
+ }
+ & > h2 {
+ margin-top: 40px;
+ }
+ & > button:last-child {
+ border: none;
+ background-color: inherit;
+ font-size: 10px;
+ margin-top: 20px;
+ }
`;
export {
StyledContainer,
@@ -203,4 +251,5 @@ export {
customStyles,
LoginModalContainer,
SignInModalContainer,
+ ErrorModalContainer,
};