-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#7] 공통 컴포넌트(Header, Footer, ScrollFloatBtn) 구현, [#9] 랜딩페이지 구현 #12
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c56d105
:bento: Global Icon Assets 수정
youngminss c0e704c
:lipstick: Header - GNB 컴포넌트 UI 구현
youngminss 7a0f1d6
:lipstick: UnorderList, LinkWrapper, BackgroundImageBox 스타일 컴포넌트 생성, …
youngminss 8bc97a8
:art: 린트 룰(consistent-type-definitions, strict-boolean-expressions) 수정
youngminss 6340b87
:bento: Pretendard Font Assets 추가
youngminss 1da18b5
:bento: next13 localFont 설정 후 폰트 적용(in. theme.ts)
youngminss 738876e
:lipstick: Typography 공통 컴포넌트 추가
youngminss 482fcde
:adhesive_bandage: 공통 StyledLayout 컴포넌트 - BoxFlexColumnCenter 네이밍으로 변경
youngminss b0d5e3c
:lipstick: Footer 컴포넌트 UI 구현
youngminss 2719e7b
:lipstick: 공통 StyledLayout - FlexBox, SubMaxContainer 추가, BoxFlexColu…
youngminss 8ec9bee
:lipstick: 랜딩 페이지 1차 구현
youngminss 92b92a7
:wrench: next.config.js - styled-components 설정을 complier 를 통해 설정, swc…
youngminss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,43 @@ | ||
'use client'; | ||
|
||
import { StyledLayout } from 'components/shared'; | ||
import styled from 'styled-components'; | ||
import { StyledLayout, Typography } from 'components/shared'; | ||
|
||
const Root = () => { | ||
return <StyledLayout.BoxFlexCenter>Root Page 👋🏻</StyledLayout.BoxFlexCenter>; | ||
return ( | ||
<Container display={'flex'} flexDirection={'column'} alignItems={'center'} justifyContent={'center'}> | ||
<Typography variant="h2" aggressive="headline_001" align="center" lineHeight="64px" padding="0 0 24px 0"> | ||
리필스테이션, | ||
<br /> | ||
OOO서비스에서 알리세요! | ||
</Typography> | ||
<Typography variant="p" aggressive="body_multiline_001" align="center" padding="0 0 36px 0"> | ||
빠르고 간편하게 가게 정보와 판매상품을 등록하고 | ||
<br />더 많은 사람에게 리필스테이션의 가치를 전해보세요. | ||
</Typography> | ||
|
||
<div | ||
style={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
width: '240px', | ||
height: '50px', | ||
borderRadius: '8px', | ||
backgroundColor: '#0064FF', | ||
color: '#FFFFFF', | ||
fontSize: '16px', | ||
fontWeight: 'medium', | ||
}} | ||
> | ||
Comment on lines
+19
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 아 알았어 준다고요 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ 진짜 정성이네.. |
||
입점 신청하기 | ||
</div> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default Root; | ||
|
||
const Container = styled(StyledLayout.FlexBox)` | ||
padding-top: 122px; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,42 @@ | ||
import styled from 'styled-components'; | ||
import { FlexBox } from 'components/shared/styled/layout'; | ||
|
||
export const Container = styled.footer` | ||
display: flex; | ||
background-color: #d9d9d9; | ||
min-height: 180px; | ||
border-top: 1px solid ${({ theme }) => theme.colors.gray_002}; | ||
background-color: ${({ theme }) => theme.colors.gray_000}; | ||
`; | ||
|
||
export const InnerContainer = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
min-height: 80px; | ||
export const InnerWrapper = styled(FlexBox)` | ||
padding-top: 24px; | ||
`; | ||
|
||
export const LegalDescWrapper = styled.div` | ||
height: 100%; | ||
`; | ||
|
||
type AnchorProps = {}; | ||
|
||
export const Anchor = styled.a<AnchorProps>``; | ||
|
||
type DividerProps = { | ||
direction: 'vertical' | 'horizontal'; | ||
width: string; | ||
border: string; | ||
margin: string; | ||
backgroundColor: string; | ||
}; | ||
|
||
export const Divider = styled.span<DividerProps>` | ||
width: ${({ width }) => width}; | ||
border: ${({ border }) => border}; | ||
margin: ${({ margin }) => margin}; | ||
background-color: ${({ backgroundColor }) => backgroundColor}; | ||
transform: ${({ direction }) => (direction === 'horizontal' ? `rotate(0)` : `rotate(90deg)`)}; | ||
`; | ||
|
||
export const ChannelDescWrapper = styled(FlexBox)` | ||
gap: 22px; | ||
height: 100%; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
import Link from 'next/link'; | ||
import styled from 'styled-components'; | ||
import { LinkWrapper } from 'components/shared/styled/layout'; | ||
|
||
export const Container = styled.header` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
display: flex; | ||
background-color: #d9d9d9; | ||
width: 100%; | ||
background-color: ${({ theme }) => theme.colors.white}; | ||
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1); | ||
z-index: 100; | ||
`; | ||
|
||
export const GlobalNavigation = styled.nav` | ||
display: flex; | ||
justify-content: center; | ||
justify-content: space-between; | ||
width: 100%; | ||
min-height: 80px; | ||
min-height: 78px; | ||
`; | ||
|
||
export const LogoWrapper = styled(LinkWrapper)` | ||
display: flex; | ||
align-items: center; | ||
`; | ||
|
||
export const NavigationItem = styled(Link)<{ selected: boolean }>` | ||
export const NavigationItem = styled.li` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-weight: ${({ selected }) => selected && '700'}; | ||
color: ${({ selected, theme }) => (selected ? 'tomato' : theme.colors.black)}; | ||
cursor: pointer; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import * as S from './styled'; | ||
|
||
type Props = { | ||
variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'caption' | 'span' | 'div'; | ||
aggressive: | ||
| 'headline_001' | ||
| 'headline_002' | ||
| 'headline_003' | ||
| 'headline_004' | ||
| 'body_oneline_001' | ||
| 'body_oneline_002' | ||
| 'body_oneline_003' | ||
| 'body_multiline_001' | ||
| 'body_multiline_002' | ||
| 'body_multiline_003'; | ||
margin?: string; | ||
padding?: string; | ||
color?: string; | ||
lineHeight?: string; | ||
align?: 'center' | 'inherit' | 'justify' | 'left' | 'right'; | ||
whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap'; | ||
} & PropsWithChildren; | ||
|
||
const Typography = ({ children, variant, aggressive, ...props }: Props) => { | ||
return ( | ||
<S.Component as={variant} aggressive={aggressive} {...props}> | ||
{children} | ||
</S.Component> | ||
); | ||
}; | ||
|
||
export default Typography; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import styled from 'styled-components'; | ||
|
||
type ComponentProps = { | ||
aggressive: | ||
| 'headline_001' | ||
| 'headline_002' | ||
| 'headline_003' | ||
| 'headline_004' | ||
| 'body_oneline_001' | ||
| 'body_oneline_002' | ||
| 'body_oneline_003' | ||
| 'body_multiline_001' | ||
| 'body_multiline_002' | ||
| 'body_multiline_003'; | ||
margin?: string; | ||
padding?: string; | ||
color?: string; | ||
lineHeight?: string; | ||
align?: 'center' | 'inherit' | 'justify' | 'left' | 'right'; | ||
whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap'; | ||
}; | ||
|
||
export const Component = styled.div<ComponentProps>` | ||
margin: ${({ margin }) => margin && margin}; | ||
padding: ${({ padding }) => padding && padding}; | ||
${({ aggressive, theme }) => theme.fonts[aggressive]} | ||
line-height: ${({ lineHeight }) => lineHeight && lineHeight}; | ||
text-align: ${({ align }) => align && align}; | ||
white-space: ${({ whiteSpace }) => whiteSpace && whiteSpace}; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// Shared Components | ||
export { default as Header } from 'components/shared/Header'; | ||
export { default as Footer } from 'components/shared/Footer'; | ||
export { default as Typography } from 'components/shared/Typography'; | ||
|
||
// Only Styled Components | ||
export * as StyledLayout from 'components/shared/styled/layout'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,47 @@ | ||
import styled from 'styled-components'; | ||
import Link from 'next/link'; | ||
import styled, { CSSProperties } from 'styled-components'; | ||
|
||
export const BoxFlexCenter = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
export const FlexBox = styled.div<CSSProperties>` | ||
display: ${({ display }) => display ?? 'flex'}; | ||
flex-direction: ${({ flexDirection }) => flexDirection ?? 'row'}; | ||
align-items: ${({ alignItems }) => alignItems ?? 'stretch'}; | ||
justify-content: ${({ justifyContent }) => justifyContent ?? 'flex-start'}; | ||
flex-wrap: ${({ flexWrap }) => flexWrap ?? 'nowrap'}; | ||
`; | ||
|
||
export const MaxContainer = styled.div` | ||
position: relative; | ||
width: 100%; | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
`; | ||
|
||
export const SubMaxContainer = styled.div` | ||
position: relative; | ||
width: 100%; | ||
max-width: 996px; | ||
margin: 0 auto; | ||
`; | ||
|
||
export const UnorderList = styled.ul` | ||
display: flex; | ||
align-items: center; | ||
`; | ||
|
||
export const LinkWrapper = styled(Link)` | ||
text-decoration: none; | ||
cursor: pointer; | ||
`; | ||
|
||
type ImageBoxProps = { | ||
width: string; | ||
height: string; | ||
backgroundImageSrc: string; | ||
}; | ||
|
||
export const ImageBox = styled.div<ImageBoxProps>` | ||
width: ${({ width }) => width}; | ||
height: ${({ height }) => height}; | ||
background: ${({ backgroundImageSrc, theme }) => (backgroundImageSrc ? `url(${backgroundImageSrc})` : theme.colors.gray_001)}; | ||
background-repeat: no-repeat; | ||
`; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이렇게 설정해둔 이유가 있나요 ~? 궁금
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
음, 어디까지나
랜딩페이지
만 구현되었다는 전제하지만현재 디자인 시안을 기준으로 랜딩페이지의 Header, Footer 를 제외한 Contents 영역의 컨텐츠가 많지가 않아서, 컨텐츠를 기준으로만 height 를 설정하면
Footer 의 경우, 현재 디자인 시안처럼 원페이지 형태로 딱 이쁘게 안떨어져서 나오더라구요 ~
Footer 가 원페이지에서 하단에 딱 걸치는 형태가 아니라, Contents 가 끝나는 시점 바로 밑에 배치된다는 !
이해가 가시나요 ~ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하 아이갓잇..! 못난이 UI를 방지하기 위한 거였군뇨.. 신기하네욥~