Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
gudusol committed Oct 17, 2024
2 parents bef21a7 + 00712be commit 56ac077
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 12 deletions.
10 changes: 10 additions & 0 deletions src/components/common/Button/Button.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ export const buttonVariant = {
${theme.font["pretendard-01"]}
color: ${theme.color.orange};
`,
fillLightOrange: (theme: Theme) => css`
width: 100%;
height: 4.8rem;
border-radius: 5px;
${theme.font["pretendard-01"]}
color: ${theme.color.orange};
background-color: ${theme.color.lightorange};
`,
};

export const disabledStyle = (theme: Theme) => css`
Expand Down
8 changes: 7 additions & 1 deletion src/components/common/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ import {
import { IcFix } from "@svg";

export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
variant: "fill" | "stroke" | "smallStroke" | "smallFill";
variant:
| "fill"
| "stroke"
| "smallStroke"
| "smallFill"
| "delete"
| "fillLightOrange";
disabled?: boolean;
isIcon?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/steps/CheckInfo/CheckInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const CheckInfo = ({ onNext }: StepProps) => {
))}
</section>
<footer css={buttonSectionStyle}>
<Button variant="stroke" onClick={handleAddReceiverClick}>
<Button variant="fillLightOrange" onClick={handleAddReceiverClick}>
택배 추가 접수하기
</Button>
<Button variant="fill" onClick={handleNextClick}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ export const buttonSectionStyle = css`

export const totalPriceStyle = (theme: Theme) => css`
${theme.font["head01-b-24"]};
width: 100%;
text-align: end;
`;
7 changes: 2 additions & 5 deletions src/components/common/steps/SelectProduct/SelectProduct.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { useEffect, useState } from "react";
import { Button, CountProduct, Header, ProgressBar } from "@components";
import {
buttonSectionStyle,
layoutStyle,
orangeTextStyle,
sectionStyle,
textStyle,
} from "@pages/orderInfo/styles";
import { StepProps } from "@types";
import {
buttonSectionStyle,
mainSectionStyle,
totalPriceStyle,
} from "./SelectProduct.style";
import { mainSectionStyle, totalPriceStyle } from "./SelectProduct.style";
import { useFetchProductList } from "@apis/domains/service/useFetchProductList";
import { useAtom } from "jotai";
import { categoryAtom, productListAtom } from "@stores";
Expand Down
15 changes: 10 additions & 5 deletions src/pages/orderInfo/styles/common.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Theme, css } from "@emotion/react";
import { flexGenerator } from "@styles/generator";

export const layoutStyle = css`
${flexGenerator("column")};
padding: 8.6rem 2rem 3rem;
${flexGenerator("column", "flex-start")};
padding: 8.6rem 2rem 15rem;
width: 100%;
min-height: 100dvh;
`;
Expand All @@ -29,9 +29,14 @@ export const mainSectionStyle = css`
margin-top: 5.8rem;
`;

export const buttonSectionStyle = css`
export const buttonSectionStyle = (theme: Theme) => css`
position: fixed;
bottom: 0;
width: 100%;
max-width: 43rem;
background-color: ${theme.color.white};
padding: 2rem;
${flexGenerator("column")};
gap: 1rem;
width: 100%;
margin-top: auto;
z-index: 3;
`;

0 comments on commit 56ac077

Please sign in to comment.