Skip to content

Commit

Permalink
feat: 메인 화면 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
danah-kim committed Nov 20, 2024
1 parent cb8b19d commit c853739
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 13 deletions.
Binary file added public/images/icon_app_store.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/plandy_mockup_en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/plandy_mockup_ko.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 29 additions & 7 deletions src/pages/_components/Intro/Intro.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const StyledIntro = styled.section`
@media (max-width: ${({ theme: { breakpoints } }) => `${breakpoints.sm}px`}) {
flex-direction: column;
margin: 0 -24px;
}
`;

Expand All @@ -24,6 +25,8 @@ export const TitleBox = styled.div`
@media (max-width: ${({ theme: { breakpoints } }) => `${breakpoints.sm}px`}) {
padding: 0;
align-items: center;
text-align: center;
}
`;

Expand All @@ -43,7 +46,8 @@ export const Title = styled.h1`
}) => ({
fontSize: display.large.size,
fontWeight: 700,
letterSpacing: display.large.letterSpacing
letterSpacing: display.large.letterSpacing,
lineHeight: "70px"
})};
@media (max-width: ${({ theme: { breakpoints } }) => `${breakpoints.sm}px`}) {
Expand All @@ -65,9 +69,9 @@ export const SubTitle = styled.h2`
typography: { headline }
}
}) => ({
fontSize: headline.large.size,
fontSize: headline.small.size,
fontWeight: 500,
letterSpacing: headline.large.letterSpacing
letterSpacing: headline.small.letterSpacing
})};
@media (max-width: ${({ theme: { breakpoints } }) => `${breakpoints.sm}px`}) {
Expand All @@ -84,9 +88,27 @@ export const SubTitle = styled.h2`
`;

export const ImageBox = styled.div`
text-align: center;
text-align: right;
flex-grow: 1;
padding: ${({ theme: { spacing } }) => `${spacing(20)}px ${spacing(10)}px`};
border: 1px solid ${({ theme: { palette } }) => palette.box.border};
border-radius: ${({ theme: { spacing } }) => `${spacing(1)}px`};
padding: ${({ theme: { spacing } }) => `${spacing(10)}px 0 ${spacing(10)}px ${spacing(8)}px`};
background-color: ${({ theme: { palette } }) => palette.grey["100"]};
border-radius: ${({ theme: { spacing } }) => `${spacing(4)}px`};
overflow: hidden;
& > img {
max-width: 750px;
width: 100%;
max-height: 574px;
height: auto;
@media (max-width: ${({ theme: { breakpoints } }) => `${breakpoints.sm}px`}) {
width: 120%;
}
}
@media (max-width: ${({ theme: { breakpoints } }) => `${breakpoints.sm}px`}) {
text-align: center;
padding: 0;
border-radius: 0;
}
`;
14 changes: 8 additions & 6 deletions src/pages/_components/Intro/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import { useTranslation } from "react-i18next";

import Box from "@components/atoms/Box";
import Button from "@components/atoms/Button";
import Icon from "@components/atoms/Icon";
import Typography from "@components/atoms/Typography";

import i18n from "@utils/i18n";

import { ImageBox, StyledIntro, SubTitle, Title, TitleBox } from "./Intro.styles";

function Intro() {
Expand All @@ -18,18 +19,19 @@ function Intro() {
<Box mt={2}>
<Button
variant="text"
startIcon={<Icon name="ImportBold" />}
startIcon={<img src="/images/icon_app_store.png" alt="App Store" width="24px" />}
onClick={() => window.open("https://apps.apple.com/us/app/id6736831438")}
>
<Typography>Download On the</Typography>
<Typography variant="title" fontWeight={700}>
App store
<Typography variant="title" fontWeight={500}>
App Store
</Typography>
</Button>
</Box>
</TitleBox>
<ImageBox>
<Icon name="ImageBold" />
<img
src={`/images/plandy_mockup_${["en", "ko"].includes(i18n.language) ? i18n.language : "en"}.png`}
/>
</ImageBox>
</StyledIntro>
);
Expand Down

0 comments on commit c853739

Please sign in to comment.