-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
85 additions
and
10 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
4 changes: 3 additions & 1 deletion
4
src/components/orderDetail/productRecommend/productRecommendStyle.ts
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
4 changes: 3 additions & 1 deletion
4
src/components/orderDetail/serviceIntroduce/serviceIntroduceStyle.ts
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,19 @@ | ||
import Footer from '@components/footer/Footer'; | ||
import OrderHeader from '@components/header/orderHeader/OrderHeader'; | ||
import { ReactNode } from 'react'; | ||
|
||
import { orderLayoutContainerStyle, orderLayoutStyle } from './orderLayoutStyle'; | ||
|
||
interface LayoutProps { | ||
children: ReactNode; | ||
} | ||
|
||
const OrderLayout = ({ children }: LayoutProps) => ( | ||
<div css={orderLayoutContainerStyle}> | ||
<OrderHeader /> | ||
<main css={orderLayoutStyle}>{children}</main> | ||
<Footer /> | ||
</div> | ||
); | ||
|
||
export default OrderLayout; |
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,17 @@ | ||
import { Theme, css } from '@emotion/react'; | ||
|
||
export const orderLayoutContainerStyle = (theme: Theme) => css` | ||
width: 100vw; | ||
margin: 0 auto; | ||
background-color: ${theme.colors.gray2}; | ||
`; | ||
|
||
export const orderLayoutStyle = css` | ||
display: flex; | ||
gap: 1.2rem; | ||
width: 121.4rem; | ||
margin: 0 auto; | ||
margin-top: 0.6rem; | ||
margin-bottom: 4rem; | ||
`; |
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,3 +1,23 @@ | ||
const OrderPage = () => <div>OrderPage</div>; | ||
import OrderLayout from 'layout/OrderLayout'; | ||
import { SideBarComponent } from '@components/orderDetail/sideBar/sideBar'; | ||
import { OrderInfoComponent } from '@components/orderDetail/orderInfo/orderInfo'; | ||
import OrderStatusComponent from '@components/orderDetail/orderStatus/orderStatus'; | ||
import OrderHistory from '@components/orderDetail/orderHistory/orderHistory'; | ||
import ServiceIntroduce from '@components/orderDetail/serviceIntroduce/serviceIntroduce'; | ||
import ProductRecommendComponent from '@components/orderDetail/productRecommend/productRecommend'; | ||
import { mainComponentStyle } from './orderPageStyle'; | ||
|
||
const OrderPage = () => ( | ||
<OrderLayout> | ||
<SideBarComponent /> | ||
<div css={mainComponentStyle}> | ||
<OrderInfoComponent /> | ||
<OrderStatusComponent /> | ||
<OrderHistory /> | ||
<ServiceIntroduce /> | ||
<ProductRecommendComponent /> | ||
</div> | ||
</OrderLayout> | ||
); | ||
|
||
export default OrderPage; |
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,11 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
export const mainComponentStyle = css` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1.6rem; | ||
`; | ||
|
||
export const orderLayoutStyle = css` | ||
margin-top: 0.6rem; | ||
`; |
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 @@ | ||
{ "rewrites": [{ "source": "/(.*)", "destination": "/" }] } |