Skip to content

Commit

Permalink
fix: step container height
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Aug 21, 2024
1 parent a6c4801 commit 260ff40
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions apps/bottle/src/app/create-profile/_steps/MBTI/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function MBTI() {
const isDisabled = useMemo(() => EI == null || SN == null || TF == null || JP == null, [EI, JP, TF, SN]);

return (
<Step>
<>
<Step.Title>{name}님의 성격에 대해 알고 싶어요</Step.Title>
<section className={bodyStyle}>
<div className={controlStyle}>
Expand Down Expand Up @@ -93,7 +93,7 @@ export function MBTI() {
>
다음
</Step.FixedButton>
</Step>
</>
);
}

Expand Down
4 changes: 2 additions & 2 deletions apps/bottle/src/app/create-profile/_steps/alcohol/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Alcohol() {
const [alcohol, setAlcohol] = useState<AlcoholType | undefined>(getValue('alcohol'));

return (
<Step>
<>
<Step.Title>술은 얼마나 즐기나요?</Step.Title>
<Control value={alcohol}>
<section className={alcoholStyle}>
Expand All @@ -39,6 +39,6 @@ export function Alcohol() {
>
다음
</Step.FixedButton>
</Step>
</>
);
}
4 changes: 2 additions & 2 deletions apps/bottle/src/app/create-profile/_steps/height/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function Height() {
const [height, setHeight] = useState(getValue('height') ?? Number(DEFAULT_ID));

return (
<Step>
<>
<Step.Title>키는 어떻게 되나요?</Step.Title>
<div className={wheelPickerContainerStyle}>
<WheelPicker
Expand All @@ -46,6 +46,6 @@ export function Height() {
>
다음
</Step.FixedButton>
</Step>
</>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function Information() {
gender === undefined;

return (
<Step>
<>
<Step.Title>{'프로필 생성을 위해\n개인 정보를 입력해 주세요'}</Step.Title>
<section className={containerStyle}>
<div className={fieldStyle}>
Expand Down Expand Up @@ -107,6 +107,6 @@ export function Information() {
>
다음
</Step.FixedButton>
</Step>
</>
);
}
4 changes: 2 additions & 2 deletions apps/bottle/src/app/create-profile/_steps/job/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function Job() {

const [job, setJob] = useState<JobType | undefined>(getValue('job'));
return (
<Step>
<>
<Step.Title>지금 어떤 일을 하고 있나요?</Step.Title>
<section className={jobStyle}>
<Control value={job}>
Expand All @@ -38,6 +38,6 @@ export function Job() {
>
다음
</Step.FixedButton>
</Step>
</>
);
}
4 changes: 2 additions & 2 deletions apps/bottle/src/app/create-profile/_steps/kakao-id/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function KaKaoId() {
const disabled = kakaoId.trim().length === 0;

return (
<Step>
<>
<Step.Title>{'연락처 공유를 위해\n카카오톡 아이디를 입력해 주세요'}</Step.Title>
<Step.Description style={{ marginTop: spacings.sm }}>오타가 없는지 한 번 더 확인해 주세요</Step.Description>
<TextField
Expand All @@ -38,6 +38,6 @@ export function KaKaoId() {
>
다음
</Step.FixedButton>
</Step>
</>
);
}
4 changes: 2 additions & 2 deletions apps/bottle/src/app/create-profile/_steps/keywords/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function Keywords() {
const [keywords, setKeywords] = useState<Keyword[]>(getValue('keyword') ?? []);

return (
<Step>
<>
<Step.Title>나를 표현하는 키워드는?</Step.Title>
<Step.Description style={{ marginTop: '12px' }}>최소 3개, 최대 5개까지 선택할 수 있어요</Step.Description>
<Control value={keywords}>
Expand Down Expand Up @@ -58,6 +58,6 @@ export function Keywords() {
>
{`다음 ${keywords.length} / ${MAX_SELECTED}`}
</Step.FixedButton>
</Step>
</>
);
}
4 changes: 2 additions & 2 deletions apps/bottle/src/app/create-profile/_steps/region/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function Region() {
};

return (
<Step>
<>
<OverlayProvider>
<Step.Title>주로 생활하는 지역은 어딘가요?</Step.Title>
<Step.Subtitle style={{ marginTop: spacings.xxl }}>전체 지역</Step.Subtitle>
Expand Down Expand Up @@ -95,6 +95,6 @@ export function Region() {
>
다음
</Step.FixedButton>
</Step>
</>
);
}
4 changes: 2 additions & 2 deletions apps/bottle/src/app/create-profile/_steps/religion/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Religion() {
const [religion, setReligion] = useState<ReligionType | undefined>(getValue('religion'));

return (
<Step>
<>
<Step.Title>어떤 종교를 가지고 있나요?</Step.Title>
<section className={religionStyle}>
<Control value={religion}>
Expand All @@ -39,6 +39,6 @@ export function Religion() {
>
다음
</Step.FixedButton>
</Step>
</>
);
}
4 changes: 2 additions & 2 deletions apps/bottle/src/app/create-profile/_steps/smoking/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Smoking() {
const [smoking, setSmoking] = useState<SmokingType | undefined>(getValue('smoking'));

return (
<Step>
<>
<Step.Title>흡연 스타일이 궁금해요</Step.Title>
<Control value={smoking}>
<section className={smokingStyle}>
Expand All @@ -39,6 +39,6 @@ export function Smoking() {
>
다음
</Step.FixedButton>
</Step>
</>
);
}
3 changes: 1 addition & 2 deletions apps/bottle/src/features/steps/stepStyle.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export const CTA_HEIGHT = 109;
* the Bottom CTA's gradient overlaps with the body of the Step Container.
*/
export const OVERLAP_HEIGHT = 20;
const STEPPER_HEIGHT = 26;
export const CONTAINER_OFFSET_HEIGHT = HEADER_HEIGHT + CTA_HEIGHT + STEPPER_HEIGHT;
export const CONTAINER_OFFSET_HEIGHT = HEADER_HEIGHT + CTA_HEIGHT;

export const buttonContainer = style({
position: 'fixed',
Expand Down

0 comments on commit 260ff40

Please sign in to comment.