-
Notifications
You must be signed in to change notification settings - Fork 4
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 #35 from hhbb0081/test
Fix: setDegree 쓰이지 않는 에러 해결
- Loading branch information
Showing
22 changed files
with
963 additions
and
6 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
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import arrow from "../../../assets/images/icon_arrow.svg"; | ||
import close from "../../../assets/images/icon_close.svg"; | ||
import "./Header.css"; | ||
|
||
const Header = ({pageName, isClose}) => { | ||
return ( | ||
<header className="top_header2"> | ||
<div className="header-main__warpper"> | ||
{!isClose ? (<div><img src={arrow} alt="arrow"/></div>) : (<div></div>)} | ||
<span>{pageName}</span> | ||
{isClose ? (<div><img src={close} alt="close"/></div>) : (<div></div>)} | ||
</div> | ||
</header> | ||
); | ||
}; | ||
|
||
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
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,66 @@ | ||
|
||
.status-progressbar-wrapper{ | ||
margin: 12% 0 18% 0; | ||
} | ||
|
||
.progressbar-wrapper{ | ||
position: relative; | ||
} | ||
|
||
.status-progressbar{ | ||
display: flex; | ||
flex-direction: row; | ||
gap: calc((100% - 4.8rem) / 3); | ||
|
||
width: 95%; | ||
height: 1.2rem; | ||
background-color: #FFE2ED; | ||
border-radius: 0.8rem; | ||
margin: 0 auto; | ||
|
||
} | ||
|
||
.status-progressbar-degree-wrapper{ | ||
width: 100%; | ||
margin: 0 auto; | ||
|
||
position: absolute; | ||
top: 0; | ||
left: calc((100% - 95%) / 2); | ||
z-index: 1; | ||
} | ||
|
||
.status-progressbar-degree{ | ||
/* width: calc(100% * 0.1); */ | ||
height: 1.2rem; | ||
background-color: #D82356; | ||
border-radius: 0.8rem; | ||
z-index: 101; | ||
} | ||
|
||
.status-progressbar-circle{ | ||
width: 1.2rem; | ||
height: 1.2rem; | ||
background-color: rgba(216, 35, 86, 0.2); | ||
border-radius: 8.33rem; | ||
} | ||
|
||
.status-explain-wrapper{ | ||
display: flex; | ||
flex-direction: row; | ||
gap: calc((100% - 12.965rem) / 3); | ||
} | ||
|
||
.status-explain{ | ||
font-size: 0.9375rem; | ||
color: #FFE2ED; | ||
font-family: "bold"; | ||
flex-shrink: 0; | ||
} | ||
|
||
.status-explain.selected{ | ||
font-size: 0.9375rem; | ||
color: #D82356; | ||
font-family: "bold"; | ||
flex-shrink: 0; | ||
} |
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,31 @@ | ||
import "./ProgressBar.css"; | ||
|
||
const Progressbar = ({degree}) => { | ||
const percent = [0.1, 0.37, 0.685, 1]; | ||
const statusList = ["주문요청", "주문확인", "제조완료", "픽업완료"]; | ||
|
||
return( | ||
<div className="status-progressbar-wrapper"> | ||
<div className="progressbar-wrapper"> | ||
<div className="status-progressbar"> | ||
<span className="status-progressbar-circle"></span> | ||
<span className="status-progressbar-circle"></span> | ||
<span className="status-progressbar-circle"></span> | ||
<span className="status-progressbar-circle"></span> | ||
</div> | ||
<div className="status-progressbar-degree-wrapper"> | ||
<div className="status-progressbar-degree" style={{ width: `calc(95% * ${percent[degree]})`}}></div> | ||
</div> | ||
</div> | ||
<div className="status-explain-wrapper"> | ||
{statusList.map((e, i) => ( | ||
<div key={i} className={`status-explain ${i <= degree ? 'selected' : ''}`}> | ||
{e} | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Progressbar; |
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,95 @@ | ||
|
||
.order-box.selected{ | ||
width: 100%; | ||
height: 15%; | ||
background-color: #FFE2ED; | ||
padding: 3% 0; | ||
border-top: 0.3vh solid #D82356; | ||
} | ||
|
||
.order-box{ | ||
width: 100%; | ||
height: 15%; | ||
background-color: #fff; | ||
padding: 3% 0; | ||
border-top: 0.3vh solid #DADADA; | ||
} | ||
|
||
.status-bar{ | ||
display: flex; | ||
flex-direction: row; | ||
|
||
/* width: calc(100% - 3rem); */ | ||
width: 94%; | ||
height: 2rem; | ||
margin: 0 auto; | ||
|
||
justify-content: space-between; | ||
} | ||
|
||
.status-date{ | ||
font-size: 12px; | ||
color: #838383; | ||
} | ||
|
||
.status-box.selected{ | ||
color: #D82356; | ||
border: 1px solid #D82356; | ||
font-size: 0.7rem; | ||
width: 3.5rem; | ||
height: 50%; | ||
text-align: center; | ||
border-radius: 10px; | ||
background-color: #fff;; | ||
} | ||
|
||
.status-box{ | ||
color: #838383; | ||
border: 1px solid #838383; | ||
font-size: 0.7rem; | ||
width: 3.5rem; | ||
height: 50%; | ||
text-align: center; | ||
border-radius: 10px; | ||
background-color: #fff;; | ||
} | ||
|
||
.order-content{ | ||
display: flex; | ||
flex-direction: row; | ||
|
||
/* width: calc(100% - 3rem); */ | ||
width: 94%; | ||
height: 70%; | ||
margin: 0 auto; | ||
} | ||
|
||
.cafe-img{ | ||
width: 28%; | ||
height: 100%; | ||
border-radius: 10px; | ||
background-color: #666; | ||
} | ||
|
||
.cafe-box{ | ||
width: 70%; | ||
height: 100%; | ||
margin: 0 auto; | ||
/* padding: 5% 0; */ | ||
} | ||
|
||
.cafe-name{ | ||
color: #000; | ||
font-size: 18px; | ||
font-family: "SemiBold"; | ||
text-decoration: none; | ||
height: 32%; | ||
} | ||
|
||
.menu-name{ | ||
height: 68%; | ||
color: #838383; | ||
font-size: 12px; | ||
font-family: "Medium"; | ||
text-decoration: none | ||
} |
Oops, something went wrong.