-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from hhbb0081/test
Feat: 재고관리 & 마이페이지 추가
- Loading branch information
Showing
28 changed files
with
862 additions
and
56 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,52 @@ | ||
import React, { useState } from "react"; | ||
import { useRecoilValue } from "recoil"; | ||
import { storeState } from "../../../Atom/status"; | ||
import StoreOff from "../../../assets/icons/Header/CloseLight.svg"; //영업종료 | ||
import LOGO from "../../../assets/icons/Header/LOGO.svg"; //로고 | ||
import StoreOn from "../../../assets/icons/Header/OpenLight.svg"; //영업중 | ||
import SoundOff from "../../../assets/icons/Header/SoundOff.svg"; //소리끔 | ||
import SoundOn from "../../../assets/icons/Header/SoundOn.svg"; //소리켬 | ||
import "./Header.css"; | ||
|
||
const Header = () => { | ||
const Store = useRecoilValue(storeState); | ||
const [Sound, setSound] = useState(1); | ||
|
||
const onClickHandler = (e) => { | ||
setSound(!Sound); | ||
}; | ||
|
||
return ( | ||
<div className="header2"> | ||
<div className="header2-wrapper"> | ||
<div> | ||
<img src={LOGO} className="LOGO" alt="LOGO" /> | ||
</div> | ||
<div className="head-container2"> | ||
{!Store ? ( | ||
<div className="store-group"> | ||
<div className="store-img__wrapper"><img src={StoreOn} alt="Open" /></div> | ||
<div className="header-font">영업중</div> | ||
</div> | ||
) : ( | ||
<div className="store-group"> | ||
<div className="store-img__wrapper"><img src={StoreOff} alt="Close" /></div> | ||
<div className="header-font">영업종료 </div> | ||
</div> | ||
)} | ||
{Sound ? ( | ||
<div className="header-img-wrapper"> | ||
<img src={SoundOn} onClick={onClickHandler} alt="SoundOn" /> | ||
</div> | ||
) : ( | ||
<div className="header-img-wrapper"> | ||
<img src={SoundOff} onClick={onClickHandler} alt="SoundOff" /> | ||
</div> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Header; |
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 @@ | ||
const InvenBox = ({handleModal, invenProps: {category, name, soldOut}}) => { | ||
return( | ||
<> | ||
<div className={`mainInven-category-content__box ${soldOut ? 'selected' : ''}`}> | ||
<span className="mainInven-category-content__span1"> | ||
{!soldOut ? ( | ||
<div className="mainInven-category-checkbox" onClick={handleModal}></div> | ||
) : ( | ||
<div className="mainInven-category-checkbox selected"></div> | ||
)} | ||
</span> | ||
<span className="mainInven-category-content__span2">{category}</span> | ||
<span className="mainInven-category-content__span3">{name}</span> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default InvenBox; |
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,6 +1,7 @@ | ||
.navbar { | ||
width: 8.875rem; | ||
height: 46.25rem; | ||
/* height: 42.5rem; */ | ||
background-color: #2e2d2d; | ||
|
||
display: flex; | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.inven-wrapper{ | ||
display: flex; | ||
|
||
} | ||
|
||
nav{ | ||
width: 8.875rem; | ||
height: 46.25rem; | ||
/* height: 42.5rem; */ | ||
z-index: 1; | ||
} | ||
|
||
main{ | ||
width: calc(100vw - 8.875rem); | ||
} |
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
Oops, something went wrong.