Repository navigation
[Feature/#140] 랜딩페이지 구현 및 로그인/대시보드 라우팅 안정화 #164
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 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
64eefd0
feat: v2 cursor 디자인 개선
Seojegyeong 41ab4dd
feat: v3 cursor 디자인 개선-timeline 간소화 설명 추가
Seojegyeong ebe7389
feat: v4 cursor 디자인 시스템 및 motion 적용
Seojegyeong 9e98803
feat: v5 cursor multi-device 지원 section 추가
Seojegyeong f21dcba
Merge branch 'develop' into feature/#140
Seojegyeong a1f8bb7
refactor: 랜딩 페이지 UX 및 라우팅 개선
Seojegyeong c91ba52
refactor: 랜딩 헤더 CTA 정리
Seojegyeong 7043149
fix: 로그인 흐름 및 대시보드 진입 경로 정리
Seojegyeong 21b208d
refactor: 랜딩 페이지 파일 구조 정리
Seojegyeong 13b3e24
chore: pnpm lockfile 동기화
Seojegyeong 58a0aab
chore: lucide-react 의존성 제거
Seojegyeong c459126
fix: 랜딩 접근성 및 CTA 동작 개선
Seojegyeong 7b00848
chore: 요금제 문의 메일 주소 변경
Seojegyeong 63eb1c8
chore: 푸터 링크 최소화
Seojegyeong 0cad156
chore: 푸터 고객센터 링크 연결
Seojegyeong c3eda7b
chore: 푸터 정책 링크 연결
Seojegyeong 19ac006
fix: 랜딩 헤더 높이 일관성 개선
Seojegyeong fd2b40c
style: 랜딩 헤더 크기 상향
Seojegyeong 7a4c44c
style: 랜딩 섹션 타이포/상태 일관성 개선
Seojegyeong 11d9a89
style: 랜딩 가이드 설명 줄바꿈 적용
Seojegyeong 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
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.
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 was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| import { lazy, Suspense } from "react"; | ||
| import type { ApexOptions } from "apexcharts"; | ||
|
|
||
| import Card from "@/components/common/card/Card"; | ||
| import ChartLegend from "@/components/common/chart/ChartLegend"; | ||
|
|
||
| const ReactApexChart = lazy(() => import("react-apexcharts")); | ||
|
|
||
| const splitIndex = 12; | ||
| const clicks = [ | ||
| 29600, 31100, 31600, 32100, 33600, 37100, 44600, 46100, 46600, 45600, 49600, | ||
| 52600, 53600, 51600, 47600, 45600, 43600, 42600, 45100, 40600, 37600, 35600, | ||
| 41600, 47600, 50600, | ||
| ]; | ||
| const peak = Math.max(...clicks); | ||
| const targetPeak = 48500; | ||
| const normalizedClicks = clicks.map((value) => | ||
| Math.round((value / peak) * targetPeak), | ||
| ); | ||
|
|
||
| const actualSeries = normalizedClicks.map((y, i) => | ||
| i <= splitIndex ? { x: i, y } : { x: i, y: null }, | ||
| ); | ||
| const projectedSeries = normalizedClicks.map((y, i) => | ||
| i >= splitIndex ? { x: i, y } : { x: i, y: null }, | ||
| ); | ||
|
|
||
| const options: ApexOptions = { | ||
| chart: { | ||
| type: "line", | ||
| toolbar: { show: false }, | ||
| zoom: { enabled: false }, | ||
| animations: { enabled: false }, | ||
| fontFamily: "Pretendard", | ||
| }, | ||
| dataLabels: { enabled: false }, | ||
| stroke: { | ||
| curve: "smooth", | ||
| width: [3.5, 3.2], | ||
| dashArray: [0, 6], | ||
| lineCap: "round", | ||
| }, | ||
| colors: ["var(--color-logo-2)", "var(--color-brand-500)"], | ||
| markers: { size: [0, 0] }, | ||
| tooltip: { enabled: false }, | ||
| xaxis: { | ||
| type: "numeric", | ||
| min: 0, | ||
| max: 24, | ||
| tickAmount: 24, | ||
| labels: { show: false }, | ||
| axisBorder: { show: false }, | ||
| axisTicks: { show: false }, | ||
| }, | ||
| yaxis: { | ||
| min: 0, | ||
| max: 50000, | ||
| tickAmount: 6, | ||
| labels: { | ||
| formatter: (val: number) => | ||
| val === 0 ? "" : `${(val / 1000).toFixed(0)}K`, | ||
| style: { colors: "var(--color-text-sub)", fontSize: "10px" }, | ||
| offsetX: -2, | ||
| }, | ||
| }, | ||
| grid: { | ||
| borderColor: "var(--color-bg-disabled)", | ||
| strokeDashArray: 5, | ||
| xaxis: { lines: { show: false } }, | ||
| yaxis: { lines: { show: true } }, | ||
| padding: { left: 12, right: 8 }, | ||
| }, | ||
| legend: { show: false }, | ||
| annotations: { | ||
| xaxis: [ | ||
| { | ||
| x: splitIndex, | ||
| borderColor: "var(--color-brand-500)", | ||
| strokeDashArray: 0, | ||
| }, | ||
| ], | ||
| points: [ | ||
| { | ||
| x: splitIndex, | ||
| y: normalizedClicks[splitIndex], | ||
| marker: { | ||
| size: 5, | ||
| fillColor: "var(--color-logo-2)", | ||
| strokeColor: "var(--color-logo-2)", | ||
| }, | ||
| }, | ||
| ], | ||
| }, | ||
| }; | ||
|
|
||
| const series = [ | ||
| { name: "클릭수", data: actualSeries }, | ||
| { name: "예측 클릭수", data: projectedSeries }, | ||
| ]; | ||
|
Seojegyeong marked this conversation as resolved.
Resolved
|
||
|
|
||
| export default function GuideOverviewChart() { | ||
| return ( | ||
| <div className="w-full h-[420px] md:h-[500px] bg-transparent"> | ||
| <Card | ||
| className="h-full flex flex-col" | ||
| title="실시간 트래픽 변화" | ||
| description={ | ||
| <ChartLegend items={[{ label: "클릭수", colorClass: "bg-logo-2" }]} /> | ||
| } | ||
| > | ||
| <Suspense | ||
| fallback={ | ||
| <div className="flex-1 w-full rounded-component-md bg-brand-300/50" /> | ||
| } | ||
| > | ||
| <div className="relative flex-1 pt-12"> | ||
| <div className="absolute right-2 top-0 z-20 rounded-component-md border border-chart-inactive/80 bg-white/95 px-4 py-3 shadow-sm"> | ||
| <p className="text-[12px] font-semibold text-text-main"> | ||
| 광고 클릭수 추이 | ||
| </p> | ||
| <p className="mt-1 text-[11px] text-text-auth-sub"> | ||
| 오후 12시 기준 클릭수 48,500 | ||
| </p> | ||
| <p className="mt-0.5 text-[11px] text-text-auth-sub"> | ||
| 전시간 대비 +1.9% | ||
| </p> | ||
| </div> | ||
| <ReactApexChart | ||
| type="line" | ||
| options={options} | ||
| series={series} | ||
| height="100%" | ||
| /> | ||
| </div> | ||
| </Suspense> | ||
| </Card> | ||
| </div> | ||
| ); | ||
| } | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.