Skip to content

Commit

Permalink
Merge pull request #39 from lagohalttae/refactor/#38-jungkyun-refactor
Browse files Browse the repository at this point in the history
Refactor/#38 jungkyun refactor
  • Loading branch information
woo-jk authored Aug 25, 2022
2 parents f3978a1 + c8e053f commit a605792
Show file tree
Hide file tree
Showing 7 changed files with 249 additions and 229 deletions.
12 changes: 6 additions & 6 deletions src/components/calculation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ const SmilePepeImage = styled.img`
width: 30vw;
bottom: 0vh;
@media (max-width: 1023px) {
/* @media (max-width: 1023px) {
display: none;
}
} */
@media (max-width: 480px) {
display: block;
height: 50vh;
Expand Down Expand Up @@ -215,7 +215,7 @@ export function Calculation() {
<Wrapper>
<Container onSubmit={handleSubmit}>
<InputContainer>
<Fade direction="up">
<Fade direction="up" triggerOnce>
<InputBox>
<PriceInput
placeholder="가격을 입력해주세요."
Expand All @@ -236,20 +236,20 @@ export function Calculation() {
''
)}
</InputContainer>
<Fade direction="up" delay={500}>
<Fade direction="up" delay={500} triggerOnce>
<DateBox>
<LowDate>{dateToString(new Date(coinPrice?.minPrice?.atMillis))}</LowDate>에 풀매수해서
</DateBox>
</Fade>
<Fade direction="up" delay={1000}>
<Fade direction="up" delay={1000} triggerOnce>
<DateBox>
<HighDate>{dateToString(new Date(coinPrice?.maxPrice?.atMillis))}</HighDate>에 풀매도
했다면..?
</DateBox>
</Fade>
{!calculateButton.isClicked ? (
<ButtonBox>
<Fade direction="up" delay={1500}>
<Fade direction="up" delay={1500} triggerOnce>
<HappyButton onClick={handleCalculateWithClick} onKeyUp={handleCalculateWithEnter}>
행복회로 ON
</HappyButton>
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/ViewportTypography.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled, { DefaultTheme } from 'styled-components';

type ViewportTypographyProps = {
size?: '2' | '4' | '6' | '10';
size?: '2' | '3' | '5' | '4' | '6' | '10';
weight?: '400' | '500' | '600' | '700' | '900';
color?: string;
marginBottom?: number;
Expand Down
15 changes: 9 additions & 6 deletions src/components/mainTitle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import downarrow from '../../assets/images/downarrow.svg';

const S = {
Container: styled.div`
height: 100vh;
`,
TextContainer: styled.div`
position: absolute;
top: 25vh;
left: 5vw;
Expand All @@ -27,9 +30,9 @@ const S = {
@media (max-width: 1439px) {
right: -27%;
}
@media (max-width: 1023px) {
/* @media (max-width: 1023px) {
display: none;
}
} */
`,
SelectCoinContainer: styled.div`
margin-top: 3vh;
Expand Down Expand Up @@ -223,19 +226,19 @@ function SelectCoinContainer() {

function MainTitle(): any {
return (
<>
<S.Container>
<S.Container>
<S.TextContainer>
<Fade delay={1000} direction="up" triggerOnce>
<ViewportTypography size="6" weight="700" color={GreenColor}>
라고 할 때
</ViewportTypography>
</Fade>
<SelectCoinContainer />
</S.Container>
</S.TextContainer>
<Slide triggerOnce direction="right" duration={1000}>
<S.PepeImage src={pepeImage} alt="pepe" />
</Slide>
</>
</S.Container>
);
}

Expand Down
Loading

0 comments on commit a605792

Please sign in to comment.