forked from yapp-project/team02_frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See: Github issue yapp-project#15 --------------------------------------- ### 작업내용 * 작업 내용 전체적으로 통합 * 컨플릭트 해결 * 포크된 내용을 커밋 하는 것에 대한 방법을 좀 찾아봐야 할듯 Merge branch 'release-1.0' # Conflicts: # package-lock.json # src/App.js # src/containers/MainView/MainView.jsx # src/containers/index.js
- Loading branch information
Showing
41 changed files
with
2,383 additions
and
88 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
import React, { Component } from "react"; | ||
import React from "react"; | ||
import classNames from "classnames/bind"; | ||
import styles from "./Button.scss"; | ||
const cx = classNames.bind(styles); | ||
|
||
const defaultProps = {}; | ||
const propTypes = {}; | ||
|
||
class Button extends Component { | ||
render() { | ||
const { value, className, onClick } = this.props; | ||
return ( | ||
<button className={cx(styles.button, className)} onClick={onClick}> | ||
{value} | ||
</button> | ||
); | ||
} | ||
} | ||
|
||
Button.defaultProps = defaultProps; | ||
Button.propTypes = propTypes; | ||
const Button = ({ className, value, onClick }) => { | ||
return ( | ||
<button className={cx(className, { button: !className })} onClick={onClick}> | ||
{value} | ||
</button> | ||
); | ||
}; | ||
|
||
export default Button; |
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,20 @@ | ||
import React from "react"; | ||
import Select from "react-select"; //select libery사용 | ||
import classNames from "classnames/bind"; | ||
import styles from "./Combo.scss"; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const Combo = ({ className, options, handleChange, defaultValue, styles }) => { | ||
return ( | ||
<Select | ||
className={cx(className, { default: !className })} | ||
options={options} | ||
onChange={handleChange} | ||
defaultValue={defaultValue} | ||
styles={styles} | ||
/> | ||
); | ||
}; | ||
|
||
export default Combo; |
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,4 @@ | ||
.default { | ||
width: 100px; | ||
height: 50px; | ||
} |
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,111 @@ | ||
import React from "react"; | ||
import classNames from "classnames/bind"; | ||
import styles from "./CommonStep.scss"; | ||
import { Edit } from "../../components"; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const Div = ({ title, detail }) => { | ||
return ( | ||
<div className={cx("common-container")}> | ||
<div className={cx("common-container-header")}> | ||
<span className={cx("step-1")}> | ||
<span className={cx("step")}>STEP1</span> | ||
</span> | ||
|
||
<span className={cx("step-2")}> | ||
<span className={cx("step")}>STEP2</span> | ||
</span> | ||
|
||
<span className={cx("step-3")}> | ||
<span className={cx("step")}>STEP3</span> | ||
</span> | ||
|
||
<span className={cx("save")}>저장하기</span> | ||
</div> | ||
|
||
<div className={cx("common-container-body")}> | ||
<div className={cx("common-content")}> | ||
<div className={cx("common-content-left")}> | ||
<span className={cx("common-container-title")}>{title}</span> | ||
|
||
<span className={cx("common-container-detail")}> | ||
<span className={cx("common-container-contour")}></span> | ||
{detail} | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<div className={cx("common-content-middle")}> | ||
<span className={cx("common-container-cup")}></span> | ||
</div> | ||
|
||
<div className={cx("common-container-step1 show")}> | ||
<div className={cx("step1-container")}> | ||
<span className={cx("title")}>CHOOSE CUP</span> | ||
|
||
<div className={cx("cup-select-container")}> | ||
<span className={cx("cup-item1")}></span> | ||
<span className={cx("cup-item2")}></span> | ||
<span className={cx("cup-item3")}></span> | ||
<span className={cx("cup-item4")}></span> | ||
<span className={cx("cup-item5")}></span> | ||
</div> | ||
|
||
<span className={cx("information")}>INFORMATION</span> | ||
|
||
<div className={cx("descripe")}> | ||
<span>레시피 이름</span> | ||
|
||
<Edit | ||
className={cx("recipe-name")} | ||
placeholder="레시피 이름" | ||
/> | ||
</div> | ||
|
||
<div className={cx("descripe")}> | ||
<span>한줄 설명</span> | ||
|
||
<Edit | ||
className={cx("recipe-descripe")} | ||
placeholder="레시피 이름" | ||
/> | ||
</div> | ||
|
||
<div className={cx("descripe")}> | ||
<span>도수</span> | ||
|
||
<ul className={cx("alcohol")}> | ||
<li className={cx("alcohol-item1")}></li> | ||
<li className={cx("alcohol-item2")}></li> | ||
<li className={cx("alcohol-item3")}></li> | ||
<li className={cx("alcohol-item4")}></li> | ||
<li className={cx("alcohol-item5")}></li> | ||
</ul> | ||
</div> | ||
|
||
<div className={cx("descripe")}> | ||
<span>태그</span> | ||
|
||
<Edit | ||
className={cx("recipe-tag")} | ||
placeholder="#태그명" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className={cx("common-container-step2 close")}> | ||
hello | ||
</div> | ||
|
||
<div className={cx("common-container-step3 close")}> | ||
hello | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Div; | ||
|
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,3 @@ | ||
.div { | ||
background: blue; | ||
} |
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,15 @@ | ||
import React from "react"; | ||
import classNames from "classnames/bind"; | ||
import styles from "./Div.scss"; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const Div = ({ className, content, onClick }) => { | ||
return ( | ||
<div className={cx(className)} onClick={onClick}> | ||
{content} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Div; |
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,3 @@ | ||
.div { | ||
background: blue; | ||
} |
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 React from "react"; | ||
import classNames from "classnames/bind"; | ||
import styles from "./Edit.scss"; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const Edit = ({ className, value, type = "text", placeholder }) => { | ||
return ( | ||
<input | ||
className={cx(className)} | ||
value={value} | ||
type={type} | ||
placeholder={placeholder} | ||
/> | ||
); | ||
}; | ||
|
||
export default Edit; |
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,6 @@ | ||
$bg-color: green; | ||
.edit { | ||
width: 130px; | ||
height: 20px; | ||
color: $bg-color; | ||
} |
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,28 @@ | ||
import React from "react"; | ||
import classNames from "classnames/bind"; | ||
import styles from "./Popup.scss"; | ||
import Div from "../Div/Div"; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
/** | ||
* @author AnGwangHo | ||
* @description 팝업 Div | ||
* @param id Block되는 Div ID | ||
* @param className Popup창 style(default : innercontainer) | ||
* @param content Popup창에 표시할 Tags | ||
* @param onClick Block된 Div의 Onclick 함수 | ||
*/ | ||
const Popup = ({ id, className = "innercontainer", content, onClick }) => { | ||
return ( | ||
<div id={id} className={styles.popup} onClick={onClick}> | ||
<Div | ||
id={id + "_innercontainer"} | ||
className={cx(className)} | ||
content={content} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Popup; |
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,21 @@ | ||
.popup { | ||
position: fixed; | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
margin: auto; | ||
background-color: rgba(0, 0, 0, 0.5); | ||
z-index: 1; | ||
.innercontainer { | ||
position: absolute; | ||
left: 25%; | ||
right: 25%; | ||
top: 25%; | ||
bottom: 25%; | ||
margin: auto; | ||
background: white; | ||
} | ||
} |
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,32 @@ | ||
import React from "react"; | ||
import classNames from "classnames/bind"; | ||
import styles from "./SearchResultItem.scss"; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
/** | ||
* @author AnGwangHo | ||
* @description 한개의 칵테일 검색결과를 보여준다 | ||
* @param props object형태의 칵테일 정보 {no, Image, name} | ||
*/ | ||
const SearchResultItem = ({ className, props }) => { | ||
const { no, Image, name } = props; | ||
|
||
return ( | ||
<div className={cx(className, { image_container: !className })}> | ||
<img className={cx("item_img")} src={Image} alt="사진" /> | ||
<div className={cx("information_rect")}> | ||
<div className={cx("cocktailName")}>{name}</div> | ||
<div className={cx("bottom")}> | ||
<div className={cx("userName")}>{name}</div> | ||
<div className={cx("right")}> | ||
<div className={cx("like")} /> | ||
<div className={cx("number")}>123</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SearchResultItem; |
Oops, something went wrong.