-
Notifications
You must be signed in to change notification settings - Fork 0
[REFACTOR] 랜딩 페이지에 서비스 이용 가이드 추가 #289
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5986ade
feat: 서비스 가이드 관련 이미지 추가 및 타입 정의 #288
young-jin-son f713c13
feat: 랜딩 페이지 서비스 가이드 컴포넌트 구조 추가 #288
young-jin-son 405e686
design: 랜딩 페이지 컴포넌트 스타일 개선 #288
young-jin-son dae8958
refactor: 랜딩 페이지에 서비스 가이드 추가 #288
young-jin-son a01d9d4
refactor: 이미지 경로 import 방식으로 변경 #288
young-jin-son 7b62b53
refactor: 하드코딩 되어있던 인덱스 개수를 props로 처리 #288
young-jin-son 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
8 changes: 8 additions & 0 deletions
8
frontend/src/pages/LandingPage/components/KakaoLoginButton/KakaoLoginButton.styled.ts
This file contains hidden or 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 hidden or 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
35 changes: 35 additions & 0 deletions
35
frontend/src/pages/LandingPage/components/ServiceGuide/GuideIntro/GuideIntro.styled.ts
This file contains hidden or 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,35 @@ | ||
| import styled from 'styled-components'; | ||
|
|
||
| export const GuideIntroLayout = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: space-evenly; | ||
| width: 100%; | ||
| height: 100%; | ||
| scroll-snap-align: start; | ||
| scroll-snap-stop: always; | ||
| flex-shrink: 0; | ||
| background: linear-gradient( | ||
| 0deg, | ||
| ${({ theme }) => theme.colors.green100} 0%, | ||
| ${({ theme }) => theme.colors.white} 56.28% | ||
| ); | ||
| `; | ||
|
|
||
| export const ScrollDownContainer = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| gap: 2rem; | ||
| `; | ||
|
|
||
| export const ScrollDownText = styled.div` | ||
| ${({ theme }) => theme.fonts.label14Reg}; | ||
| color: ${({ theme }) => theme.colors.green800}; | ||
| `; | ||
|
|
||
| export const ScrollDownImage = styled.img` | ||
| width: 4.4rem; | ||
| height: 6.4rem; | ||
| `; |
24 changes: 24 additions & 0 deletions
24
frontend/src/pages/LandingPage/components/ServiceGuide/GuideIntro/index.tsx
This file contains hidden or 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,24 @@ | ||
| import * as S from './GuideIntro.styled'; | ||
| import CarouselList from '../../CarouselList'; | ||
| import KakaoLoginButton from '../../KakaoLoginButton'; | ||
| import LandingHeader from '../../LandingHeader'; | ||
| import LandingMessage from '../../LandingMessage'; | ||
|
|
||
| import scrollDownImage from '@/assets/images/scrollDown.webp'; | ||
|
|
||
| const GuideIntro = () => { | ||
| return ( | ||
| <S.GuideIntroLayout> | ||
| <LandingHeader /> | ||
| <LandingMessage /> | ||
| <CarouselList /> | ||
| <KakaoLoginButton /> | ||
| <S.ScrollDownContainer> | ||
| <S.ScrollDownText>아래로 스크롤하면 서비스 소개를 볼 수 있어요</S.ScrollDownText> | ||
| <S.ScrollDownImage src={scrollDownImage} alt="scrollDown" /> | ||
| </S.ScrollDownContainer> | ||
| </S.GuideIntroLayout> | ||
| ); | ||
| }; | ||
|
|
||
| export default GuideIntro; |
38 changes: 38 additions & 0 deletions
38
frontend/src/pages/LandingPage/components/ServiceGuide/GuideOutro/GuideOutro.styled.ts
This file contains hidden or 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,38 @@ | ||
| import styled from 'styled-components'; | ||
|
|
||
| export const GuideOutroLayout = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: space-around; | ||
| width: 100%; | ||
| height: 100%; | ||
| scroll-snap-align: start; | ||
| scroll-snap-stop: always; | ||
| flex-shrink: 0; | ||
| box-sizing: border-box; | ||
| background: linear-gradient( | ||
| 0deg, | ||
| ${({ theme }) => theme.colors.green100} 0%, | ||
| ${({ theme }) => theme.colors.white} 56.28% | ||
| ); | ||
| `; | ||
|
|
||
| export const ContentContainer = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| gap: 1rem; | ||
| `; | ||
|
|
||
| export const ScrollDownText = styled.div` | ||
| ${({ theme }) => theme.fonts.label14Reg}; | ||
| color: ${({ theme }) => theme.colors.green800}; | ||
| `; | ||
|
|
||
| export const ButtonContainer = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| gap: 2rem; | ||
| `; |
21 changes: 21 additions & 0 deletions
21
frontend/src/pages/LandingPage/components/ServiceGuide/GuideOutro/index.tsx
This file contains hidden or 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,21 @@ | ||
| import * as S from './GuideOutro.styled'; | ||
| import CarouselList from '../../CarouselList'; | ||
| import KakaoLoginButton from '../../KakaoLoginButton'; | ||
| import LandingHeader from '../../LandingHeader'; | ||
| import LandingMessage from '../../LandingMessage'; | ||
|
|
||
| const GuideOutro = () => { | ||
| return ( | ||
| <S.GuideOutroLayout> | ||
| <LandingHeader /> | ||
| <LandingMessage /> | ||
| <CarouselList /> | ||
| <S.ButtonContainer> | ||
| <S.ScrollDownText>로그인하여 두리번을 시작해보세요</S.ScrollDownText> | ||
| <KakaoLoginButton /> | ||
| </S.ButtonContainer> | ||
| </S.GuideOutroLayout> | ||
| ); | ||
| }; | ||
|
|
||
| export default GuideOutro; |
55 changes: 55 additions & 0 deletions
55
frontend/src/pages/LandingPage/components/ServiceGuide/GuideSlide/GuideSlide.styled.ts
This file contains hidden or 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,55 @@ | ||
| import styled from 'styled-components'; | ||
|
|
||
| export const GuideSlideLayout = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| /* justify-content: ; */ | ||
| width: 100%; | ||
| height: 100%; | ||
| padding: 5rem 0; | ||
| position: relative; | ||
| scroll-snap-align: start; | ||
| scroll-snap-stop: always; | ||
| flex-shrink: 0; | ||
| overflow: hidden; | ||
| gap: 5rem; | ||
| `; | ||
|
|
||
| export const Description = styled.div` | ||
| ${({ theme }) => theme.fonts.heading20}; | ||
| line-height: 2.8rem; | ||
| white-space: pre-line; | ||
| text-align: center; | ||
| `; | ||
|
|
||
| export const Image = styled.img` | ||
| max-width: 260px; | ||
| z-index: 1; | ||
| position: relative; | ||
| bottom: 0; | ||
| `; | ||
|
|
||
| export const IndexContainer = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 1.2rem; | ||
| position: absolute; | ||
| right: 2.4rem; | ||
| top: 50%; | ||
| transform: translateY(-50%); | ||
| z-index: 10; | ||
| `; | ||
|
|
||
| export const IndexCircle = styled.div<{ $isActive: boolean }>` | ||
| width: 0.8rem; | ||
| height: 0.8rem; | ||
| border-radius: 50%; | ||
| background-color: ${({ theme, $isActive }) => | ||
| $isActive ? theme.colors.green600 : theme.colors.gray300}; | ||
| `; | ||
|
|
||
| export const ButtonContainer = styled.div` | ||
| position: absolute; | ||
| bottom: 3rem; | ||
| `; | ||
31 changes: 31 additions & 0 deletions
31
frontend/src/pages/LandingPage/components/ServiceGuide/GuideSlide/index.tsx
This file contains hidden or 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,31 @@ | ||
| import * as S from './GuideSlide.styled'; | ||
| import { ServiceGuideStepType } from '../../../LandingPage.types'; | ||
| import KakaoLoginButton from '../../KakaoLoginButton'; | ||
| import LandingHeader from '../../LandingHeader'; | ||
|
|
||
| interface ServiceGuideProps { | ||
| step: ServiceGuideStepType; | ||
| totalSteps: number; | ||
| } | ||
|
|
||
| const GuideSlide = ({ step, totalSteps }: ServiceGuideProps) => { | ||
| return ( | ||
| <S.GuideSlideLayout> | ||
| <LandingHeader /> | ||
| <S.Description>{step.description}</S.Description> | ||
|
|
||
| <S.IndexContainer> | ||
| {Array.from({ length: totalSteps }).map((_, index) => ( | ||
| <S.IndexCircle key={index} $isActive={index + 1 === step.step} /> | ||
| ))} | ||
| </S.IndexContainer> | ||
| <S.Image src={step.image} alt="service guide" /> | ||
|
|
||
| <S.ButtonContainer> | ||
| <KakaoLoginButton /> | ||
| </S.ButtonContainer> | ||
| </S.GuideSlideLayout> | ||
| ); | ||
| }; | ||
|
|
||
| export default GuideSlide; |
This file contains hidden or 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
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.
bottom: 0on aposition: relativeelement is a no-opOffset properties have no effect with
position: relativeunless you intend to nudge the element. Useposition: absoluteinside a relative parent or drop the offset.📝 Committable suggestion
🤖 Prompt for AI Agents