Skip to content

Commit

Permalink
Merge pull request #191 from YAPP-Github/dev
Browse files Browse the repository at this point in the history
Release 0.1.9
  • Loading branch information
choisohyun authored Jul 28, 2022
2 parents 396851d + 88f52a3 commit 7773fa8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/base/MultiRangeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const MultiRangeSlider = ({ initValue, min, max, onChange }: MultiRangeSliderPro
};

const Container = styled.div`
position: relative;
height: 50px;
display: flex;
align-items: center;
Expand Down
1 change: 1 addition & 0 deletions src/components/base/SimpleRangeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const SimpleRangeSlider = ({ min, max, initValue, isStep5 = false, onChange }: S
};

const Container = styled.div`
position: relative;
height: 50px;
display: flex;
align-items: center;
Expand Down
10 changes: 9 additions & 1 deletion src/components/domain/survey/SurveyTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Link } from 'react-router-dom';
import React, { MouseEventHandler, ReactNode } from 'react';
import { Button } from '@/components/base';
import ProgressBar, { ProgressBarProps } from '@/components/base/ProgressBar';
import { palette } from '@/lib/styles/palette';

interface SurveyTemplateProps extends Partial<ProgressBarProps> {
children: ReactNode;
Expand All @@ -28,7 +29,7 @@ const SurveyTemplate = ({
<HeaderWrapper>
<Logo to="/">외딴썸</Logo>
</HeaderWrapper>
{children}
<ContentsWrapper>{children}</ContentsWrapper>
<NavigationWrapper>
{hasProgressBar && <ProgressBar currStep={currStep} totalStep={totalStep} />}
{!disabledFooter && (
Expand Down Expand Up @@ -73,10 +74,17 @@ export const Logo = styled(Link)`
color: rgba(0, 0, 0, 0.8);
`;

const ContentsWrapper = styled.div`
overflow: scroll;
height: calc(100% - 56px - 117px - 38px - 20px);
`;

const NavigationWrapper = styled.div`
background-color: ${palette.backgroundColor};
position: absolute;
width: 100%;
bottom: 38px;
z-index: 1000;
`;

const ButtonWrapper = styled.div`
Expand Down
2 changes: 0 additions & 2 deletions src/pages/AuthMail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ export const StyledButton = styled(Button)`
`;

export const FormWrapper = styled.div`
position: absolute;
width: 100%;
top: 40%;
transform: translateY(-50%);
margin-top: 65px;
`;

Expand Down

0 comments on commit 7773fa8

Please sign in to comment.